Skip to main content

var_decl_info

Function var_decl_info 

Source
pub fn var_decl_info(node: &SyntaxNode) -> Option<VarDeclInfo>
Expand description

Returns the declaration kind and name from a NodeVarDecl. For “var x”, “global T x”: name is the first identifier after the keyword. For typed form “Array arr” or “integer? y”: name is the last identifier before “=” (type names come first).