summaryrefslogtreecommitdiff
path: root/test/full/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-24 15:08:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-24 15:08:02 +0800
commit4b085b8aea5f33ec114baa31d2b9d72341383c32 (patch)
treefe35a326408e762711a31d3e803464f0c1a8468d /test/full/init.lua
parent0c8c6bbf23082d0b858646846a47a3001f718ae2 (diff)
parent35ce57976db3b4c42193279dd55972ea013fecad (diff)
downloadlua-language-server-4b085b8aea5f33ec114baa31d2b9d72341383c32.zip
Merge branch 'newparser'
Diffstat (limited to 'test/full/init.lua')
-rw-r--r--test/full/init.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/full/init.lua b/test/full/init.lua
index 89d9b8b3..9584db6f 100644
--- a/test/full/init.lua
+++ b/test/full/init.lua
@@ -5,9 +5,10 @@ local util = require 'utility'
rawset(_G, 'TEST', true)
function TEST(script)
- local ast = parser:compile(script, 'lua', 'Lua 5.3')
- assert(ast)
- return ast
+ local clock = os.clock()
+ local state = parser.compile(script, 'Lua', 'Lua 5.3')
+ state.compileClock = os.clock() - clock
+ return state
end
local function startCollectDiagTimes()