ComplexSelector class final

A complex selector.

A complex selector is composed of CompoundSelectors separated by Combinators. It selects elements based on their parent selectors.

Inheritance

Constructors

ComplexSelector(Iterable<CssValue<Combinator>> leadingCombinators, Iterable<ComplexSelectorComponent> components, FileSpan span, {@internal bool lineBreak = false})
ComplexSelector.parse(String contents, {Object? url, bool allowParent = true, Logger? logger})
Parses a complex selector from contents.
factory

Properties

components → List<ComplexSelectorComponent>
The components of this selector.
final
hashCode → int
The hash code for this object.
no setteroverride
isBogus → bool
Whether this selector is not valid CSS.
no setterinherited
leadingCombinators → List<CssValue<Combinator>>
This selector's leading combinators.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
span → FileSpan
The source span associated with the node.
finalinherited
specificity → int
This selector's specificity.
latefinal

Methods

accept<T>(SelectorVisitor<T> visitor) → T
Calls the appropriate visit method on visitor.
override
assertNotBogus({String? name}) → void
Prints a warning if this is a bogus selector.
inherited
isSuperselector(ComplexSelector other) → bool
Whether this is a superselector of other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override