Fix error where it would show wrong function in error

This commit is contained in:
Krzosa Karol
2022-09-28 10:49:48 +02:00
parent 1fa5e1a26b
commit 0050abe190
6 changed files with 67 additions and 34 deletions

View File

@@ -109,12 +109,14 @@ struct Ast_Call_Item: Ast_Expr{
Intern_String resolved_name;
};
struct Ast_Lambda;
struct Ast_Call: Ast_Expr{
union{
Ast_Expr *name;
Ast_Expr *typespec;
};
Array<Ast_Call_Item *> exprs;
Ast_Decl *resolved_decl;
};
struct Ast_Var_Unpack: Ast_Expr{
@@ -259,16 +261,10 @@ enum Ast_Decl_State{
DECL_RESOLVING,
};
typedef S32 Register_Index;
struct Ast_Decl: Ast{
Ast_Decl_State state;
Intern_String name;
// Bytecode
void *bytecode_data_position;
Register_Index register_index;
Ast_Scope *scope;
Ast_Expr *typespec;
union{