internal void DefineCapturedVariable(int scope_id, string name, string captured_name, CapturedVariable.CapturedKind kind) { if (reader != null) throw new InvalidOperationException (); AnonymousScopeEntry scope = anonymous_scopes [scope_id]; scope.AddCapturedVariable (name, captured_name, kind); }
public void DefineCapturedLocal(int scope_id, string name, string captured_name) { file.DefineCapturedVariable(scope_id, name, captured_name, CapturedVariable.CapturedKind.Local); }