# Abstract standard visitor
class Visitor
+ # What the visitor do when a node is visited
+ # Concrete visitors should redefine this method.
+ protected fun visit(e: nullable PNode) is abstract
+
# Ask the visitor to visit a given node.
# Usually automatically called by visit_all* methods.
- # Concrete visitors should redefine this method.
- fun visit(e: nullable PNode) is abstract
+ # This methos should not be redefined
+ fun enter_visit(e: nullable PNode)
+ do
+ var old = _current_node
+ _current_node = e
+ visit(e)
+ _current_node = old
+ end
+
+ # The current visited node
+ readable var _current_node: nullable PNode = null
end
redef class AModule
redef fun visit_all(v: Visitor)
do
if _n_packagedecl != null then
- v.visit(_n_packagedecl.as(not null))
+ v.enter_visit(_n_packagedecl.as(not null))
end
for n in _n_imports do
- v.visit(n)
+ v.enter_visit(n)
end
for n in _n_classdefs do
- v.visit(n)
+ v.enter_visit(n)
end
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_packagedecl != null then
- v.visit(_n_packagedecl.as(not null))
+ v.enter_visit(_n_packagedecl.as(not null))
end
do
var i = _n_imports.length
while i >= 0 do
- v.visit(_n_imports[i])
+ v.enter_visit(_n_imports[i])
i = i - 1
end
end
do
var i = _n_classdefs.length
while i >= 0 do
- v.visit(_n_classdefs[i])
+ v.enter_visit(_n_classdefs[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
- v.visit(_n_kwpackage)
- v.visit(_n_id)
+ v.enter_visit(_n_kwpackage)
+ v.enter_visit(_n_id)
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
- v.visit(_n_kwpackage)
- v.visit(_n_id)
+ v.enter_visit(_n_kwpackage)
+ v.enter_visit(_n_id)
end
end
redef class AImport
redef fun visit_all(v: Visitor)
do
- v.visit(_n_visibility)
- v.visit(_n_kwimport)
- v.visit(_n_id)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwimport)
+ v.enter_visit(_n_id)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_visibility)
- v.visit(_n_kwimport)
- v.visit(_n_id)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwimport)
+ v.enter_visit(_n_id)
end
end
redef class ANoImport
redef fun visit_all(v: Visitor)
do
- v.visit(_n_visibility)
- v.visit(_n_kwimport)
- v.visit(_n_kwend)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwimport)
+ v.enter_visit(_n_kwend)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_visibility)
- v.visit(_n_kwimport)
- v.visit(_n_kwend)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwimport)
+ v.enter_visit(_n_kwend)
end
end
redef class APublicVisibility
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwprivate)
+ v.enter_visit(_n_kwprivate)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwprivate)
+ v.enter_visit(_n_kwprivate)
end
end
redef class AProtectedVisibility
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwprotected)
+ v.enter_visit(_n_kwprotected)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwprotected)
+ v.enter_visit(_n_kwprotected)
end
end
redef class AIntrudeVisibility
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwintrude)
+ v.enter_visit(_n_kwintrude)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwintrude)
+ v.enter_visit(_n_kwintrude)
end
end
redef class AClassdef
redef fun visit_all(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_classkind)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_classkind)
if _n_id != null then
- v.visit(_n_id.as(not null))
+ v.enter_visit(_n_id.as(not null))
end
for n in _n_formaldefs do
- v.visit(n)
+ v.enter_visit(n)
end
for n in _n_superclasses do
- v.visit(n)
+ v.enter_visit(n)
end
for n in _n_propdefs do
- v.visit(n)
+ v.enter_visit(n)
end
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_classkind)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_classkind)
if _n_id != null then
- v.visit(_n_id.as(not null))
+ v.enter_visit(_n_id.as(not null))
end
do
var i = _n_formaldefs.length
while i >= 0 do
- v.visit(_n_formaldefs[i])
+ v.enter_visit(_n_formaldefs[i])
i = i - 1
end
end
do
var i = _n_superclasses.length
while i >= 0 do
- v.visit(_n_superclasses[i])
+ v.enter_visit(_n_superclasses[i])
i = i - 1
end
end
do
var i = _n_propdefs.length
while i >= 0 do
- v.visit(_n_propdefs[i])
+ v.enter_visit(_n_propdefs[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
for n in _n_propdefs do
- v.visit(n)
+ v.enter_visit(n)
end
end
do
var i = _n_propdefs.length
while i >= 0 do
- v.visit(_n_propdefs[i])
+ v.enter_visit(_n_propdefs[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
for n in _n_propdefs do
- v.visit(n)
+ v.enter_visit(n)
end
end
do
var i = _n_propdefs.length
while i >= 0 do
- v.visit(_n_propdefs[i])
+ v.enter_visit(_n_propdefs[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwclass)
+ v.enter_visit(_n_kwclass)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwclass)
+ v.enter_visit(_n_kwclass)
end
end
redef class AAbstractClasskind
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwabstract)
- v.visit(_n_kwclass)
+ v.enter_visit(_n_kwabstract)
+ v.enter_visit(_n_kwclass)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwabstract)
- v.visit(_n_kwclass)
+ v.enter_visit(_n_kwabstract)
+ v.enter_visit(_n_kwclass)
end
end
redef class AInterfaceClasskind
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwinterface)
+ v.enter_visit(_n_kwinterface)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwinterface)
+ v.enter_visit(_n_kwinterface)
end
end
redef class AUniversalClasskind
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwuniversal)
+ v.enter_visit(_n_kwuniversal)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwuniversal)
+ v.enter_visit(_n_kwuniversal)
end
end
redef class AFormaldef
redef fun visit_all(v: Visitor)
do
- v.visit(_n_id)
+ v.enter_visit(_n_id)
if _n_type != null then
- v.visit(_n_type.as(not null))
+ v.enter_visit(_n_type.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_id)
+ v.enter_visit(_n_id)
if _n_type != null then
- v.visit(_n_type.as(not null))
+ v.enter_visit(_n_type.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwspecial)
- v.visit(_n_type)
+ v.enter_visit(_n_kwspecial)
+ v.enter_visit(_n_type)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwspecial)
- v.visit(_n_type)
+ v.enter_visit(_n_kwspecial)
+ v.enter_visit(_n_type)
end
end
redef class AAttrPropdef
redef fun visit_all(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_readable != null then
- v.visit(_n_readable.as(not null))
+ v.enter_visit(_n_readable.as(not null))
end
if _n_writable != null then
- v.visit(_n_writable.as(not null))
+ v.enter_visit(_n_writable.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
+ v.enter_visit(_n_visibility)
if _n_kwattr != null then
- v.visit(_n_kwattr.as(not null))
+ v.enter_visit(_n_kwattr.as(not null))
end
if _n_kwvar != null then
- v.visit(_n_kwvar.as(not null))
+ v.enter_visit(_n_kwvar.as(not null))
end
- v.visit(_n_id)
+ v.enter_visit(_n_id)
if _n_type != null then
- v.visit(_n_type.as(not null))
+ v.enter_visit(_n_type.as(not null))
end
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_readable != null then
- v.visit(_n_readable.as(not null))
+ v.enter_visit(_n_readable.as(not null))
end
if _n_writable != null then
- v.visit(_n_writable.as(not null))
+ v.enter_visit(_n_writable.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
+ v.enter_visit(_n_visibility)
if _n_kwattr != null then
- v.visit(_n_kwattr.as(not null))
+ v.enter_visit(_n_kwattr.as(not null))
end
if _n_kwvar != null then
- v.visit(_n_kwvar.as(not null))
+ v.enter_visit(_n_kwvar.as(not null))
end
- v.visit(_n_id)
+ v.enter_visit(_n_id)
if _n_type != null then
- v.visit(_n_type.as(not null))
+ v.enter_visit(_n_type.as(not null))
end
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_methid)
- v.visit(_n_signature)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_methid)
+ v.enter_visit(_n_signature)
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_methid)
- v.visit(_n_signature)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_methid)
+ v.enter_visit(_n_signature)
end
end
redef class ADeferredMethPropdef
redef fun visit_all(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwmeth)
- v.visit(_n_methid)
- v.visit(_n_signature)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwmeth)
+ v.enter_visit(_n_methid)
+ v.enter_visit(_n_signature)
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwmeth)
- v.visit(_n_methid)
- v.visit(_n_signature)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwmeth)
+ v.enter_visit(_n_methid)
+ v.enter_visit(_n_signature)
end
end
redef class AInternMethPropdef
redef fun visit_all(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwmeth)
- v.visit(_n_methid)
- v.visit(_n_signature)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwmeth)
+ v.enter_visit(_n_methid)
+ v.enter_visit(_n_signature)
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwmeth)
- v.visit(_n_methid)
- v.visit(_n_signature)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwmeth)
+ v.enter_visit(_n_methid)
+ v.enter_visit(_n_signature)
end
end
redef class AExternMethPropdef
redef fun visit_all(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwmeth)
- v.visit(_n_methid)
- v.visit(_n_signature)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwmeth)
+ v.enter_visit(_n_methid)
+ v.enter_visit(_n_signature)
if _n_extern != null then
- v.visit(_n_extern.as(not null))
+ v.enter_visit(_n_extern.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwmeth)
- v.visit(_n_methid)
- v.visit(_n_signature)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwmeth)
+ v.enter_visit(_n_methid)
+ v.enter_visit(_n_signature)
if _n_extern != null then
- v.visit(_n_extern.as(not null))
+ v.enter_visit(_n_extern.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwmeth)
- v.visit(_n_methid)
- v.visit(_n_signature)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwmeth)
+ v.enter_visit(_n_methid)
+ v.enter_visit(_n_signature)
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwmeth)
- v.visit(_n_methid)
- v.visit(_n_signature)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwmeth)
+ v.enter_visit(_n_methid)
+ v.enter_visit(_n_signature)
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwinit)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwinit)
if _n_methid != null then
- v.visit(_n_methid.as(not null))
+ v.enter_visit(_n_methid.as(not null))
end
- v.visit(_n_signature)
+ v.enter_visit(_n_signature)
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwinit)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwinit)
if _n_methid != null then
- v.visit(_n_methid.as(not null))
+ v.enter_visit(_n_methid.as(not null))
end
- v.visit(_n_signature)
+ v.enter_visit(_n_signature)
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwtype)
- v.visit(_n_id)
- v.visit(_n_type)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwtype)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_type)
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_doc != null then
- v.visit(_n_doc.as(not null))
+ v.enter_visit(_n_doc.as(not null))
end
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_visibility)
- v.visit(_n_kwtype)
- v.visit(_n_id)
- v.visit(_n_type)
+ v.enter_visit(_n_visibility)
+ v.enter_visit(_n_kwtype)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_type)
end
end
redef class AReadAble
redef fun visit_all(v: Visitor)
do
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_kwreadable)
+ v.enter_visit(_n_kwreadable)
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_kwreadable)
+ v.enter_visit(_n_kwreadable)
end
end
redef class AWriteAble
redef fun visit_all(v: Visitor)
do
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_kwwritable)
+ v.enter_visit(_n_kwwritable)
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_kwredef != null then
- v.visit(_n_kwredef.as(not null))
+ v.enter_visit(_n_kwredef.as(not null))
end
- v.visit(_n_kwwritable)
+ v.enter_visit(_n_kwwritable)
end
end
redef class AIdMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_id)
+ v.enter_visit(_n_id)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_id)
+ v.enter_visit(_n_id)
end
end
redef class APlusMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_plus)
+ v.enter_visit(_n_plus)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_plus)
+ v.enter_visit(_n_plus)
end
end
redef class AMinusMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_minus)
+ v.enter_visit(_n_minus)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_minus)
+ v.enter_visit(_n_minus)
end
end
redef class AStarMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_star)
+ v.enter_visit(_n_star)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_star)
+ v.enter_visit(_n_star)
end
end
redef class ASlashMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_slash)
+ v.enter_visit(_n_slash)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_slash)
+ v.enter_visit(_n_slash)
end
end
redef class APercentMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_percent)
+ v.enter_visit(_n_percent)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_percent)
+ v.enter_visit(_n_percent)
end
end
redef class AEqMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_eq)
+ v.enter_visit(_n_eq)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_eq)
+ v.enter_visit(_n_eq)
end
end
redef class ANeMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_ne)
+ v.enter_visit(_n_ne)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_ne)
+ v.enter_visit(_n_ne)
end
end
redef class ALeMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_le)
+ v.enter_visit(_n_le)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_le)
+ v.enter_visit(_n_le)
end
end
redef class AGeMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_ge)
+ v.enter_visit(_n_ge)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_ge)
+ v.enter_visit(_n_ge)
end
end
redef class ALtMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_lt)
+ v.enter_visit(_n_lt)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_lt)
+ v.enter_visit(_n_lt)
end
end
redef class AGtMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_gt)
+ v.enter_visit(_n_gt)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_gt)
+ v.enter_visit(_n_gt)
end
end
redef class ABraMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_obra)
- v.visit(_n_cbra)
+ v.enter_visit(_n_obra)
+ v.enter_visit(_n_cbra)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_obra)
- v.visit(_n_cbra)
+ v.enter_visit(_n_obra)
+ v.enter_visit(_n_cbra)
end
end
redef class AStarshipMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_starship)
+ v.enter_visit(_n_starship)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_starship)
+ v.enter_visit(_n_starship)
end
end
redef class AAssignMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_id)
- v.visit(_n_assign)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_id)
- v.visit(_n_assign)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign)
end
end
redef class ABraassignMethid
redef fun visit_all(v: Visitor)
do
- v.visit(_n_obra)
- v.visit(_n_cbra)
- v.visit(_n_assign)
+ v.enter_visit(_n_obra)
+ v.enter_visit(_n_cbra)
+ v.enter_visit(_n_assign)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_obra)
- v.visit(_n_cbra)
- v.visit(_n_assign)
+ v.enter_visit(_n_obra)
+ v.enter_visit(_n_cbra)
+ v.enter_visit(_n_assign)
end
end
redef class ASignature
redef fun visit_all(v: Visitor)
do
for n in _n_params do
- v.visit(n)
+ v.enter_visit(n)
end
if _n_type != null then
- v.visit(_n_type.as(not null))
+ v.enter_visit(_n_type.as(not null))
end
for n in _n_closure_decls do
- v.visit(n)
+ v.enter_visit(n)
end
end
do
var i = _n_params.length
while i >= 0 do
- v.visit(_n_params[i])
+ v.enter_visit(_n_params[i])
i = i - 1
end
end
if _n_type != null then
- v.visit(_n_type.as(not null))
+ v.enter_visit(_n_type.as(not null))
end
do
var i = _n_closure_decls.length
while i >= 0 do
- v.visit(_n_closure_decls[i])
+ v.enter_visit(_n_closure_decls[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_id)
+ v.enter_visit(_n_id)
if _n_type != null then
- v.visit(_n_type.as(not null))
+ v.enter_visit(_n_type.as(not null))
end
if _n_dotdotdot != null then
- v.visit(_n_dotdotdot.as(not null))
+ v.enter_visit(_n_dotdotdot.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_id)
+ v.enter_visit(_n_id)
if _n_type != null then
- v.visit(_n_type.as(not null))
+ v.enter_visit(_n_type.as(not null))
end
if _n_dotdotdot != null then
- v.visit(_n_dotdotdot.as(not null))
+ v.enter_visit(_n_dotdotdot.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwwith)
+ v.enter_visit(_n_kwwith)
if _n_kwbreak != null then
- v.visit(_n_kwbreak.as(not null))
+ v.enter_visit(_n_kwbreak.as(not null))
end
- v.visit(_n_id)
- v.visit(_n_signature)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_signature)
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwwith)
+ v.enter_visit(_n_kwwith)
if _n_kwbreak != null then
- v.visit(_n_kwbreak.as(not null))
+ v.enter_visit(_n_kwbreak.as(not null))
end
- v.visit(_n_id)
- v.visit(_n_signature)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_signature)
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
if _n_kwnullable != null then
- v.visit(_n_kwnullable.as(not null))
+ v.enter_visit(_n_kwnullable.as(not null))
end
- v.visit(_n_id)
+ v.enter_visit(_n_id)
for n in _n_types do
- v.visit(n)
+ v.enter_visit(n)
end
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_kwnullable != null then
- v.visit(_n_kwnullable.as(not null))
+ v.enter_visit(_n_kwnullable.as(not null))
end
- v.visit(_n_id)
+ v.enter_visit(_n_id)
do
var i = _n_types.length
while i >= 0 do
- v.visit(_n_types[i])
+ v.enter_visit(_n_types[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
for n in _n_expr do
- v.visit(n)
+ v.enter_visit(n)
end
end
do
var i = _n_expr.length
while i >= 0 do
- v.visit(_n_expr[i])
+ v.enter_visit(_n_expr[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwvar)
- v.visit(_n_id)
+ v.enter_visit(_n_kwvar)
+ v.enter_visit(_n_id)
if _n_type != null then
- v.visit(_n_type.as(not null))
+ v.enter_visit(_n_type.as(not null))
end
if _n_assign != null then
- v.visit(_n_assign.as(not null))
+ v.enter_visit(_n_assign.as(not null))
end
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwvar)
- v.visit(_n_id)
+ v.enter_visit(_n_kwvar)
+ v.enter_visit(_n_id)
if _n_type != null then
- v.visit(_n_type.as(not null))
+ v.enter_visit(_n_type.as(not null))
end
if _n_assign != null then
- v.visit(_n_assign.as(not null))
+ v.enter_visit(_n_assign.as(not null))
end
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwreturn)
+ v.enter_visit(_n_kwreturn)
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwreturn)
+ v.enter_visit(_n_kwreturn)
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwbreak)
+ v.enter_visit(_n_kwbreak)
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwbreak)
+ v.enter_visit(_n_kwbreak)
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwabort)
+ v.enter_visit(_n_kwabort)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwabort)
+ v.enter_visit(_n_kwabort)
end
end
redef class AContinueExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwcontinue)
+ v.enter_visit(_n_kwcontinue)
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwcontinue)
+ v.enter_visit(_n_kwcontinue)
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwdo)
+ v.enter_visit(_n_kwdo)
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwdo)
+ v.enter_visit(_n_kwdo)
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwif)
- v.visit(_n_expr)
+ v.enter_visit(_n_kwif)
+ v.enter_visit(_n_expr)
if _n_then != null then
- v.visit(_n_then.as(not null))
+ v.enter_visit(_n_then.as(not null))
end
if _n_else != null then
- v.visit(_n_else.as(not null))
+ v.enter_visit(_n_else.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwif)
- v.visit(_n_expr)
+ v.enter_visit(_n_kwif)
+ v.enter_visit(_n_expr)
if _n_then != null then
- v.visit(_n_then.as(not null))
+ v.enter_visit(_n_then.as(not null))
end
if _n_else != null then
- v.visit(_n_else.as(not null))
+ v.enter_visit(_n_else.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwif)
- v.visit(_n_expr)
- v.visit(_n_kwthen)
- v.visit(_n_then)
- v.visit(_n_kwelse)
- v.visit(_n_else)
+ v.enter_visit(_n_kwif)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwthen)
+ v.enter_visit(_n_then)
+ v.enter_visit(_n_kwelse)
+ v.enter_visit(_n_else)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwif)
- v.visit(_n_expr)
- v.visit(_n_kwthen)
- v.visit(_n_then)
- v.visit(_n_kwelse)
- v.visit(_n_else)
+ v.enter_visit(_n_kwif)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwthen)
+ v.enter_visit(_n_then)
+ v.enter_visit(_n_kwelse)
+ v.enter_visit(_n_else)
end
end
redef class AWhileExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwwhile)
- v.visit(_n_expr)
- v.visit(_n_kwdo)
+ v.enter_visit(_n_kwwhile)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwdo)
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwwhile)
- v.visit(_n_expr)
- v.visit(_n_kwdo)
+ v.enter_visit(_n_kwwhile)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwdo)
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwfor)
- v.visit(_n_id)
- v.visit(_n_expr)
- v.visit(_n_kwdo)
+ v.enter_visit(_n_kwfor)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwdo)
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwfor)
- v.visit(_n_id)
- v.visit(_n_expr)
- v.visit(_n_kwdo)
+ v.enter_visit(_n_kwfor)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwdo)
if _n_block != null then
- v.visit(_n_block.as(not null))
+ v.enter_visit(_n_block.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwassert)
+ v.enter_visit(_n_kwassert)
if _n_id != null then
- v.visit(_n_id.as(not null))
+ v.enter_visit(_n_id.as(not null))
end
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwassert)
+ v.enter_visit(_n_kwassert)
if _n_id != null then
- v.visit(_n_id.as(not null))
+ v.enter_visit(_n_id.as(not null))
end
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
end
end
redef class AOnceExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwonce)
- v.visit(_n_expr)
+ v.enter_visit(_n_kwonce)
+ v.enter_visit(_n_expr)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwonce)
- v.visit(_n_expr)
+ v.enter_visit(_n_kwonce)
+ v.enter_visit(_n_expr)
end
end
redef class ASendExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
end
end
redef class ABinopExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AOrExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AAndExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class ANotExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwnot)
- v.visit(_n_expr)
+ v.enter_visit(_n_kwnot)
+ v.enter_visit(_n_expr)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwnot)
- v.visit(_n_expr)
+ v.enter_visit(_n_kwnot)
+ v.enter_visit(_n_expr)
end
end
redef class AEqExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AEeExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class ANeExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class ALtExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class ALeExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AGtExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AGeExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AIsaExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_type)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_type)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_type)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_type)
end
end
redef class APlusExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AMinusExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AStarshipExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AStarExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class ASlashExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class APercentExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AUminusExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_minus)
- v.visit(_n_expr)
+ v.enter_visit(_n_minus)
+ v.enter_visit(_n_expr)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_minus)
- v.visit(_n_expr)
+ v.enter_visit(_n_minus)
+ v.enter_visit(_n_expr)
end
end
redef class ANewExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwnew)
- v.visit(_n_type)
+ v.enter_visit(_n_kwnew)
+ v.enter_visit(_n_type)
if _n_id != null then
- v.visit(_n_id.as(not null))
+ v.enter_visit(_n_id.as(not null))
end
for n in _n_args do
- v.visit(n)
+ v.enter_visit(n)
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwnew)
- v.visit(_n_type)
+ v.enter_visit(_n_kwnew)
+ v.enter_visit(_n_type)
if _n_id != null then
- v.visit(_n_id.as(not null))
+ v.enter_visit(_n_id.as(not null))
end
do
var i = _n_args.length
while i >= 0 do
- v.visit(_n_args[i])
+ v.enter_visit(_n_args[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
end
end
redef class AAttrAssignExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
- v.visit(_n_assign)
- v.visit(_n_value)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign)
+ v.enter_visit(_n_value)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
- v.visit(_n_assign)
- v.visit(_n_value)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign)
+ v.enter_visit(_n_value)
end
end
redef class AAttrReassignExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
- v.visit(_n_assign_op)
- v.visit(_n_value)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign_op)
+ v.enter_visit(_n_value)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
- v.visit(_n_assign_op)
- v.visit(_n_value)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign_op)
+ v.enter_visit(_n_value)
end
end
redef class ACallExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
for n in _n_args do
- v.visit(n)
+ v.enter_visit(n)
end
for n in _n_closure_defs do
- v.visit(n)
+ v.enter_visit(n)
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
do
var i = _n_args.length
while i >= 0 do
- v.visit(_n_args[i])
+ v.enter_visit(_n_args[i])
i = i - 1
end
end
do
var i = _n_closure_defs.length
while i >= 0 do
- v.visit(_n_closure_defs[i])
+ v.enter_visit(_n_closure_defs[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
for n in _n_args do
- v.visit(n)
+ v.enter_visit(n)
end
- v.visit(_n_assign)
- v.visit(_n_value)
+ v.enter_visit(_n_assign)
+ v.enter_visit(_n_value)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
do
var i = _n_args.length
while i >= 0 do
- v.visit(_n_args[i])
+ v.enter_visit(_n_args[i])
i = i - 1
end
end
- v.visit(_n_assign)
- v.visit(_n_value)
+ v.enter_visit(_n_assign)
+ v.enter_visit(_n_value)
end
end
redef class ACallReassignExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
for n in _n_args do
- v.visit(n)
+ v.enter_visit(n)
end
- v.visit(_n_assign_op)
- v.visit(_n_value)
+ v.enter_visit(_n_assign_op)
+ v.enter_visit(_n_value)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_id)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
do
var i = _n_args.length
while i >= 0 do
- v.visit(_n_args[i])
+ v.enter_visit(_n_args[i])
i = i - 1
end
end
- v.visit(_n_assign_op)
- v.visit(_n_value)
+ v.enter_visit(_n_assign_op)
+ v.enter_visit(_n_value)
end
end
redef class ASuperExpr
redef fun visit_all(v: Visitor)
do
if _n_qualified != null then
- v.visit(_n_qualified.as(not null))
+ v.enter_visit(_n_qualified.as(not null))
end
- v.visit(_n_kwsuper)
+ v.enter_visit(_n_kwsuper)
for n in _n_args do
- v.visit(n)
+ v.enter_visit(n)
end
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_qualified != null then
- v.visit(_n_qualified.as(not null))
+ v.enter_visit(_n_qualified.as(not null))
end
- v.visit(_n_kwsuper)
+ v.enter_visit(_n_kwsuper)
do
var i = _n_args.length
while i >= 0 do
- v.visit(_n_args[i])
+ v.enter_visit(_n_args[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_kwinit)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwinit)
for n in _n_args do
- v.visit(n)
+ v.enter_visit(n)
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_kwinit)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwinit)
do
var i = _n_args.length
while i >= 0 do
- v.visit(_n_args[i])
+ v.enter_visit(_n_args[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
for n in _n_args do
- v.visit(n)
+ v.enter_visit(n)
end
for n in _n_closure_defs do
- v.visit(n)
+ v.enter_visit(n)
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
do
var i = _n_args.length
while i >= 0 do
- v.visit(_n_args[i])
+ v.enter_visit(_n_args[i])
i = i - 1
end
end
do
var i = _n_closure_defs.length
while i >= 0 do
- v.visit(_n_closure_defs[i])
+ v.enter_visit(_n_closure_defs[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
for n in _n_args do
- v.visit(n)
+ v.enter_visit(n)
end
- v.visit(_n_assign)
- v.visit(_n_value)
+ v.enter_visit(_n_assign)
+ v.enter_visit(_n_value)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
do
var i = _n_args.length
while i >= 0 do
- v.visit(_n_args[i])
+ v.enter_visit(_n_args[i])
i = i - 1
end
end
- v.visit(_n_assign)
- v.visit(_n_value)
+ v.enter_visit(_n_assign)
+ v.enter_visit(_n_value)
end
end
redef class ABraReassignExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
for n in _n_args do
- v.visit(n)
+ v.enter_visit(n)
end
- v.visit(_n_assign_op)
- v.visit(_n_value)
+ v.enter_visit(_n_assign_op)
+ v.enter_visit(_n_value)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
do
var i = _n_args.length
while i >= 0 do
- v.visit(_n_args[i])
+ v.enter_visit(_n_args[i])
i = i - 1
end
end
- v.visit(_n_assign_op)
- v.visit(_n_value)
+ v.enter_visit(_n_assign_op)
+ v.enter_visit(_n_value)
end
end
redef class AClosureCallExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_id)
+ v.enter_visit(_n_id)
for n in _n_args do
- v.visit(n)
+ v.enter_visit(n)
end
for n in _n_closure_defs do
- v.visit(n)
+ v.enter_visit(n)
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_id)
+ v.enter_visit(_n_id)
do
var i = _n_args.length
while i >= 0 do
- v.visit(_n_args[i])
+ v.enter_visit(_n_args[i])
i = i - 1
end
end
do
var i = _n_closure_defs.length
while i >= 0 do
- v.visit(_n_closure_defs[i])
+ v.enter_visit(_n_closure_defs[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_id)
+ v.enter_visit(_n_id)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_id)
+ v.enter_visit(_n_id)
end
end
redef class AVarAssignExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_id)
- v.visit(_n_assign)
- v.visit(_n_value)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign)
+ v.enter_visit(_n_value)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_id)
- v.visit(_n_assign)
- v.visit(_n_value)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign)
+ v.enter_visit(_n_value)
end
end
redef class AVarReassignExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_id)
- v.visit(_n_assign_op)
- v.visit(_n_value)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign_op)
+ v.enter_visit(_n_value)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_id)
- v.visit(_n_assign_op)
- v.visit(_n_value)
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign_op)
+ v.enter_visit(_n_value)
end
end
redef class ARangeExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class ACrangeExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AOrangeExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_expr2)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_expr2)
end
end
redef class AArrayExpr
redef fun visit_all(v: Visitor)
do
for n in _n_exprs do
- v.visit(n)
+ v.enter_visit(n)
end
end
do
var i = _n_exprs.length
while i >= 0 do
- v.visit(_n_exprs[i])
+ v.enter_visit(_n_exprs[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwself)
+ v.enter_visit(_n_kwself)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwself)
+ v.enter_visit(_n_kwself)
end
end
redef class AImplicitSelfExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwtrue)
+ v.enter_visit(_n_kwtrue)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwtrue)
+ v.enter_visit(_n_kwtrue)
end
end
redef class AFalseExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwfalse)
+ v.enter_visit(_n_kwfalse)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwfalse)
+ v.enter_visit(_n_kwfalse)
end
end
redef class ANullExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwnull)
+ v.enter_visit(_n_kwnull)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwnull)
+ v.enter_visit(_n_kwnull)
end
end
redef class AIntExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_number)
+ v.enter_visit(_n_number)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_number)
+ v.enter_visit(_n_number)
end
end
redef class AFloatExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_float)
+ v.enter_visit(_n_float)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_float)
+ v.enter_visit(_n_float)
end
end
redef class ACharExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_char)
+ v.enter_visit(_n_char)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_char)
+ v.enter_visit(_n_char)
end
end
redef class AStringExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_string)
+ v.enter_visit(_n_string)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_string)
+ v.enter_visit(_n_string)
end
end
redef class AStartStringExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_string)
+ v.enter_visit(_n_string)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_string)
+ v.enter_visit(_n_string)
end
end
redef class AMidStringExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_string)
+ v.enter_visit(_n_string)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_string)
+ v.enter_visit(_n_string)
end
end
redef class AEndStringExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_string)
+ v.enter_visit(_n_string)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_string)
+ v.enter_visit(_n_string)
end
end
redef class ASuperstringExpr
redef fun visit_all(v: Visitor)
do
for n in _n_exprs do
- v.visit(n)
+ v.enter_visit(n)
end
end
do
var i = _n_exprs.length
while i >= 0 do
- v.visit(_n_exprs[i])
+ v.enter_visit(_n_exprs[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
+ v.enter_visit(_n_expr)
end
end
redef class AAsCastExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_kwas)
- v.visit(_n_type)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwas)
+ v.enter_visit(_n_type)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_kwas)
- v.visit(_n_type)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwas)
+ v.enter_visit(_n_type)
end
end
redef class AAsNotnullExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_kwas)
- v.visit(_n_kwnot)
- v.visit(_n_kwnull)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwas)
+ v.enter_visit(_n_kwnot)
+ v.enter_visit(_n_kwnull)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_expr)
- v.visit(_n_kwas)
- v.visit(_n_kwnot)
- v.visit(_n_kwnull)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_kwas)
+ v.enter_visit(_n_kwnot)
+ v.enter_visit(_n_kwnull)
end
end
redef class AIssetAttrExpr
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwisset)
- v.visit(_n_expr)
- v.visit(_n_id)
+ v.enter_visit(_n_kwisset)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwisset)
- v.visit(_n_expr)
- v.visit(_n_id)
+ v.enter_visit(_n_kwisset)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_id)
end
end
redef class APlusAssignOp
redef fun visit_all(v: Visitor)
do
- v.visit(_n_pluseq)
+ v.enter_visit(_n_pluseq)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_pluseq)
+ v.enter_visit(_n_pluseq)
end
end
redef class AMinusAssignOp
redef fun visit_all(v: Visitor)
do
- v.visit(_n_minuseq)
+ v.enter_visit(_n_minuseq)
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_minuseq)
+ v.enter_visit(_n_minuseq)
end
end
redef class AClosureDef
redef fun visit_all(v: Visitor)
do
- v.visit(_n_kwwith)
+ v.enter_visit(_n_kwwith)
for n in _n_id do
- v.visit(n)
+ v.enter_visit(n)
end
- v.visit(_n_kwdo)
+ v.enter_visit(_n_kwdo)
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
- v.visit(_n_kwwith)
+ v.enter_visit(_n_kwwith)
do
var i = _n_id.length
while i >= 0 do
- v.visit(_n_id[i])
+ v.enter_visit(_n_id[i])
i = i - 1
end
end
- v.visit(_n_kwdo)
+ v.enter_visit(_n_kwdo)
if _n_expr != null then
- v.visit(_n_expr.as(not null))
+ v.enter_visit(_n_expr.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
for n in _n_id do
- v.visit(n)
+ v.enter_visit(n)
end
if _n_classid != null then
- v.visit(_n_classid.as(not null))
+ v.enter_visit(_n_classid.as(not null))
end
end
do
var i = _n_id.length
while i >= 0 do
- v.visit(_n_id[i])
+ v.enter_visit(_n_id[i])
i = i - 1
end
end
if _n_classid != null then
- v.visit(_n_classid.as(not null))
+ v.enter_visit(_n_classid.as(not null))
end
end
end
redef fun visit_all(v: Visitor)
do
for n in _n_comment do
- v.visit(n)
+ v.enter_visit(n)
end
end
do
var i = _n_comment.length
while i >= 0 do
- v.visit(_n_comment[i])
+ v.enter_visit(_n_comment[i])
i = i - 1
end
end
redef fun visit_all(v: Visitor)
do
if _n_base != null then
- v.visit(_n_base.as(not null))
+ v.enter_visit(_n_base.as(not null))
end
end
redef fun visit_all_reverse(v: Visitor)
do
if _n_base != null then
- v.visit(_n_base.as(not null))
+ v.enter_visit(_n_base.as(not null))
end
end
end