isSuperselector method

bool isSuperselector(
  1. ComplexSelector other
)

Whether this is a superselector of other.

That is, whether this matches every element that other matches, as well as possibly matching more.

Implementation

bool isSuperselector(ComplexSelector other) =>
    leadingCombinators.isEmpty &&
    other.leadingCombinators.isEmpty &&
    complexIsSuperselector(components, other.components);