diff options
Diffstat (limited to 'syntax_tree.lua')
| -rw-r--r-- | syntax_tree.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax_tree.lua b/syntax_tree.lua index b4cf45e..230a915 100644 --- a/syntax_tree.lua +++ b/syntax_tree.lua @@ -43,12 +43,12 @@ for _index_0 = 1, #types do end cls.__tostring = function(self) return tostring(self.type) .. tostring(repr(self, (function(x) - return Source:is_instance(x) and tostring(x) or nil + return Source:is_instance(x) and repr(tostring(x)) or nil end))) end cls.__repr = function(self) return tostring(self.type) .. tostring(repr(self, (function(x) - return Source:is_instance(x) and tostring(x) or nil + return Source:is_instance(x) and repr(tostring(x)) or nil end))) end cls.source_code_for_tree = { } |
