scopeTrial method

void scopeTrial(
  1. PrimaryRepairInfo repair,
  2. List<int> stack,
  3. int stack_top
)

Implementation

void scopeTrial(PrimaryRepairInfo repair, List<int> stack, int stack_top) {
  if (stateSeen.length < stateStack.length) {
    stateSeen = List<int>.filled(stateStack.length, 0);
  }
  for (var i = 0; i < stateStack.length; i++) {
    stateSeen[i] = NIL;
  }

  statePoolTop = 0;
  if (statePool.length < stateStack.length) {
    statePool = List.filled(stateStack.length, null);
  }
  scopeTrialCheck(repair, stack, stack_top, 0);

  repair.code = SCOPE_CODE;
  repair.misspellIndex = 10;

  return;
}