DelegatingAstVisitor<T> class

An AST visitor that will recursively visit all of the nodes in an AST structure. For each node that is visited, the corresponding visit method on one or more other visitors (the 'delegates') will be invoked.

For example, if an instance of this class is created with two delegates V1 and V2, and that instance is used to visit the expression 'x + 1', then the following visit methods will be invoked:

  1. V1.visitBinaryExpression
  2. V2.visitBinaryExpression
  3. V1.visitSimpleIdentifier
  4. V2.visitSimpleIdentifier
  5. V1.visitIntegerLiteral
  6. V2.visitIntegerLiteral

Clients may not extend, implement or mix-in this class.

Inheritance

Constructors

DelegatingAstVisitor(Iterable<AstVisitor<T>> delegates)
Initialize a newly created visitor to use each of the given delegate visitors to visit the nodes of an AST structure.
const

Properties

delegates Iterable<AstVisitor<T>>
The delegates whose visit methods will be invoked.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
visitAdjacentStrings(AdjacentStrings node) → T?
inherited
visitAnnotation(Annotation node) → T?
inherited
visitArgumentList(ArgumentList node) → T?
inherited
visitAsExpression(AsExpression node) → T?
inherited
visitAssertInitializer(AssertInitializer node) → T?
inherited
visitAssertStatement(AssertStatement node) → T?
inherited
visitAssignmentExpression(AssignmentExpression node) → T?
inherited
visitAugmentationImportDirective(AugmentationImportDirective node) → T?
inherited
visitAwaitExpression(AwaitExpression node) → T?
inherited
visitBinaryExpression(BinaryExpression node) → T?
inherited
visitBlock(Block node) → T?
inherited
visitBlockFunctionBody(BlockFunctionBody node) → T?
inherited
visitBooleanLiteral(BooleanLiteral node) → T?
inherited
visitBreakStatement(BreakStatement node) → T?
inherited
visitCascadeExpression(CascadeExpression node) → T?
inherited
visitCatchClause(CatchClause node) → T?
inherited
visitCatchClauseParameter(CatchClauseParameter node) → T?
inherited
visitClassDeclaration(ClassDeclaration node) → T?
inherited
visitClassTypeAlias(ClassTypeAlias node) → T?
inherited
visitComment(Comment node) → T?
inherited
visitCommentReference(CommentReference node) → T?
inherited
visitCompilationUnit(CompilationUnit node) → T?
inherited
visitConditionalExpression(ConditionalExpression node) → T?
inherited
visitConfiguration(Configuration node) → T?
inherited
visitConstructorDeclaration(ConstructorDeclaration node) → T?
inherited
visitConstructorFieldInitializer(ConstructorFieldInitializer node) → T?
inherited
visitConstructorName(ConstructorName node) → T?
inherited
visitConstructorReference(ConstructorReference node) → T?
inherited
visitConstructorSelector(ConstructorSelector node) → T?
inherited
visitContinueStatement(ContinueStatement node) → T?
inherited
visitDeclaredIdentifier(DeclaredIdentifier node) → T?
inherited
visitDefaultFormalParameter(DefaultFormalParameter node) → T?
inherited
visitDoStatement(DoStatement node) → T?
inherited
visitDottedName(DottedName node) → T?
inherited
visitDoubleLiteral(DoubleLiteral node) → T?
inherited
visitEmptyFunctionBody(EmptyFunctionBody node) → T?
inherited
visitEmptyStatement(EmptyStatement node) → T?
inherited
visitEnumConstantArguments(EnumConstantArguments node) → T?
inherited
visitEnumConstantDeclaration(EnumConstantDeclaration node) → T?
inherited
visitEnumDeclaration(EnumDeclaration node) → T?
inherited
visitExportDirective(ExportDirective node) → T?
inherited
visitExpressionFunctionBody(ExpressionFunctionBody node) → T?
inherited
visitExpressionStatement(ExpressionStatement node) → T?
inherited
visitExtendsClause(ExtendsClause node) → T?
inherited
visitExtensionDeclaration(ExtensionDeclaration node) → T?
inherited
visitExtensionOverride(ExtensionOverride node) → T?
inherited
visitFieldDeclaration(FieldDeclaration node) → T?
inherited
visitFieldFormalParameter(FieldFormalParameter node) → T?
inherited
visitForEachPartsWithDeclaration(ForEachPartsWithDeclaration node) → T?
inherited
visitForEachPartsWithIdentifier(ForEachPartsWithIdentifier node) → T?
inherited
visitForElement(ForElement node) → T?
inherited
visitFormalParameterList(FormalParameterList node) → T?
inherited
visitForPartsWithDeclarations(ForPartsWithDeclarations node) → T?
inherited
visitForPartsWithExpression(ForPartsWithExpression node) → T?
inherited
visitForStatement(ForStatement node) → T?
inherited
visitFunctionDeclaration(FunctionDeclaration node) → T?
inherited
visitFunctionDeclarationStatement(FunctionDeclarationStatement node) → T?
inherited
visitFunctionExpression(FunctionExpression node) → T?
inherited
visitFunctionExpressionInvocation(FunctionExpressionInvocation node) → T?
inherited
visitFunctionReference(FunctionReference node) → T?
inherited
visitFunctionTypeAlias(FunctionTypeAlias node) → T?
inherited
visitFunctionTypedFormalParameter(FunctionTypedFormalParameter node) → T?
inherited
visitGenericFunctionType(GenericFunctionType node) → T?
inherited
visitGenericTypeAlias(GenericTypeAlias node) → T?
inherited
visitHideClause(HideClause node) → T?
inherited
visitHideCombinator(HideCombinator node) → T?
inherited
visitIfElement(IfElement node) → T?
inherited
visitIfStatement(IfStatement node) → T?
inherited
visitImplementsClause(ImplementsClause node) → T?
inherited
visitImplicitCallReference(ImplicitCallReference node) → T?
inherited
visitImportDirective(ImportDirective node) → T?
inherited
visitIndexExpression(IndexExpression node) → T?
inherited
visitInstanceCreationExpression(InstanceCreationExpression node) → T?
inherited
visitIntegerLiteral(IntegerLiteral node) → T?
inherited
visitInterpolationExpression(InterpolationExpression node) → T?
inherited
visitInterpolationString(InterpolationString node) → T?
inherited
visitIsExpression(IsExpression node) → T?
inherited
visitLabel(Label node) → T?
inherited
visitLabeledStatement(LabeledStatement node) → T?
inherited
visitLibraryAugmentationDirective(LibraryAugmentationDirective node) → T?
inherited
visitLibraryDirective(LibraryDirective node) → T?
inherited
visitLibraryIdentifier(LibraryIdentifier node) → T?
inherited
visitListLiteral(ListLiteral node) → T?
inherited
visitMapLiteralEntry(MapLiteralEntry node) → T?
inherited
visitMethodDeclaration(MethodDeclaration node) → T?
inherited
visitMethodInvocation(MethodInvocation node) → T?
inherited
visitMixinDeclaration(MixinDeclaration node) → T?
inherited
visitNamedExpression(NamedExpression node) → T?
inherited
visitNamedType(NamedType node) → T?
inherited
visitNativeClause(NativeClause node) → T?
inherited
visitNativeFunctionBody(NativeFunctionBody node) → T?
inherited
visitNode(AstNode node) → T?
override
visitNullLiteral(NullLiteral node) → T?
inherited
visitOnClause(OnClause node) → T?
inherited
visitParenthesizedExpression(ParenthesizedExpression node) → T?
inherited
visitPartDirective(PartDirective node) → T?
inherited
visitPartOfDirective(PartOfDirective node) → T?
inherited
visitPostfixExpression(PostfixExpression node) → T?
inherited
visitPrefixedIdentifier(PrefixedIdentifier node) → T?
inherited
visitPrefixExpression(PrefixExpression node) → T?
inherited
visitPropertyAccess(PropertyAccess node) → T?
inherited
visitRecordLiteral(RecordLiteral node) → T?
inherited
visitRecordTypeAnnotation(RecordTypeAnnotation node) → T?
inherited
visitRecordTypeAnnotationNamedField(RecordTypeAnnotationNamedField node) → T?
inherited
visitRecordTypeAnnotationNamedFields(RecordTypeAnnotationNamedFields node) → T?
inherited
visitRecordTypeAnnotationPositionalField(RecordTypeAnnotationPositionalField node) → T?
inherited
visitRedirectingConstructorInvocation(RedirectingConstructorInvocation node) → T?
inherited
visitRethrowExpression(RethrowExpression node) → T?
inherited
visitReturnStatement(ReturnStatement node) → T?
inherited
visitScriptTag(ScriptTag scriptTag) → T?
inherited
visitSetOrMapLiteral(SetOrMapLiteral node) → T?
inherited
visitShowClause(ShowClause node) → T?
inherited
visitShowCombinator(ShowCombinator node) → T?
inherited
visitShowHideElement(ShowHideElement node) → T?
inherited
visitSimpleFormalParameter(SimpleFormalParameter node) → T?
inherited
visitSimpleIdentifier(SimpleIdentifier node) → T?
inherited
visitSimpleStringLiteral(SimpleStringLiteral node) → T?
inherited
visitSpreadElement(SpreadElement node) → T?
inherited
visitStringInterpolation(StringInterpolation node) → T?
inherited
visitSuperConstructorInvocation(SuperConstructorInvocation node) → T?
inherited
visitSuperExpression(SuperExpression node) → T?
inherited
visitSuperFormalParameter(SuperFormalParameter node) → T?
inherited
visitSwitchCase(SwitchCase node) → T?
inherited
visitSwitchDefault(SwitchDefault node) → T?
inherited
visitSwitchStatement(SwitchStatement node) → T?
inherited
visitSymbolLiteral(SymbolLiteral node) → T?
inherited
visitThisExpression(ThisExpression node) → T?
inherited
visitThrowExpression(ThrowExpression node) → T?
inherited
visitTopLevelVariableDeclaration(TopLevelVariableDeclaration node) → T?
inherited
visitTryStatement(TryStatement node) → T?
inherited
visitTypeArgumentList(TypeArgumentList node) → T?
inherited
visitTypeLiteral(TypeLiteral node) → T?
inherited
visitTypeParameter(TypeParameter node) → T?
inherited
visitTypeParameterList(TypeParameterList node) → T?
inherited
visitVariableDeclaration(VariableDeclaration node) → T?
inherited
visitVariableDeclarationList(VariableDeclarationList node) → T?
inherited
visitVariableDeclarationStatement(VariableDeclarationStatement node) → T?
inherited
visitWhileStatement(WhileStatement node) → T?
inherited
visitWithClause(WithClause node) → T?
inherited
visitYieldStatement(YieldStatement node) → T?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited