diff options
author | Johnny Richard <johnny@johnnyrichard.com> | 2023-04-30 02:00:39 +0200 |
---|---|---|
committer | Johnny Richard <johnny@johnnyrichard.com> | 2023-04-30 02:00:39 +0200 |
commit | a7b2cec4719ed5b42889aafac20a25f1820ab78b (patch) | |
tree | 338929acd69cae70da390cbc8ecb6512b560cc78 /src/parser.c | |
parent | de3f8f73810d77f7231ceddfd63b0720493bd437 (diff) |
ast: Rename variable and variable_declaration correctly
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'src/parser.c')
-rw-r--r-- | src/parser.c | 2 |
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; } |