StatementSearchVisitor<T> mixin

A StatementVisitor whose visit* methods default to returning null, but which returns the first non-null value returned by any method.

This can be extended to find the first instance of particular nodes in the AST.

This supports the same additional methods as RecursiveStatementVisitor.

Implemented types

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
visitAtRootRule(AtRootRule node) → T?
override
visitAtRule(AtRule node) → T?
override
visitCallableDeclaration(CallableDeclaration node) → T?
Visits each of node's expressions and children.
visitChildren(List<Statement> children) → T?
Visits each child in children.
visitContentBlock(ContentBlock node) → T?
override
visitContentRule(ContentRule node) → T?
override
visitDebugRule(DebugRule node) → T?
override
visitDeclaration(Declaration node) → T?
override
visitEachRule(EachRule node) → T?
override
visitErrorRule(ErrorRule node) → T?
override
visitExtendRule(ExtendRule node) → T?
override
visitForRule(ForRule node) → T?
override
visitForwardRule(ForwardRule node) → T?
override
visitFunctionRule(FunctionRule node) → T?
override
visitIfRule(IfRule node) → T?
override
visitImportRule(ImportRule node) → T?
override
visitIncludeRule(IncludeRule node) → T?
override
visitLoudComment(LoudComment node) → T?
override
visitMediaRule(MediaRule node) → T?
override
visitMixinRule(MixinRule node) → T?
override
visitReturnRule(ReturnRule node) → T?
override
visitSilentComment(SilentComment node) → T?
override
visitStyleRule(StyleRule node) → T?
override
visitStylesheet(Stylesheet node) → T?
override
visitSupportsRule(SupportsRule node) → T?
override
visitUseRule(UseRule node) → T?
override
visitVariableDeclaration(VariableDeclaration node) → T?
override
visitWarnRule(WarnRule node) → T?
override
visitWhileRule(WhileRule node) → T?
override

Operators

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