RecursiveAstVisitor<R> class

An AST visitor that will recursively visit all of the nodes in an AST structure. For example, using an instance of this class to visit a Block will also cause all of the statements in the block to be visited.

Subclasses that override a visit method must either invoke the overridden visit method or must explicitly ask the visited node to visit its children. Failure to do so will cause the children of the visited node to not be visited.

Clients may extend this class.

Implemented types

Constructors

RecursiveAstVisitor()
Initialize a newly created visitor.
const

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

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

Operators

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