diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-23 14:59:58 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-23 14:59:58 +0100 |
| commit | a31bab5aae10757f5029b00e39beb0e3815b92b1 (patch) | |
| tree | b7d2f888cc553f4d6e4b47ff1470c303c5d05c7e /src/checker/stmt.cpp | |
| parent | ee0aa7b9de907e70e00ca3ab891087c2ee86a31b (diff) | |
Unicode file loading; push_allocator & push_context
Diffstat (limited to 'src/checker/stmt.cpp')
| -rw-r--r-- | src/checker/stmt.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/checker/stmt.cpp b/src/checker/stmt.cpp index 2c7b36848..04df70ffb 100644 --- a/src/checker/stmt.cpp +++ b/src/checker/stmt.cpp @@ -1483,6 +1483,23 @@ void check_stmt(Checker *c, AstNode *node, u32 flags) { + case_ast_node(pa, PushAllocator, node); + Operand op = {}; + check_expr(c, &op, pa->expr); + check_assignment(c, &op, t_allocator, make_string("argument to push_allocator")); + check_stmt(c, pa->body, mod_flags); + case_end; + + + case_ast_node(pa, PushContext, node); + Operand op = {}; + check_expr(c, &op, pa->expr); + check_assignment(c, &op, t_context, make_string("argument to push_context")); + check_stmt(c, pa->body, mod_flags); + case_end; + + + |