Function simpleVarDecl [src]

Prototype

pub fn simpleVarDecl(tree: Ast, node: Node.Index) full.VarDecl

Parameters

tree: Astnode: Node.Index

Source

pub fn simpleVarDecl(tree: Ast, node: Node.Index) full.VarDecl { assert(tree.nodeTag(node) == .simple_var_decl); const type_node, const init_node = tree.nodeData(node).opt_node_and_opt_node; return tree.fullVarDeclComponents(.{ .type_node = type_node, .align_node = .none, .addrspace_node = .none, .section_node = .none, .init_node = init_node, .mut_token = tree.nodeMainToken(node), }); }