class
Analyzer::CSharp::AspNetMvc
- Analyzer::CSharp::AspNetMvc
- Analyzer
- Reference
- Object
Included Modules
Defined in:
analyzer/analyzers/csharp/aspnet_mvc.crConstant Summary
-
ATTRIBUTE_ROUTE_PATTERNS =
["HttpGet", "HttpPost", "HttpPut", "HttpDelete", "HttpPatch", "Route"].to_h do |attribute| {attribute, /\[#{attribute}[^(]*\(\s*"([^"]+)"/} end -
Crystal recompiles an interpolated regex literal on every evaluation (a full PCRE2 JIT compile). The attribute set is fixed, so precompile the route-extraction matchers once at load time.