1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
local parser = require 'parser' local matcher = require 'matcher' rawset(_G, 'TEST', true) function TEST(buf) local ast = parser:ast(buf) assert(ast) local results = matcher.compile(ast) assert(results) end TEST [[ obj.lines: self._needDiagnostics[uri] = { ast = ast, results = obj.results, lines = obj.lines, uri = uri, } ]]