isPatternRooted method
Whether a pattern has one root node rather than a sibling forest or a top-level repetition.
Implementation
bool isPatternRooted(int patternIndex) {
_checkNotDisposed();
_checkPatternIndex(patternIndex);
return patternIndex < patternRooted.length
? patternRooted[patternIndex]
: true;
}