isBogus property

bool get isBogus

Whether this selector is not valid CSS.

This includes both selectors that are useful exclusively for build-time nesting (> .foo) and selectors with invalid combiantors that are still supported for backwards-compatibility reasons (.foo + ~ .bar).

Implementation

bool get isBogus =>
    accept(const _IsBogusVisitor(includeLeadingCombinator: true));