about summary refs log tree commit diff
path: root/src/bootstrap/parser.pry
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-07-06 22:43:29 +0200
committerBaitinq <[email protected]>2025-07-06 22:45:29 +0200
commit98e4fee2a84fea626777b151c71fcb977be1c230 (patch)
treeafd5615605d290ce81b27fa8b4ab6da5765252fb /src/bootstrap/parser.pry
parentBoostrap: Improve codegen for function declaration (starting to work on params) (diff)
downloadpry-lang-98e4fee2a84fea626777b151c71fcb977be1c230.tar.gz
pry-lang-98e4fee2a84fea626777b151c71fcb977be1c230.tar.bz2
pry-lang-98e4fee2a84fea626777b151c71fcb977be1c230.zip
Boostrap: Codegen function definition arguments
Diffstat (limited to 'src/bootstrap/parser.pry')
-rw-r--r--src/bootstrap/parser.pry2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/parser.pry b/src/bootstrap/parser.pry
index fe5fbee..8bc1c2e 100644
--- a/src/bootstrap/parser.pry
+++ b/src/bootstrap/parser.pry
@@ -420,7 +420,7 @@ let parser_parse_function_parameters = (p: *parser) => *slice {
 		};
 
 		let d = cast(*NODE_PRIMARY_EXPRESSION_IDENTIFIER_DATA, arena_alloc((*p).arena, sizeof(NODE_PRIMARY_EXPRESSION_IDENTIFIER_DATA)));
-		(*d).name = cast(*i8, ident.data);
+		(*d).name = cast(*i8, (*ident).data); /* TODO: Typecheck struct access */
 		(*d).type = type_annotation;
 		let n = Node{};
 		n.type = NODE_PRIMARY_EXPRESSION_IDENTIFIER;