Analyzer::Python::Sanic
Inherits Analyzer::Python::PythonEngine < Analyzer < FileHelper < Reference < Object
Constants
get_endpoints rebuilt two PCRE2 patterns per request field on
every handler-body line. The field set is fixed, so precompile the
access patterns (and the request.<field> guard substring) once.
Tuple shape: {guard_substring, noir_param_type, paren_re, bracket_re}
Reference: https://sanic.readthedocs.io/en/stable/sanic/request.html
QUERY (RFC 10008) is safe/idempotent like GET but, per the method's
whole purpose, carries its filter criteria in a request body like
POST — so it joins the body-bearing methods for "form"/"json", not
the read-only "query" (query-string) type.
Hoisted out of the analyze loops: an interpolated regex literal
recompiles (PCRE2 JIT) on every evaluation, and these interpolate
only constants. The .to_s expansion is byte-identical to the
previous inline form, so matching behaviour is unchanged.
Class methods
Instance methods
Instance-side view of the same declaration. The per-file rescues live on
this base class, which has no way to name the analyzer that is running
inside them, so a skipped file could not be attributed to a tech.
Deriving it from analyzer_for keeps the name written exactly once.