diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-08-31 10:38:18 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-08-31 11:00:31 -0400 |
| commit | a2230639232c069e4052a2e994dd5c0bd4e2517f (patch) | |
| tree | e8bdb0438078f740d1509ded7e4b67162e7ac8e8 /src/analyze.hpp | |
| parent | 6ab8b2aab4b146a7d1d882686199eace19989011 (diff) | |
| download | zig-a2230639232c069e4052a2e994dd5c0bd4e2517f.tar.gz zig-a2230639232c069e4052a2e994dd5c0bd4e2517f.zip | |
`@typeOf` now guarantees no runtime side effects
related: #1627
Diffstat (limited to 'src/analyze.hpp')
| -rw-r--r-- | src/analyze.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/analyze.hpp b/src/analyze.hpp index 6e8897bf82..dc702167e7 100644 --- a/src/analyze.hpp +++ b/src/analyze.hpp @@ -85,6 +85,7 @@ void scan_decls(CodeGen *g, ScopeDecls *decls_scope, AstNode *node); ZigFn *scope_fn_entry(Scope *scope); ZigPackage *scope_package(Scope *scope); ZigType *get_scope_import(Scope *scope); +ScopeTypeOf *get_scope_typeof(Scope *scope); void init_tld(Tld *tld, TldId id, Buf *name, VisibMod visib_mod, AstNode *source_node, Scope *parent_scope); ZigVar *add_variable(CodeGen *g, AstNode *source_node, Scope *parent_scope, Buf *name, bool is_const, ConstExprValue *init_value, Tld *src_tld, ZigType *var_type); @@ -112,6 +113,7 @@ ScopeSuspend *create_suspend_scope(CodeGen *g, AstNode *node, Scope *parent); ScopeFnDef *create_fndef_scope(CodeGen *g, AstNode *node, Scope *parent, ZigFn *fn_entry); Scope *create_comptime_scope(CodeGen *g, AstNode *node, Scope *parent); Scope *create_runtime_scope(CodeGen *g, AstNode *node, Scope *parent, IrInstruction *is_comptime); +Scope *create_typeof_scope(CodeGen *g, AstNode *node, Scope *parent); void init_const_str_lit(CodeGen *g, ConstExprValue *const_val, Buf *str); ConstExprValue *create_const_str_lit(CodeGen *g, Buf *str); |
