Analyzer::Go::Fasthttp
Inherits Analyzer < FileHelper < Reference < Object
Constants
One precompiled matcher instead of a String#includes? scan per
.go file: includes? runs Rabin-Karp over the whole buffer and
the marker is absent in the overwhelming majority of files in a
polyglot repo, so every one of them pays the full scan. See
Analyzer#content_matches?.
Cheap pre-filter for analyze_param_line, called on EVERY line of
every fasthttp file (not just route lines). Union of every literal
substring any of the six scans below requires to possibly match —
a single precompiled Regex.union (PCRE2 JIT) pass replaces six
unconditional String#scan regex attempts on lines that can't
possibly contain a param accessor.
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.