ExceptionHandlingDelegatingAstVisitor<T> class

A DelegatingAstVisitor that will additionally catch all exceptions from the delegates without stopping the visiting. A function must be provided that will be invoked for each such exception.

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

Inheritance

Constructors

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

Properties

handler ExceptionInDelegateHandler
The function that will be executed for each exception that is thrown by one of the visit methods on the delegate.
final
delegates → Iterable<AstVisitor<T>>
The delegates whose visit methods will be invoked.
final, inherited
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

visitNode(AstNode node) → T
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns 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
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
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
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
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
visitFunctionTypeAlias(FunctionTypeAlias node) → T
inherited
visitFunctionTypedFormalParameter(FunctionTypedFormalParameter node) → T
inherited
visitGenericFunctionType(GenericFunctionType node) → T
inherited
visitGenericTypeAlias(GenericTypeAlias node) → T
inherited
visitHideCombinator(HideCombinator node) → T
inherited
visitIfElement(IfElement node) → T
inherited
visitIfStatement(IfStatement node) → T
inherited
visitImplementsClause(ImplementsClause 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
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
visitNativeClause(NativeClause node) → T
inherited
visitNativeFunctionBody(NativeFunctionBody node) → T
inherited
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
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
visitShowCombinator(ShowCombinator 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
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
visitTypeName(TypeName 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 ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

logException(AstNode node, Object visitor, dynamic exception, StackTrace stackTrace) → void
A function that can be used with instances of this class to log and then ignore any exceptions that are thrown by any of the delegates.