6,834
edits
No edit summary |
No edit summary |
||
Line 627: | Line 627: | ||
end | end | ||
end | end | ||
rows[i2] = { i2..') ', p.formatType(parameterType, frame), p.formatName(parameterName, frame), description } | rows[i2] = { i2..') ', p.formatType(parameterType, frame), p.formatName(parameterName, frame), description } | ||
end | end | ||
local callbackSyntax2 = p.loadTemplate(frame, 'CodeSyntax', { | |||
'function('..(#callbackSyntax == 0 and 'void' or table.concat(callbackSyntax, ', ')..')') | |||
}) | |||
if #parameterTokens > 0 then | if #parameterTokens > 0 then | ||
local syntaxLine = parameterTokens[1]..' '..parameterTokens[2]..'('.. | local syntaxLine = parameterTokens[1]..' '..parameterTokens[2]..'('..callbackSyntax2..')' | ||
syntaxLine = p.loadTemplate(frame, 'CodeSyntax', {syntaxLine}) | syntaxLine = p.loadTemplate(frame, 'CodeSyntax', {syntaxLine}) | ||
table.insert(html, syntaxLine) | table.insert(html, syntaxLine) |
edits