AstVisitor<R> class abstract

An object that can be used to visit an AST structure.

Clients may not extend, implement or mix-in this class. There are classes that implement this interface that provide useful default behaviors in package:analyzer/dart/ast/visitor.dart. A couple of the most useful include

  • SimpleAstVisitor which implements every visit method by doing nothing,
  • RecursiveAstVisitor which will cause every node in a structure to be visited, and
  • ThrowingAstVisitor which implements every visit method by throwing an exception.
Implementers

Constructors

AstVisitor()

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

Operators

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