nitc :: AstMetricsVisitor :: _phase
nitc :: AstMetricsVisitor :: defaultinit
nitc :: AstMetricsVisitor :: phase
nitc :: AstMetricsVisitor :: phase=
nitc $ AstMetricsVisitor :: SELF
Type of this instance, automatically specialized in every classnitc $ AstMetricsVisitor :: visit
What the visitor do when a node is visitednitc :: AstMetricsVisitor :: _phase
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: Visitor :: current_node=
The current visited nodenitc :: Visitor :: defaultinit
nitc :: AstMetricsVisitor :: 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 :: AstMetricsVisitor :: phase
nitc :: AstMetricsVisitor :: phase=
private class AstMetricsVisitor
super Visitor
var phase: AstMetricsPhase
redef fun visit(n)
do
n.visit_all(self)
phase.node_counter.inc(n.class_name)
if n isa TId or n isa TAttrid or n isa TClassid then
assert n isa Token
phase.id_counter.inc(n.text)
end
end
end
src/metrics/ast_metrics.nit:48,1--62,3