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.

Property definitions

nitc :: html_model $ MEntity :: html_signature
	# 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

nitc :: html_model $ MClass :: html_signature
	redef fun html_signature(short) do return intro.html_signature(short)
src/doc/templates/html_model.nit:136,2--70

nitc :: html_model $ MParameter :: html_signature
	redef fun html_signature(short) do
		var tpl = new Template
		tpl.add name
		if short == null or not short then
			tpl.add ": "
			tpl.add mtype.html_signature(short)
		end
		if is_vararg then tpl.add "..."
		return tpl
	end
src/doc/templates/html_model.nit:342,2--351,4

nitc :: html_model $ MClassDef :: html_signature
	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

nitc :: html_model $ MType :: html_signature
	redef fun html_signature(short) do return html_link
src/doc/templates/html_model.nit:276,2--52

nitc :: html_model $ MProperty :: html_signature
	redef fun html_signature(short) do return intro.html_signature(short)
src/doc/templates/html_model.nit:208,2--70

nitc :: html_model $ MSignature :: html_signature
	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

nitc :: html_model $ MGenericType :: html_signature
	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

nitc :: html_model $ MNullableType :: html_signature
	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

nitc :: html_model $ MAttributeDef :: html_signature
	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

nitc :: html_model $ MVirtualTypeDef :: html_signature
	redef fun html_signature(short) do
		var bound = self.bound
		var tpl = new Template
		if bound == null then return tpl
		tpl.add ": "
		tpl.add bound.html_signature(short)
		return tpl
	end
src/doc/templates/html_model.nit:265,2--272,4

nitc :: html_model $ MMethodDef :: html_signature
	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