SoUI 0.5版本占坑
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
412 B

local simplify = require 'optimizer.simplify'
local converter = require 'optimizer.converter'
return function (ast, config)
local report = {}
local function message(type, msg, tip)
if not report[type] then
report[type] = {}
end
report[type][#report[type]+1] = {msg, tip}
end
simplify(ast, config, message)
return converter(ast, message), report
end