module Noir::TreeSitterJvmLambdaDslExtractor

Overview

Tree-sitter-backed walker for JVM "lambda DSL" routing styles — verb("/path", lambda) plus optional path("/prefix", () -> { ... }) nesting. Same shape powers Javalin (app.get("/x", ctx -> ...)), Spark Java (get("/x", (req, res) -> ...)), and other Sinatra-flavoured Java frameworks.

The walker is configured per framework:

Out of scope for this first cut: filter chains, reverse routing, cross-file route registration. Routes scoped under static factory methods are still discovered as long as their lambda body lives in the same file.

Extended Modules

Defined in:

miniparsers/jvm_lambda_dsl_extractor_ts.cr

Instance Method Summary

Instance Method Detail

def extract_routes(source : String, config : Config, *, include_callees : Bool = false) : Array(Route) #

[View source]