replaceAll method

void replaceAll(
  1. Parser source,
  2. Parser target
)

Helper to do a global replace of source with target.

Implementation

void replaceAll(Parser source, Parser target) {
  for (final parent in _parsers) {
    parent.replace(source, target);
  }
}