summaryrefslogtreecommitdiff
path: root/server/src/core/rename.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-24 19:22:59 +0800
committersumneko <sumneko@hotmail.com>2019-04-24 19:22:59 +0800
commitdb2de7238fb92269b7ad6aca8a35f82e01eaa126 (patch)
tree143dbf9e6b5f28db1c20585b36ba959fcaf890b0 /server/src/core/rename.lua
parentaea74ee33de825921500c3210a65a10ef3c8a8e0 (diff)
downloadlua-language-server-db2de7238fb92269b7ad6aca8a35f82e01eaa126.zip
emmy.alias
Diffstat (limited to 'server/src/core/rename.lua')
-rw-r--r--server/src/core/rename.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/core/rename.lua b/server/src/core/rename.lua
index b6d837d5..3a2e8532 100644
--- a/server/src/core/rename.lua
+++ b/server/src/core/rename.lua
@@ -4,7 +4,7 @@ local parser = require 'parser'
local function parseResult(source, newName)
local positions = {}
if source:bindLabel() then
- if not parser.grammar(newName, 'Name') then
+ if not parser:grammar(newName, 'Name') then
return nil
end
source:bindLabel():eachInfo(function (info, src)
@@ -18,11 +18,11 @@ local function parseResult(source, newName)
return nil
end
if source:get 'in index' then
- if not parser.grammar(newName, 'Exp') then
+ if not parser:grammar(newName, 'Exp') then
return positions
end
else
- if not parser.grammar(newName, 'Name') then
+ if not parser:grammar(newName, 'Name') then
return positions
end
end
@@ -37,11 +37,11 @@ local function parseResult(source, newName)
end
if source:bindValue() and source:get 'parent' then
if source:get 'in index' then
- if not parser.grammar(newName, 'Exp') then
+ if not parser:grammar(newName, 'Exp') then
return positions
end
else
- if not parser.grammar(newName, 'Name') then
+ if not parser:grammar(newName, 'Name') then
return positions
end
end