You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function OnTransformAst(uri, ast)
guide.eachSourceType(ast, "call", function (source)
local node = source.node
if not guide.isGet(node) then
return
end
if not guide.isGlobal(node) then
return
end
if guide.getKeyName(node) ~= 'Class' then
return
end
local wants = {
['local'] = true,
['setglobal'] = true
}
local classnameNode = guide.getParentTypes(source, wants)
if not classnameNode then
return
end
local classname = guide.getKeyName(classnameNode)
if classname then
local group = {}
helper.addClassDoc(ast, classnameNode, classname, group)
helper.addDoc(ast, classnameNode, "field", "a string", group)
helper.addDoc(ast, classnameNode, "field", "b string", group)
helper.addDoc(ast, classnameNode, "field", "c string", group)
end
end)
end
Activity
Issues-translate-bot commentedon Oct 29, 2025
Title: Plug-in adding comment causes style problem