summaryrefslogtreecommitdiff
path: root/script/vm/getDocs.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-11 14:52:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-11 14:52:40 +0800
commit50e6cd02d535e12e085eab7d8bdcb4757be857f2 (patch)
tree5811e18bf8ce45ce243c388f296aebd60523e2ba /script/vm/getDocs.lua
parent997f15620b6e4dfe6a21ed52b17ac15c4e6b9a93 (diff)
downloadlua-language-server-50e6cd02d535e12e085eab7d8bdcb4757be857f2.zip
rename getAst -> getState
Diffstat (limited to 'script/vm/getDocs.lua')
-rw-r--r--script/vm/getDocs.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua
index e712c6f7..bc7df626 100644
--- a/script/vm/getDocs.lua
+++ b/script/vm/getDocs.lua
@@ -25,7 +25,7 @@ end
function vm.getDocDefines(name)
local results = {}
for uri in files.eachFile() do
- local ast = files.getAst(uri)
+ local ast = files.getState(uri)
getDocDefinesInAst(results, ast.ast, name)
end
return results
@@ -49,7 +49,7 @@ function vm.getDocEnums(doc)
end
function vm.isMetaFile(uri)
- local status = files.getAst(uri)
+ local status = files.getState(uri)
if not status then
return false
end
@@ -203,7 +203,7 @@ local function makeDiagRange(uri, doc, results)
end
function vm.isDiagDisabledAt(uri, offset, name)
- local status = files.getAst(uri)
+ local status = files.getState(uri)
if not status then
return false
end