fail method

void fail(
  1. String name,
  2. int pos
)

Implementation

@pragma('vm:prefer-inline')
void fail(String name, int pos) {
  if (failPos > pos) {
    return;
  }

  if (failPos < pos) {
    failPos = pos;
    failures = [];
  }

  failures.add(name);
}