SimpleSelector class abstract base

An abstract superclass for simple selectors.

Inheritance

Constructors

SimpleSelector(FileSpan span)
SimpleSelector.parse(String contents, {Object? url, Logger? logger, bool allowParent = true})
Parses a simple selector from contents.
factory

Properties

hasComplicatedSuperselectorSemantics bool
Whether this requires complex non-local reasoning to determine whether it's a super- or sub-selector.
no setter
hashCode int
The hash code for this object.
no setterinherited
isBogus bool
Whether this selector is not valid CSS.
no setterinherited
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.
no setter

Methods

accept<T>(SelectorVisitor<T> visitor) → T
Calls the appropriate visit method on visitor.
inherited
assertNotBogus({String? name}) → void
Prints a warning if this is a bogus selector.
inherited
isSuperselector(SimpleSelector 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.
inherited