struct Noir::TreeSitterJvmLambdaDslExtractor::Config

Defined in:

miniparsers/jvm_lambda_dsl_extractor_ts.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(verb_methods : Hash(String, String), nest_methods : Set(String), handler_methods : Set(String) = Set(String).new, crud_methods : Set(String) = Set(String).new, transparent_methods : Set(String) = Set(String).new, query_methods : Set(String) = Set(String).new, form_methods : Set(String) = Set(String).new, header_methods : Set(String) = Set(String).new, cookie_methods : Set(String) = Set(String).new, body_methods : Set(String) = Set(String).new, body_typed_methods : Set(String) = Set(String).new, websocket_methods : Set(String) = Set(String).new, router_receivers : Set(String) = Set(String).new) #

[View source]

Instance Method Detail

def body_methods : Set(String) #

[View source]
def body_typed_methods : Set(String) #

[View source]
def cookie_methods : Set(String) #

[View source]
def crud_methods : Set(String) #

[View source]
def form_methods : Set(String) #

[View source]
def handler_methods : Set(String) #

[View source]
def header_methods : Set(String) #

[View source]
def nest_methods : Set(String) #

[View source]
def query_methods : Set(String) #

[View source]
def router_receivers : Set(String) #

Receiver names (the object in recv.get(...)) that mark a verb call as a genuine route registration even when it carries no functional handler argument. Spark's redirect API (redirect.get("/from", "/to")) is the canonical case — its arguments are all string literals, so without an explicit allowlist it's indistinguishable from a colliding collection call like map.put("k", "v"). Matched against the receiver's last dotted segment, so both redirect.get(...) and Spark.redirect.get(...) resolve to redirect.


[View source]
def transparent_methods : Set(String) #

[View source]
def verb_methods : Hash(String, String) #

[View source]
def websocket_methods : Set(String) #

[View source]