Analyzer::Rust::Poem
Inherits Analyzer::Rust::RustEngine < FileScanEngine < Analyzer < FileHelper < Reference < Object
Poem analyzer (tree-sitter port). Poem registers routes two ways:
-
Route chain:
Route::new().at("/path", get(handler)). The second argument to.atis a singlecall_expressionor a chain of.<verb>(handler)calls — each method registered this way creates a separate endpoint sharing the same path. -
poem-openapi macros:
#[oai(path = "/p", method = "get")]attached to functions inside animpl Api { ... }block.
Constants
Class methods
Instance methods
Convert :param syntax to {param} and ensure leading slash.
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.