We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4670739 commit 828d0a5Copy full SHA for 828d0a5
script/vm/visible.lua
@@ -96,10 +96,14 @@ function vm.getParentClass(source)
96
if source.type == 'setfield'
97
or source.type == 'setindex'
98
or source.type == 'setmethod'
99
- or source.type == 'tablefield'
100
or source.type == 'tableindex' then
101
return vm.getDefinedClass(guide.getUri(source), source.node)
102
end
+
103
+ if source.type == 'tablefield' then
104
+ return vm.getDefinedClass(guide.getUri(source), source.node) or
105
+ vm.getDefinedClass(guide.getUri(source), source.parent.parent)
106
+ end
107
return nil
108
109
0 commit comments