diff options
| author | gingerBill <bill@gingerbill.org> | 2023-06-15 01:37:55 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-06-15 01:37:55 +0100 |
| commit | 2992ca5df122e2f20113d5b357413c7fff606879 (patch) | |
| tree | 1e815b9902ca0ed2f0a4fb5d1eab58227a603296 /src/parser.hpp | |
| parent | 242d3b3c4d7e269b04c96a81dbf6e5f5fbeb5e8b (diff) | |
Basic support for new procedure code (non-polymorphic, non-proc-group)
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 6ba4ef6d6..e0e78fa1d 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -367,6 +367,11 @@ gb_global char const *union_type_kind_strings[UnionType_COUNT] = { "#shared_nil", }; +struct AstOrderedArgs { + Slice<Ast *> positional; + Slice<Ast *> named; +}; + #define AST_KINDS \ AST_KIND(Ident, "identifier", struct { \ Token token; \ @@ -442,6 +447,7 @@ AST_KIND(_ExprBegin, "", bool) \ ProcInlining inlining; \ bool optional_ok_one; \ bool was_selector; \ + AstOrderedArgs *ordered_args; \ }) \ AST_KIND(FieldValue, "field value", struct { Token eq; Ast *field, *value; }) \ AST_KIND(EnumFieldValue, "enum field value", struct { \ |