Skip to content

Commit 6aea71f

Browse files
committed
rebuild
1 parent 11f0b02 commit 6aea71f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

moonscript/cmd/lint.lua

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ do
120120
end,
121121
render = function(self, ...)
122122
self:lint_check_unused()
123-
return _parent_0.render(self, ...)
123+
return self.__class.__parent.render(self, ...)
124124
end,
125125
block = function(self, ...)
126126
do
127-
local _with_0 = _parent_0.block(self, ...)
127+
local _with_0 = self.__class.__parent.block(self, ...)
128128
_with_0.block = self.block
129129
_with_0.render = self.render
130130
_with_0.get_root_block = self.get_root_block
@@ -143,7 +143,7 @@ do
143143
if whitelist_globals == nil then
144144
whitelist_globals = default_whitelist
145145
end
146-
_parent_0.__init(self, ...)
146+
self.__class.__parent.__init(self, ...)
147147
self.get_root_block = function()
148148
return self
149149
end
@@ -206,7 +206,10 @@ do
206206
__index = function(cls, name)
207207
local val = rawget(_base_0, name)
208208
if val == nil then
209-
return _parent_0[name]
209+
local parent = rawget(cls, "__parent")
210+
if parent then
211+
return parent[name]
212+
end
210213
else
211214
return val
212215
end

0 commit comments

Comments
 (0)