Returns self signature formatted for console.

Property definitions

nitc :: term_model $ MEntity :: cs_signature
	# Returns `self` signature formatted for console.
	fun cs_signature(no_color: nullable Bool): String do return ""
src/doc/templates/term_model.nit:70,2--71,63

nitc :: term_model $ MClass :: cs_signature
	redef fun cs_signature(no_color) do return intro.cs_signature(no_color)
src/doc/templates/term_model.nit:150,2--72

nitc :: term_model $ MParameter :: cs_signature
	redef fun cs_signature(no_color) do
		var tpl = new FlatBuffer
		tpl.append "{name}: "
		tpl.append mtype.cs_signature(no_color)
		if is_vararg then tpl.append "..."
		return tpl.write_to_string
	end
src/doc/templates/term_model.nit:273,2--279,4

nitc :: term_model $ MClassDef :: cs_signature
	# Returns the MClassDef generic signature with static bounds.
	redef fun cs_signature(no_color) do
		var tpl = new FlatBuffer
		var mparameters = mclass.mparameters
		if not mparameters.is_empty then
			tpl.append "["
			for i in [0..mparameters.length[ do
				tpl.append "{mparameters[i].name}: "
				tpl.append bound_mtype.arguments[i].cs_signature(no_color)
				if i < mparameters.length - 1 then tpl.append ", "
			end
			tpl.append "]"
		end
		return tpl.write_to_string
	end
src/doc/templates/term_model.nit:159,2--173,4

nitc :: term_model $ MProperty :: cs_signature
	redef fun cs_signature(no_color) do return intro.cs_signature(no_color)
src/doc/templates/term_model.nit:178,2--72

nitc :: term_model $ MClassType :: cs_signature
	redef fun cs_signature(no_color) do return name
src/doc/templates/term_model.nit:218,2--48

nitc :: term_model $ MSignature :: cs_signature
	redef fun cs_signature(no_color) do
		var tpl = new FlatBuffer
		if not mparameters.is_empty then
			tpl.append "("
			for i in [0..mparameters.length[ do
				tpl.append mparameters[i].cs_signature(no_color)
				if i < mparameters.length - 1 then tpl.append ", "
			end
			tpl.append ")"
		end
		var return_mtype = self.return_mtype
		if return_mtype != null then
			tpl.append ": "
			tpl.append return_mtype.cs_signature(no_color)
		end
		return tpl.write_to_string
	end
src/doc/templates/term_model.nit:253,2--269,4

nitc :: term_model $ MGenericType :: cs_signature
	redef fun cs_signature(no_color) do
		var tpl = new FlatBuffer
		tpl.append mclass.name
		tpl.append "["
		for i in [0..arguments.length[ do
			tpl.append arguments[i].cs_signature(no_color)
			if i < arguments.length - 1 then tpl.append ", "
		end
		tpl.append "]"
		return tpl.write_to_string
	end
src/doc/templates/term_model.nit:231,2--241,4

nitc :: term_model $ MVirtualType :: cs_signature
	redef fun cs_signature(no_color) do return name
src/doc/templates/term_model.nit:249,2--48

nitc :: term_model $ MParameterType :: cs_signature
	redef fun cs_signature(no_color) do return name
src/doc/templates/term_model.nit:245,2--48

nitc :: term_model $ MNullableType :: cs_signature
	redef fun cs_signature(no_color) do
		var tpl = new FlatBuffer
		tpl.append "nullable "
		tpl.append mtype.cs_signature(no_color)
		return tpl.write_to_string
	end
src/doc/templates/term_model.nit:222,2--227,4

nitc :: term_model $ MAttributeDef :: cs_signature
	redef fun cs_signature(no_color) do
		var tpl = new FlatBuffer
		var static_mtype = self.static_mtype
		if static_mtype != null then
			tpl.append ": "
			tpl.append static_mtype.cs_signature(no_color)
		end
		return tpl.write_to_string
	end
src/doc/templates/term_model.nit:189,2--197,4

nitc :: term_model $ MVirtualTypeDef :: cs_signature
	redef fun cs_signature(no_color) do
		var tpl = new FlatBuffer
		var bound = self.bound
		if bound == null then return tpl.write_to_string
		tpl.append ": "
		tpl.append bound.cs_signature(no_color)
		return tpl.write_to_string
	end
src/doc/templates/term_model.nit:207,2--214,4

nitc :: term_model $ MMethodDef :: cs_signature
	redef fun cs_signature(no_color) do
		return msignature.as(not null).cs_signature(no_color)
	end
src/doc/templates/term_model.nit:201,2--203,4