PlaceholderSelector class final
A placeholder selector.
This doesn't match any elements. It's intended to be extended using
@extend
. It's not a plain CSS selector—it should be removed before
emitting a CSS document.
- Inheritance
-
- Object
- Selector
- SimpleSelector
- PlaceholderSelector
Constructors
- PlaceholderSelector(String name, FileSpan span)
Properties
- hasComplicatedSuperselectorSemantics → bool
-
Whether this requires complex non-local reasoning to determine whether
it's a super- or sub-selector.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- isBogus → bool
-
Whether this selector is not valid CSS.
no setterinherited
- isPrivate → bool
-
Returns whether this is a private selector (that is, whether it begins
with
-
or_
).no setter - name → String
-
The name of the placeholder.
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.
no setterinherited
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(
SimpleSelector other) → bool -
Whether this is a superselector of
other
.inherited -
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