From 435eae7c0ab10577431bb943a6f48873e5ecdf7c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 30 Dec 2018 21:16:49 -0800 Subject: Some minor fixes for (type of $ast) and indexing codegen. --- syntax_tree.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syntax_tree.lua') 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) -- cgit v1.2.3