summaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index 469fa99..87676d3 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -257,7 +257,7 @@ parser_parse_variable_definition(parser_t *parser, string_view_t variable_name,
}
ast_node_init_variable_declaration(node, variable_name, type, expression);
- scope_push(parser->scope, &node->data.variable.identifier, node);
+ scope_push(parser->scope, &node->data.variable_declaration.identifier, node);
return true;
}