parseAsync method
Implementation
@override
void parseAsync(State<ChunkedData<I>> state, ResultCallback<O2> onDone) {
final input = state.input;
final pos = state.pos;
void parse2() {
p.parseAsync(state, (result) {
if (result == null) {
state.pos = pos;
onDone(null);
} else {
onDone(result);
}
});
}
void parse() {
start.parseAsync(state, (result) {
if (result == null) {
onDone(null);
} else {
input.handle(parse2);
}
});
}
parse();
}