BaseVisitor<T> class
Implementation of Visitor which redirects each visit
method to a method defaultNode.
This is convenient when only a couple of visit
methods are needed
and a default action can be taken for all other nodes.
- Implemented types
-
- Visitor<
T?>
- Visitor<
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
defaultNode(
Node node) → T? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
visit(
Node? node) → T? -
Shorthand for
node.visitBy(this)
.override -
visitArray(
ArrayExpression node) → T? -
override
-
visitArrowFunctionNode(
ArrowFunctionNode node) → T? -
override
-
visitAssignment(
AssignmentExpression node) → T? -
override
-
visitBinary(
BinaryExpression node) → T? -
override
-
visitBlock(
BlockStatement node) → T? -
override
-
visitBreak(
BreakStatement node) → T? -
override
-
visitCall(
CallExpression node) → T? -
override
-
visitCatchClause(
CatchClause node) → T? -
override
-
visitConditional(
ConditionalExpression node) → T? -
override
-
visitContinue(
ContinueStatement node) → T? -
override
-
visitDebugger(
DebuggerStatement node) → T? -
override
-
visitDoWhile(
DoWhileStatement node) → T? -
override
-
visitEmptyStatement(
EmptyStatement node) → T? -
override
-
visitExpressionStatement(
ExpressionStatement node) → T? -
override
-
visitFor(
ForStatement node) → T? -
override
-
visitForIn(
ForInStatement node) → T? -
override
-
visitFunctionDeclaration(
FunctionDeclaration node) → T? -
override
-
visitFunctionExpression(
FunctionExpression node) → T? -
override
-
visitFunctionNode(
FunctionNode node) → T? -
override
-
visitIf(
IfStatement node) → T? -
override
-
visitIndex(
IndexExpression node) → T? -
override
-
visitLabeledStatement(
LabeledStatement node) → T? -
override
-
visitLiteral(
LiteralExpression node) → T? -
override
-
visitMember(
MemberExpression node) → T? -
override
-
visitName(
Name node) → T? -
override
-
visitNameExpression(
NameExpression node) → T? -
override
-
visitObject(
ObjectExpression node) → T? -
override
-
visitProgram(
Program node) → T? -
override
-
visitPrograms(
Programs node) → T? -
override
-
visitProperty(
Property node) → T? -
override
-
visitRegexp(
RegexpExpression node) → T? -
override
-
visitReturn(
ReturnStatement node) → T? -
override
-
visitSequence(
SequenceExpression node) → T? -
override
-
visitSwitch(
SwitchStatement node) → T? -
override
-
visitSwitchCase(
SwitchCase node) → T? -
override
-
visitThis(
ThisExpression node) → T? -
override
-
visitThrow(
ThrowStatement node) → T? -
override
-
visitTry(
TryStatement node) → T? -
override
-
visitUnary(
UnaryExpression node) → T? -
override
-
visitUpdateExpression(
UpdateExpression node) → T? -
override
-
visitVariableDeclaration(
VariableDeclaration node) → T? -
override
-
visitVariableDeclarator(
VariableDeclarator node) → T? -
override
-
visitWhile(
WhileStatement node) → T? -
override
-
visitWith(
WithStatement node) → T? -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited