captureCallScope method

void captureCallScope(
  1. HTCallScope? scope
)

Implementation

void captureCallScope(HTCallScope? scope) {
  definingScope = scope;
  for (final upvalue in callScopeUpvalues) {
    var owner = scope;
    for (var i = 0; i < upvalue.depth; ++i) {
      owner = owner?.closure;
    }
    capturedCells.add(owner!.capture(upvalue.slot));
  }
}