Function fullVarDecl [src]
Prototype
pub fn fullVarDecl(tree: Ast, node: Node.Index) ?full.VarDecl
Parameters
tree: Ast
node: Node.Index
Source
pub fn fullVarDecl(tree: Ast, node: Node.Index) ?full.VarDecl {
return switch (tree.nodeTag(node)) {
.global_var_decl => tree.globalVarDecl(node),
.local_var_decl => tree.localVarDecl(node),
.aligned_var_decl => tree.alignedVarDecl(node),
.simple_var_decl => tree.simpleVarDecl(node),
else => null,
};
}