visitChildren method Null safety

void visitChildren(
  1. void f(
    1. int,
    2. ArgDone
    ),
  2. [int offset = 0]
)

Implementation

void visitChildren(void Function(int, ArgDone) f, [int offset = 0]) {
  int n = 0;
  for (final c in _next) {
    f(offset + n++, c);
  }
  final nd = _nextOnDot;
  if (nd != null) {
    final da = nd.child as DigitArg;
    da.visitChildren(f, n);
  }
}