Merge duplicates.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
end
redef class MClass
- redef fun mdoc_or_fallback do return intro.mdoc
redef fun cs_icon do return intro.cs_icon
# Format: `Foo[E]`
end
redef class MClassDef
- redef fun mdoc_or_fallback do return mdoc or else mclass.mdoc_or_fallback
redef fun cs_icon do return "C"
# Depends if `self` is an intro or not.
end
redef class MProperty
- redef fun mdoc_or_fallback do return intro.mdoc
redef fun cs_modifiers do return intro.cs_modifiers
redef fun cs_declaration do return intro.cs_declaration
redef fun cs_icon do return intro.cs_icon
end
redef class MPropDef
- redef fun mdoc_or_fallback do return mdoc or else mproperty.mdoc_or_fallback
-
# Depends if `self` is an intro or not.
#
# * If intro contains the visibility and kind.
end
redef class MClass
- redef fun mdoc_or_fallback do return intro.mdoc
-
# Format: `Foo[E]`
redef var html_name is lazy do
var tpl = new Template
end
redef class MClassDef
- redef fun mdoc_or_fallback do return mdoc or else mclass.mdoc_or_fallback
-
# Depends if `self` is an intro or not.
#
# * If intro contains the visibility and kind.
end
redef class MProperty
- redef fun mdoc_or_fallback do return intro.mdoc
redef fun html_modifiers do return intro.html_modifiers
redef fun html_declaration do return intro.html_declaration
end
redef class MPropDef
- redef fun mdoc_or_fallback do return mdoc or else mproperty.mdoc_or_fallback
-
# Depends if `self` is an intro or not.
#
# * If intro contains the visibility and kind.
# Is `self` and abstract class?
var is_abstract: Bool is lazy do return kind == abstract_kind
- redef fun mdoc_or_fallback do return intro.mdoc_or_fallback
+ redef fun mdoc_or_fallback do return intro.mdoc
end
# All property introductions and redefinitions (not inheritance) in `self` by its associated property.
var mpropdefs_by_property = new HashMap[MProperty, MPropDef]
+
+ redef fun mdoc_or_fallback do return mdoc or else mclass.mdoc_or_fallback
end
# A global static type
redef var location
- redef fun mdoc_or_fallback do return intro.mdoc_or_fallback
+ redef fun mdoc_or_fallback do return intro.mdoc
# The canonical name of the property.
#
assert has_next_property: i.is_ok
return i.item
end
+
+ redef fun mdoc_or_fallback do return mdoc or else mproperty.mdoc_or_fallback
end
# A local definition of a method