SelectorSearchVisitor<T> mixin

A SelectorVisitor 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.

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
visitAttributeSelector(AttributeSelector attribute) → T?
override
visitClassSelector(ClassSelector klass) → T?
override
visitComplexSelector(ComplexSelector complex) → T?
override
visitCompoundSelector(CompoundSelector compound) → T?
override
visitIDSelector(IDSelector id) → T?
override
visitParentSelector(ParentSelector placeholder) → T?
override
visitPlaceholderSelector(PlaceholderSelector placeholder) → T?
override
visitPseudoSelector(PseudoSelector pseudo) → T?
override
visitSelectorList(SelectorList list) → T?
override
visitTypeSelector(TypeSelector type) → T?
override
visitUniversalSelector(UniversalSelector universal) → T?
override

Operators

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