Analyzer::Python::Tornado
Inherits Analyzer::Python::PythonEngine < Analyzer < FileHelper < Reference < Object
Constants
Per-line matchers that interpolate only constants — hoisted so the
analyze loop doesn't recompile identical PCRE2 patterns on every
source line. The .to_s expansion is byte-identical to the inline
literals, so matching behaviour is unchanged.
_kernel_id_regex = r"(?P<kernel_id>...)" at module level.
What a route keeps as a path param for the regex-route test: a named
or unnamed capture group (Tornado hands either to the handler), an
optional non-capturing group around one, and a trailing /?. A group
of alternatives ((robots\.txt|favicon\.ico)) is left, so it alone
marks the route as a regex.
A route tuple's pattern: an r / f / rf literal, optionally
formatted with % NAME or % (A, B) (Jupyter Server's
r"/api/kernels/%s" % _kernel_id_regex).
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.