summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/core/hover/name.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/script/core/hover/name.lua b/script/core/hover/name.lua
index 9ad32e09..0e1eefaf 100644
--- a/script/core/hover/name.lua
+++ b/script/core/hover/name.lua
@@ -65,11 +65,13 @@ function buildName(source, oop)
oop = source.type == 'setmethod'
or source.type == 'getmethod'
end
- if source.type == 'local'
- or source.type == 'getlocal'
- or source.type == 'setlocal' then
+ if source.type == 'local' then
return asLocal(source) or ''
end
+ if source.type == 'getlocal'
+ or source.type == 'setlocal' then
+ return asLocal(source.node) or ''
+ end
if source.type == 'setglobal'
or source.type == 'getglobal' then
return asGlobal(source) or ''