Skip to main content

argument_node

Function argument_node 

Source
pub fn argument_node(node: Node<'_>, index: usize) -> Option<Node<'_>>
Expand description

The raw (unwrapped-from-argument) expression node at position index of node’s call arguments - used instead of CallStep::args when a caller needs to recurse into an argument’s own structure (e.g. Route::middleware(...)->group(function () { ... })’s closure body), not just its source text.