removeSettables<T> function

  1. @Deprecated('Use `resolve(Parser)` instead.')
Parser<T> removeSettables<T>(
  1. Parser<T> parser
)

Returns a copy of parser with all settable parsers removed.

Implementation

@Deprecated('Use `resolve(Parser)` instead.')
Parser<T> removeSettables<T>(Parser<T> parser) {
  return transformParser(parser, <R>(each) {
    while (each is SettableParser) {
      each = each.children.first as Parser<R>;
    }
    return each;
  });
}