nitc :: Visitor :: current_node=
The current visited nodenitc :: Visitor :: defaultinit
nitc :: Visitor :: enter_visit
Ask the visitor to visit a given node.core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: Visitor :: current_node=
The current visited nodenitc :: Visitor :: defaultinit
core :: Object :: defaultinit
nitc :: Visitor :: enter_visit
Ask the visitor to visit a given node.core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: ASelfVisitor
callsite
to see if the target mpropdef
has a contract.
nitc :: CloneVisitor
nitc :: ComputeProdLocationVisitor
Find location of production nodesMProperty
(new T).
nitc :: RegexVisitor
nitc :: StringFinder
nitc :: THLVisitor
MType
(new T).
# Abstract standard visitor on the AST
abstract class Visitor
# What the visitor do when a node is visited
# Concrete visitors should implement this method.
# @toimplement
protected fun visit(e: ANode) is abstract
# Ask the visitor to visit a given node.
# Usually automatically called by visit_all* methods.
# This method should not be redefined
fun enter_visit(e: nullable ANode)
do
if e == null then return
var old = _current_node
_current_node = e
visit(e)
_current_node = old
end
# The current visited node
var current_node: nullable ANode = null is writable
end
src/parser/parser_nodes.nit:460,1--481,3