aboutsummaryrefslogtreecommitdiff
path: root/syntax_tree.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-12-30 21:16:49 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-12-30 21:17:10 -0800
commit435eae7c0ab10577431bb943a6f48873e5ecdf7c (patch)
treee56cf4f0ecdf0a0502fb2e24148ab490ebd00549 /syntax_tree.lua
parent44c3fb26bfe922eb8bd749e8397a5de716b5d56c (diff)
Some minor fixes for (type of $ast) and indexing codegen.
Diffstat (limited to 'syntax_tree.lua')
-rw-r--r--syntax_tree.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax_tree.lua b/syntax_tree.lua
index 702cba6..a091e86 100644
--- a/syntax_tree.lua
+++ b/syntax_tree.lua
@@ -202,7 +202,6 @@ do
})
_base_0.__class = _class_0
local self = _class_0
- self.__type = "Syntax Tree"
self.source_code_for_tree = setmetatable({ }, {
__index = function(self, t)
local s = t.source
@@ -217,6 +216,7 @@ do
end
SyntaxTree = _class_0
end
+SyntaxTree.__base.__type = "Syntax Tree"
getmetatable(SyntaxTree).__call = function(self, t)
if type(t.source) == 'string' then
t.source = Source:from_string(t.source)