TimedAstVisitor<T> class

An AST visitor that captures visit call timings.

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

Implemented types

Constructors

TimedAstVisitor(AstVisitor<T> _baseVisitor, [Stopwatch? watch])
Initialize a newly created visitor to time calls to the given base visitor's visits.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopwatch Stopwatch
Collects elapsed time for visit calls.
final

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

Operators

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