Fix error where it would show wrong function in error
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user