Analyzer::Specification::AwsCdk
Inherits Analyzer::Specification::SpecificationEngine < Analyzer < FileHelper < Reference < Object
Constants
JS_METHOD_ITEM = /(?:HttpMethod\.)?([A-Z]+)/
JS_METHOD_RE = /(\w+)\.addMethod\s*\(\s*(['"`])(\w+)\2/m
JS_METHODS_RE = /methods\s*:\s*\[([^\]]*)\]/
JS_PATH_RE = /path\s*:\s*(['"`])([^'"`]+)\1/
JS_RESOURCE_RE = /(?:const|let|var)\s+(\w+)\s*(?::\s*[^=]+)?=\s*(\w+(?:\.\w+)*)\.addResource\s*\(\s*(['"`])([^'"`]+)\3/m
JS_ROUTES_RE = /(\w+)\.addRoutes\s*\(\s*\{([^}]*)\}/m
METHOD_ANY = "ANY"
PY_METHOD_RE = /(\w+)\.add_method\s*\(\s*(['"])(\w+)\2/m
PY_METHODS_RE = /methods\s*=\s*\[([^\]]*)\]/
PY_PATH_RE = /path\s*=\s*(['"])([^'"]+)\1/
PY_RESOURCE_RE = /(\w+)\s*=\s*(\w+(?:\.\w+)*)\.add_resource\s*\(\s*(['"])([^'"]+)\3/m
PY_ROUTES_RE = /(\w+)\.add_routes\s*\(([^)]*)\)/m
Class methods
tech_name
SourceInstance methods
analyze
Sourcetech
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.