CustomAstVisitor class

Inheritance
  • Object
  • SimpleAstVisitor<Map>
  • CustomAstVisitor

Constructors

CustomAstVisitor(String? path, String source)
构造函数接收字符串类型的dart源码

Properties

hashCode int
The hash code for this object.
no setterinherited
lines ↔ dynamic
getter/setter pair
path String?
getter/setter pair
returnStatementDeepCount int
当前记录的return语句深度
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printWarningMessage(AstNode node, String message) → void
打印警告信息,包含行号、列号、节点类型、节点源码 AstNode 抽象语法树节点 message 警告信息
toString() String
A string representation of this object.
inherited
visitAdjacentStrings(AdjacentStrings node) Map?
inherited
visitAnnotation(Annotation node) Map?
override
visitArgumentList(ArgumentList node) Map?
override
visitAsExpression(AsExpression node) Map?
inherited
visitAssertInitializer(AssertInitializer node) Map?
inherited
visitAssertStatement(AssertStatement node) Map?
inherited
visitAssignedVariablePattern(AssignedVariablePattern node) Map?
inherited
visitAssignmentExpression(AssignmentExpression node) Map?
inherited
visitAugmentationImportDirective(AugmentationImportDirective node) Map?
inherited
visitAwaitExpression(AwaitExpression node) Map?
inherited
visitBinaryExpression(BinaryExpression node) Map?
inherited
visitBlock(Block node) Map?
override
visitBlockFunctionBody(BlockFunctionBody node) Map?
override
visitBooleanLiteral(BooleanLiteral node) Map?
override
visitBreakStatement(BreakStatement node) Map?
inherited
visitCascadeExpression(CascadeExpression node) Map?
inherited
visitCaseClause(CaseClause node) Map?
inherited
visitCastPattern(CastPattern node) Map?
inherited
visitCatchClause(CatchClause node) Map?
inherited
visitCatchClauseParameter(CatchClauseParameter node) Map?
inherited
visitClassDeclaration(ClassDeclaration node) Map?
override
visitClassTypeAlias(ClassTypeAlias node) Map?
inherited
visitComment(Comment node) Map?
inherited
visitCommentReference(CommentReference node) Map?
inherited
visitCompilationUnit(CompilationUnit node) Map?
override
visitConditionalExpression(ConditionalExpression node) Map?
inherited
visitConfiguration(Configuration node) Map?
inherited
visitConstantPattern(ConstantPattern node) Map?
inherited
visitConstructorDeclaration(ConstructorDeclaration node) Map?
inherited
visitConstructorFieldInitializer(ConstructorFieldInitializer node) Map?
inherited
visitConstructorName(ConstructorName node) Map?
inherited
visitConstructorReference(ConstructorReference node) Map?
inherited
visitConstructorSelector(ConstructorSelector node) Map?
inherited
visitContinueStatement(ContinueStatement node) Map?
inherited
visitDeclaredIdentifier(DeclaredIdentifier node) Map?
inherited
visitDeclaredVariablePattern(DeclaredVariablePattern node) Map?
inherited
visitDefaultFormalParameter(DefaultFormalParameter node) Map?
override
visitDoStatement(DoStatement node) Map?
inherited
visitDottedName(DottedName node) Map?
inherited
visitDoubleLiteral(DoubleLiteral node) Map?
override
visitEmptyFunctionBody(EmptyFunctionBody node) Map?
inherited
visitEmptyStatement(EmptyStatement node) Map?
inherited
visitEnumConstantArguments(EnumConstantArguments node) Map?
inherited
visitEnumConstantDeclaration(EnumConstantDeclaration node) Map?
inherited
visitEnumDeclaration(EnumDeclaration node) Map?
inherited
visitExportDirective(ExportDirective node) Map?
inherited
visitExpressionFunctionBody(ExpressionFunctionBody node) Map?
override
visitExpressionStatement(ExpressionStatement node) Map?
override
visitExtendsClause(ExtendsClause node) Map?
override
visitExtensionDeclaration(ExtensionDeclaration node) Map?
inherited
visitExtensionOverride(ExtensionOverride node) Map?
inherited
visitFieldDeclaration(FieldDeclaration node) Map?
override
visitFieldFormalParameter(FieldFormalParameter node) Map?
inherited
visitForEachPartsWithDeclaration(ForEachPartsWithDeclaration node) Map?
inherited
visitForEachPartsWithIdentifier(ForEachPartsWithIdentifier node) Map?
inherited
visitForEachPartsWithPattern(ForEachPartsWithPattern node) Map?
inherited
visitForElement(ForElement node) Map?
inherited
visitFormalParameterList(FormalParameterList node) Map?
override
visitForPartsWithDeclarations(ForPartsWithDeclarations node) Map?
inherited
visitForPartsWithExpression(ForPartsWithExpression node) Map?
inherited
visitForPartsWithPattern(ForPartsWithPattern node) Map?
inherited
visitForStatement(ForStatement node) Map?
inherited
visitFunctionDeclaration(FunctionDeclaration node) Map?
override
visitFunctionDeclarationStatement(FunctionDeclarationStatement node) Map?
override
visitFunctionExpression(FunctionExpression node) Map?
override
visitFunctionExpressionInvocation(FunctionExpressionInvocation node) Map?
inherited
visitFunctionReference(FunctionReference node) Map?
inherited
visitFunctionTypeAlias(FunctionTypeAlias node) Map?
inherited
visitFunctionTypedFormalParameter(FunctionTypedFormalParameter node) Map?
inherited
visitGenericFunctionType(GenericFunctionType node) Map?
inherited
visitGenericTypeAlias(GenericTypeAlias node) Map?
inherited
visitGuardedPattern(GuardedPattern node) Map?
inherited
visitHideCombinator(HideCombinator node) Map?
inherited
visitIfElement(IfElement node) Map?
inherited
visitIfStatement(IfStatement node) Map?
inherited
visitImplementsClause(ImplementsClause node) Map?
override
visitImplicitCallReference(ImplicitCallReference node) Map?
inherited
visitImportDirective(ImportDirective node) Map?
inherited
visitImportPrefixReference(ImportPrefixReference node) Map?
inherited
visitIndexExpression(IndexExpression node) Map?
inherited
visitInstanceCreationExpression(InstanceCreationExpression node) Map?
override
visitIntegerLiteral(IntegerLiteral node) Map?
override
visitInterpolationExpression(InterpolationExpression node) Map?
override
visitInterpolationString(InterpolationString node) Map?
inherited
visitIsExpression(IsExpression node) Map?
inherited
visitLabel(Label node) Map?
override
visitLabeledStatement(LabeledStatement node) Map?
inherited
visitLibraryAugmentationDirective(LibraryAugmentationDirective node) Map?
inherited
visitLibraryDirective(LibraryDirective node) Map?
inherited
visitLibraryIdentifier(LibraryIdentifier node) Map?
inherited
visitListLiteral(ListLiteral node) Map?
override
visitListPattern(ListPattern node) Map?
inherited
visitLogicalAndPattern(LogicalAndPattern node) Map?
inherited
visitLogicalOrPattern(LogicalOrPattern node) Map?
inherited
visitMapLiteralEntry(MapLiteralEntry node) Map?
override
visitMapPattern(MapPattern node) Map?
inherited
visitMapPatternEntry(MapPatternEntry node) Map?
inherited
visitMethodDeclaration(MethodDeclaration node) Map?
override
visitMethodInvocation(MethodInvocation node) Map?
override
visitMixinDeclaration(MixinDeclaration node) Map?
inherited
visitNamedExpression(NamedExpression node) Map?
override
visitNamedType(NamedType node) Map
override
visitNativeClause(NativeClause node) Map?
inherited
visitNativeFunctionBody(NativeFunctionBody node) Map?
inherited
visitNullAssertPattern(NullAssertPattern node) Map?
inherited
visitNullCheckPattern(NullCheckPattern node) Map?
inherited
visitNullLiteral(NullLiteral node) Map?
inherited
visitObjectPattern(ObjectPattern node) Map?
inherited
visitOnClause(OnClause node) Map?
inherited
visitParenthesizedExpression(ParenthesizedExpression node) Map?
inherited
visitParenthesizedPattern(ParenthesizedPattern node) Map?
inherited
visitPartDirective(PartDirective node) Map?
inherited
visitPartOfDirective(PartOfDirective node) Map?
inherited
visitPatternAssignment(PatternAssignment node) Map?
inherited
visitPatternField(PatternField node) Map?
inherited
visitPatternFieldName(PatternFieldName node) Map?
inherited
visitPatternVariableDeclaration(PatternVariableDeclaration node) Map?
inherited
visitPatternVariableDeclarationStatement(PatternVariableDeclarationStatement node) Map?
inherited
visitPostfixExpression(PostfixExpression node) Map?
override
visitPrefixedIdentifier(PrefixedIdentifier node) Map?
override
visitPrefixExpression(PrefixExpression node) Map?
override
visitPropertyAccess(PropertyAccess node) Map?
override
visitRecordLiteral(RecordLiteral node) Map?
inherited
visitRecordPattern(RecordPattern node) Map?
inherited
visitRecordTypeAnnotation(RecordTypeAnnotation node) Map?
inherited
visitRecordTypeAnnotationNamedField(RecordTypeAnnotationNamedField node) Map?
inherited
visitRecordTypeAnnotationNamedFields(RecordTypeAnnotationNamedFields node) Map?
inherited
visitRecordTypeAnnotationPositionalField(RecordTypeAnnotationPositionalField node) Map?
inherited
visitRedirectingConstructorInvocation(RedirectingConstructorInvocation node) Map?
inherited
visitRelationalPattern(RelationalPattern node) Map?
inherited
visitRestPatternElement(RestPatternElement node) Map?
inherited
visitRethrowExpression(RethrowExpression node) Map?
inherited
visitReturnStatement(ReturnStatement node) Map?
override
visitScriptTag(ScriptTag node) Map?
inherited
visitSetOrMapLiteral(SetOrMapLiteral node) Map?
override
visitShowCombinator(ShowCombinator node) Map?
inherited
visitSimpleFormalParameter(SimpleFormalParameter node) Map?
override
visitSimpleIdentifier(SimpleIdentifier node) Map?
override
visitSimpleStringLiteral(SimpleStringLiteral node) Map?
override
visitSpreadElement(SpreadElement node) Map?
inherited
visitStringInterpolation(StringInterpolation node) Map?
override
visitSuperConstructorInvocation(SuperConstructorInvocation node) Map?
inherited
visitSuperExpression(SuperExpression node) Map?
inherited
visitSuperFormalParameter(SuperFormalParameter node) Map?
inherited
visitSwitchCase(SwitchCase node) Map?
inherited
visitSwitchDefault(SwitchDefault node) Map?
inherited
visitSwitchExpression(SwitchExpression node) Map?
inherited
visitSwitchExpressionCase(SwitchExpressionCase node) Map?
inherited
visitSwitchPatternCase(SwitchPatternCase node) Map?
inherited
visitSwitchStatement(SwitchStatement node) Map?
inherited
visitSymbolLiteral(SymbolLiteral node) Map?
inherited
visitThisExpression(ThisExpression node) Map?
inherited
visitThrowExpression(ThrowExpression node) Map?
inherited
visitTopLevelVariableDeclaration(TopLevelVariableDeclaration node) Map?
inherited
visitTryStatement(TryStatement node) Map?
inherited
visitTypeArgumentList(TypeArgumentList node) Map
override
visitTypeLiteral(TypeLiteral node) Map?
inherited
visitTypeParameter(TypeParameter node) Map?
inherited
visitTypeParameterList(TypeParameterList node) Map?
inherited
visitVariableDeclaration(VariableDeclaration node) Map?
override
visitVariableDeclarationList(VariableDeclarationList node) Map?
override
visitVariableDeclarationStatement(VariableDeclarationStatement node) Map?
override
visitWhenClause(WhenClause node) Map?
inherited
visitWhileStatement(WhileStatement node) Map?
inherited
visitWildcardPattern(WildcardPattern node) Map?
inherited
visitWithClause(WithClause node) Map?
override
visitYieldStatement(YieldStatement node) Map?
inherited

Operators

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