aboutsummaryrefslogtreecommitdiff
path: root/include/ast.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-26 20:54:54 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commitfe9971d379766a4f7d4576495caff9ffaa80cfef (patch)
tree5a90d0f96dd5837bb6b50959e0a64df82203e748 /include/ast.h
parentc207014f81fe742675c6e869b59d09e916c69fc6 (diff)
Synchronize funccall generate. Uses correct func index now
Diffstat (limited to 'include/ast.h')
-rw-r--r--include/ast.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ast.h b/include/ast.h
index eaf2352..580ca24 100644
--- a/include/ast.h
+++ b/include/ast.h
@@ -76,6 +76,8 @@ struct Scope {
Buffer/*<Ast*>*/ ast_objects;
HashMap/*(key=BufferView, value=Ast<LhsExpr>*)*/ named_objects;
Scope *parent;
+ /* Is null unless the scope is a file scope, in which case this is the parser that owns the scope */
+ Parser *parser;
};
struct FileScopeReference {