summaryrefslogtreecommitdiff
path: root/script/core/document-symbol.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/core/document-symbol.lua
parent997f15620b6e4dfe6a21ed52b17ac15c4e6b9a93 (diff)
downloadlua-language-server-50e6cd02d535e12e085eab7d8bdcb4757be857f2.zip
rename getAst -> getState
Diffstat (limited to 'script/core/document-symbol.lua')
-rw-r--r--script/core/document-symbol.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/document-symbol.lua b/script/core/document-symbol.lua
index e36ba29b..03169cfd 100644
--- a/script/core/document-symbol.lua
+++ b/script/core/document-symbol.lua
@@ -228,7 +228,7 @@ local function buildSource(source, text, used, symbols)
end
local function makeSymbol(uri)
- local ast = files.getAst(uri)
+ local ast = files.getState(uri)
local text = files.getText(uri)
if not ast or not text then
return nil