# The root of the HTML hierarchy
var html = new HTMLTag("span")
- # Is the HTML include a nested `<span class"{type_of_node}">` element for each `ANode` of the AST?
+ # Should the HTML include a nested `<span class"{type_of_node}">` element for each `ANode` of the AST?
+ #
# Used to have a really huge and verbose HTML (mainly for debug)
var with_ast = false is writable
#
# By default, `null` is returned.
# Clients are therefore encouraged to redefine the method in a subclass to control where entities should link to.
- fun hrefto(entitiy: MEntity): nullable String do return null
+ fun hrefto(entity: MEntity): nullable String do return null
init
do
redef class MEntity
# The documentation associated to the entity
- var mdoc: nullable MDoc is writable
+ var mdoc: nullable MDoc = null is writable
# The documentation associated to the entity or their main nested entity.
#
# Entities outside these modules will not be linked.
var mmodules: Collection[MModule]
- redef fun hrefto(entitiy) do return entitiy.href(self)
+ redef fun hrefto(entity) do return entity.href(self)
end
redef class MEntity
class CallSite
super MEntity
- redef var location: Location
+ redef var location
# The static type of the receiver (possibly unresolved)
var recv: MType
redef class Variable
# The declared type of the variable
- var declared_type: nullable MType is writable
+ var declared_type: nullable MType = null is writable
# Was the variable type-adapted?
# This is used to speedup type retrieval while it remains `false`