Getting packages out of resolve_name

This commit is contained in:
Krzosa Karol
2022-06-10 17:07:58 +02:00
parent 957dbbd5cc
commit ab663d0b01
7 changed files with 31 additions and 26 deletions

View File

@@ -82,7 +82,6 @@ struct Ast_Atom: Ast_Expr{
struct Ast_Call_Item: Ast_Expr{
Ast_Atom *name; // index | name
Ast_Expr *index;
Ast_Expr *item;
};
@@ -293,10 +292,9 @@ ast_call(Token *pos, Ast_Expr *name, Array<Ast_Call_Item *> exprs){
}
function Ast_Call_Item *
ast_call_item(Token *pos, Ast_Expr *index, Ast_Atom *name, Ast_Expr *item){
ast_call_item(Token *pos, Ast_Atom *name, Ast_Expr *item){
AST_NEW(Call_Item, CALL_ITEM, pos, AST_EXPR);
result->name = name;
result->index = index;
result->item = item;
return result;
}