[−][src]Macro ra_ap_syntax::match_ast
Matches a SyntaxNode
against an ast
type.
Example:
ⓘThis example is not tested
match_ast! { match node { ast::CallExpr(it) => { ... }, ast::MethodCallExpr(it) => { ... }, ast::MacroCall(it) => { ... }, _ => None, } }