From a7b2cec4719ed5b42889aafac20a25f1820ab78b Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Sun, 30 Apr 2023 02:00:39 +0200 Subject: ast: Rename variable and variable_declaration correctly Signed-off-by: Johnny Richard --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.c') 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; } -- cgit v1.2.3