hasEqualChildren method
Compares the children of this parser with other.
Normally does not need to be overridden, as it works generically on children.
Implementation
@protected
@nonVirtual
bool hasEqualChildren(covariant Parser other, Set<Parser> seen) {
final thisChildren = children, otherChildren = other.children;
if (thisChildren.length != otherChildren.length) {
return false;
}
for (var i = 0; i < thisChildren.length; i++) {
if (!thisChildren[i].isEqualTo(otherChildren[i], seen)) {
return false;
}
}
return true;
}