diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-07-17 16:30:41 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-07-17 16:30:41 -0700 |
| commit | 425c0ffa014fb950a4f9f90aa9a200fbc4d8e091 (patch) | |
| tree | 8575e5e71c8c8985dc967fb36257c28793a21bba /src/parser.cpp | |
| parent | 3971bf3d728ebb78a90caab504827db8a4c24423 (diff) | |
| download | zig-425c0ffa014fb950a4f9f90aa9a200fbc4d8e091.tar.gz zig-425c0ffa014fb950a4f9f90aa9a200fbc4d8e091.zip | |
rename NodeTypeStructDecl to NodeTypeContainerDecl
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index bafcbd767e..ff9a6268f9 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2659,7 +2659,7 @@ static AstNode *ast_parse_container_decl(ParseContext *pc, int *token_index, Token *struct_name = ast_eat_token(pc, token_index, TokenIdSymbol); - AstNode *node = ast_create_node(pc, NodeTypeStructDecl, first_token); + AstNode *node = ast_create_node(pc, NodeTypeContainerDecl, first_token); node->data.struct_decl.kind = kind; ast_buf_from_token(pc, struct_name, &node->data.struct_decl.name); node->data.struct_decl.top_level_decl.visib_mod = visib_mod; @@ -3077,7 +3077,7 @@ void ast_visit_node_children(AstNode *node, void (*visit)(AstNode **, void *cont visit_field(&asm_output->return_type, visit, context); } break; - case NodeTypeStructDecl: + case NodeTypeContainerDecl: visit_node_list(&node->data.struct_decl.fields, visit, context); visit_node_list(&node->data.struct_decl.decls, visit, context); visit_node_list(node->data.struct_decl.top_level_decl.directives, visit, context); @@ -3319,7 +3319,7 @@ AstNode *ast_clone_subtree(AstNode *old_node, uint32_t *next_node_index) { case NodeTypeAsmExpr: zig_panic("TODO"); break; - case NodeTypeStructDecl: + case NodeTypeContainerDecl: clone_subtree_list(&new_node->data.struct_decl.fields, &old_node->data.struct_decl.fields, next_node_index); clone_subtree_list(&new_node->data.struct_decl.decls, &old_node->data.struct_decl.decls, |
