diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-11 14:52:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-11 14:52:40 +0800 |
commit | 50e6cd02d535e12e085eab7d8bdcb4757be857f2 (patch) | |
tree | 5811e18bf8ce45ce243c388f296aebd60523e2ba /test | |
parent | 997f15620b6e4dfe6a21ed52b17ac15c4e6b9a93 (diff) | |
download | lua-language-server-50e6cd02d535e12e085eab7d8bdcb4757be857f2.zip |
rename getAst -> getState
Diffstat (limited to 'test')
-rw-r--r-- | test/basic/noder.lua | 2 | ||||
-rw-r--r-- | test/type_inference/init.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/basic/noder.lua b/test/basic/noder.lua index 3e5e9f25..99c28964 100644 --- a/test/basic/noder.lua +++ b/test/basic/noder.lua @@ -4,7 +4,7 @@ local util = require 'utility' local guide = require 'parser.guide' local function getSource(pos) - local ast = files.getAst('') + local ast = files.getState('') return guide.eachSourceContain(ast.ast, pos, function (source) if source.type == 'local' or source.type == 'getlocal' diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 4c8817f2..7a968972 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -6,7 +6,7 @@ local infer = require 'core.infer' rawset(_G, 'TEST', true) local function getSource(pos) - local ast = files.getAst('') + local ast = files.getState('') return guide.eachSourceContain(ast.ast, pos, function (source) if source.type == 'local' or source.type == 'getlocal' |