summaryrefslogtreecommitdiff
path: root/script/core/noder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/noder.lua')
-rw-r--r--script/core/noder.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 428cba26..9bb2b9b5 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -439,6 +439,9 @@ function m.compileNode(noders, source)
if func.isGeneric then
return
end
+ if source.parent.type ~= 'funcargs' then
+ return
+ end
local setmethod = func.parent
-- guess `self`
if setmethod and ( setmethod.type == 'setmethod'