v.enter_visit
on all nested entities.See the specific implementation in the subclasses.
# Call `v.enter_visit` on all nested entities.
#
# See the specific implementation in the subclasses.
fun visit_all(v: ModelVisitor) do end
src/model/model_visitor.nit:100,2--103,38
# Visit all the packages of the model.
redef fun visit_all(v) do
for x in mpackages do v.enter_visit(x)
end
src/model/model_visitor.nit:107,2--110,4
# Visit all the classes and class definitions of the module.
#
# On property introduction, the `MProperty` then the `MPropDef` are visited.
# On property redefinition, only the `MPropDef` is visited (the `MProperty` is visited in an inherited class).
# On property inheritance, nothing is visited (the `MProperty` and the `MPropDef` are visited in inherited classes).
redef fun visit_all(v) do
for x in mpropdefs do
if x.is_intro then v.enter_visit(x.mproperty)
v.enter_visit(x)
end
end
src/model/model_visitor.nit:143,2--153,4
# Visit the root group of the package.
redef fun visit_all(v) do
v.enter_visit(root)
end
src/model/model_visitor.nit:114,2--117,4
# Visit all the subgroups and modules of the group.
redef fun visit_all(v) do
for x in in_nesting.direct_smallers do v.enter_visit(x)
for x in mmodules do v.enter_visit(x)
end
src/model/model_visitor.nit:121,2--125,4
# Visit all the classes and class definitions of the module.
#
# On class introduction, the `MClass` then the `MClassDef` are visited.
# On class refinement, only the `MClassDef` is visited (the `MClass` is visited in an imported module).
# On class importation, nothing is visited (the `MClass` and the `MClassDef` are visited in imported modules).
redef fun visit_all(v) do
for x in mclassdefs do
if x.is_intro then v.enter_visit(x.mclass)
v.enter_visit(x)
end
end
src/model/model_visitor.nit:129,2--139,4