pub fn value_node(d: *const Decl) ?Ast.Node.Index
pub fn value_node(d: *const Decl) ?Ast.Node.Index { const ast = d.file.get_ast(); return switch (ast.nodeTag(d.ast_node)) { .fn_proto, .fn_proto_multi, .fn_proto_one, .fn_proto_simple, .fn_decl, .root, => d.ast_node, .global_var_decl, .local_var_decl, .simple_var_decl, .aligned_var_decl, => { const var_decl = ast.fullVarDecl(d.ast_node).?; if (ast.tokenTag(var_decl.ast.mut_token) == .keyword_const) return var_decl.ast.init_node.unwrap(); return null; }, else => null, }; }