diff options
Diffstat (limited to 'server-beta/test/crossfile/definition.lua')
-rw-r--r-- | server-beta/test/crossfile/definition.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server-beta/test/crossfile/definition.lua b/server-beta/test/crossfile/definition.lua index 74e0333c..cf54f30e 100644 --- a/server-beta/test/crossfile/definition.lua +++ b/server-beta/test/crossfile/definition.lua @@ -76,10 +76,8 @@ function TEST(datas) files.setText(uri, data.content) end - local sourceAst = files.getAst(sourceUri) - assert(sourceAst) local sourcePos = (sourceList[1][1] + sourceList[1][2]) // 2 - local positions = core(sourceAst, sourcePos) + local positions = core(sourceUri, sourcePos) if positions then local result = {} for i, position in ipairs(positions) do |