Initially was working on vargs but we need a new algorithm to match lambda call arguments
This commit is contained in:
1
ast.cpp
1
ast.cpp
@@ -347,6 +347,7 @@ ast_expr_binary(Ast_Expr *left, Ast_Expr *right, Token *op){
|
||||
|
||||
function Ast_Call *
|
||||
ast_call(Token *pos, Ast_Expr *name, Array<Ast_Call_Item *> exprs){
|
||||
// name here specifies also typespec for compound expressions !
|
||||
AST_NEW(Call, CALL, pos, AST_EXPR);
|
||||
result->name = name;
|
||||
result->exprs = exprs.tight_copy(pctx->perm);
|
||||
|
||||
Reference in New Issue
Block a user