nitc :: MEntity :: html_signature
This function only returns the parenthesis and return types.
See html_declaration
for the full declaration including modifiers and name.
# Returns the MEntity signature decorated with HTML
#
# This function only returns the parenthesis and return types.
# See `html_declaration` for the full declaration including modifiers and name.
fun html_signature(short: nullable Bool): Template do return new Template
src/doc/templates/html_model.nit:80,2--84,74
redef fun html_signature(short) do return intro.html_signature(short)
src/doc/templates/html_model.nit:136,2--70
redef fun html_signature(short) do
var tpl = new Template
var mparameters = mclass.mparameters
if not mparameters.is_empty then
tpl.add "["
for i in [0..mparameters.length[ do
tpl.add mparameters[i].html_name
if short == null or not short then
tpl.add ": "
tpl.add bound_mtype.arguments[i].html_signature(short)
end
if i < mparameters.length - 1 then tpl.add ", "
end
tpl.add "]"
end
return tpl
end
src/doc/templates/html_model.nit:187,2--203,4
redef fun html_signature(short) do return html_link
src/doc/templates/html_model.nit:276,2--52
redef fun html_signature(short) do return intro.html_signature(short)
src/doc/templates/html_model.nit:208,2--70
redef fun html_signature(short) do
var tpl = new Template
if not mparameters.is_empty then
tpl.add "("
for i in [0..mparameters.length[ do
tpl.add mparameters[i].html_signature(short)
if i < mparameters.length - 1 then tpl.add ", "
end
tpl.add ")"
end
if short == null or not short then
var return_mtype = self.return_mtype
if return_mtype != null then
tpl.add ": "
tpl.add return_mtype.html_signature(short)
end
end
return tpl
end
src/doc/templates/html_model.nit:320,2--338,4
redef fun html_signature(short) do
var lnk = html_link
var tpl = new Template
tpl.add new Link(lnk.href, mclass.name.html_escape, lnk.title)
tpl.add "["
for i in [0..arguments.length[ do
tpl.add arguments[i].html_signature(short)
if i < arguments.length - 1 then tpl.add ", "
end
tpl.add "]"
return tpl
end
src/doc/templates/html_model.nit:293,2--304,4
redef fun html_signature(short) do
var tpl = new Template
tpl.add "nullable "
tpl.add mtype.html_signature(short)
return tpl
end
src/doc/templates/html_model.nit:284,2--289,4
redef fun html_signature(short) do
var static_mtype = self.static_mtype
var tpl = new Template
if static_mtype != null then
tpl.add ": "
tpl.add static_mtype.html_signature(short)
end
return tpl
end
src/doc/templates/html_model.nit:241,2--249,4
redef fun html_signature(short) do
var msignature = self.msignature
if msignature == null then return new Template
return msignature.html_signature(short)
end
src/doc/templates/html_model.nit:253,2--257,4