processSelector method
Return list of selectors
Implementation
Selector? processSelector() {
var simpleSequences = <SimpleSelectorSequence>[];
while (true) {
// First item is never descendant make sure it's COMBINATOR_NONE.
var selectorItem = simpleSelectorSequence(simpleSequences.isEmpty);
if (selectorItem != null) {
simpleSequences.add(selectorItem);
} else {
break;
}
}
if (simpleSequences.isEmpty) return null;
return Selector(simpleSequences);
}