6,834
edits
No edit summary |
No edit summary |
||
Line 425: | Line 425: | ||
end | end | ||
return p.loadTemplate(frame, 'CodeSyntax', { | if isEvent then | ||
returnType | return p.loadTemplate(frame, 'CodeSyntax', { | ||
..' '..p.getDisplayedName(frame) | p.getDisplayedName(frame) | ||
..'('..(#argsText == 0 and 'void' or table.concat(argsText, ', '))..')' | |||
}) | |||
elseif type == 'property' or type == 'variable' then | |||
return p.loadTemplate(frame, 'CodeSyntax', { | |||
returnType..' '..p.getDisplayedName(frame) | |||
}) | |||
else | |||
return p.loadTemplate(frame, 'CodeSyntax', { | |||
returnType | |||
..' '..p.getDisplayedName(frame) | |||
..'('..(#argsText == 0 and 'void' or table.concat(argsText, ', '))..')' | |||
}) | |||
end | |||
end | end | ||
edits