Polymorphic procedure, with passed in compile time type but without removing the type in params etc.

This commit is contained in:
Krzosa Karol
2023-04-01 19:40:12 +02:00
parent 3d438645a0
commit 7bf3e107bb
8 changed files with 158 additions and 80 deletions

View File

@@ -421,18 +421,17 @@ typedef uint32_t Ast_Call_Item_Flag;
enum {
CALL_INDEX = 1ull << 1,
CALL_NAME = 1ull << 2,
CALL_INCLUDED = 1ull << 4,
};
struct Ast_Call_Item : Ast_Expr {
Ast_Call_Item_Flag call_flags;
int32_t resolved_index;
int32_t resolved_index; // This is probably for compound array
Ast_Expr *item;
union {
Ast_Atom *name;
Ast_Expr *index;
};
Intern_String resolved_name;
Intern_String resolved_name; // This is probably for compound struct
};
struct Ast_Call : Ast_Expr {