mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Compound statements are linked lists. Remove unused "global_symbols" "public_symbols" "qualified_symbols". Reduce max hash map load.
This commit is contained in:
@@ -1543,11 +1543,12 @@ static Expr* parse_expr_block(ParseContext *context, Expr *left)
|
||||
assert(!left && "Had left hand side");
|
||||
Expr *expr = EXPR_NEW_TOKEN(EXPR_EXPR_BLOCK, context->tok);
|
||||
advance_and_verify(context, TOKEN_LBRAPIPE);
|
||||
AstId *next = &expr->expr_block.first_stmt;
|
||||
while (!try_consume(context, TOKEN_RBRAPIPE))
|
||||
{
|
||||
Ast *stmt = parse_stmt(context);
|
||||
if (!ast_ok(stmt)) return poisoned_expr;
|
||||
vec_add(expr->expr_block.stmts, stmt);
|
||||
ast_append(&next, stmt);
|
||||
}
|
||||
RANGE_EXTEND_PREV(expr);
|
||||
return expr;
|
||||
|
||||
Reference in New Issue
Block a user