nitc :: MTypePart :: defaultinit
# A part of a `RawType`.
class MTypePart
super MEntity
redef var model
# The textual content.
var text: String
# If the part links to another entity, the targeted entity.
var target: nullable MEntity
redef fun name do return text
redef fun to_s do return text
# Return a version of `self` that links to the specified entity.
fun link_to(target: nullable MEntity): MTypePart do
return new MTypePart(model, text, target)
end
end
src/doc/model_ext.nit:70,1--89,3