diff options
Diffstat (limited to 'script/vm/visible.lua')
-rw-r--r-- | script/vm/visible.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/script/vm/visible.lua b/script/vm/visible.lua index a085be08..518307a0 100644 --- a/script/vm/visible.lua +++ b/script/vm/visible.lua @@ -110,10 +110,14 @@ function vm.getParentClass(source) if source.type == 'setfield' or source.type == 'setindex' or source.type == 'setmethod' - or source.type == 'tablefield' or source.type == 'tableindex' then return vm.getDefinedClass(guide.getUri(source), source.node) end + + if source.type == 'tablefield' then + return vm.getDefinedClass(guide.getUri(source), source.node) or + vm.getDefinedClass(guide.getUri(source), source.parent.parent) + end return nil end |