Beispiel #1
0
 public override Completion CreateImmutableBinding(string name, bool strict)
 {
     if (bindings.ContainsKey(name))
     {
         throw new InvalidOperationException("Spec 8.1.1.1.3 step 2");
     }
     bindings.Add(name, BindingRecord.Immutable(strict: strict));
     return(Completion.NormalCompletion());
 }
Beispiel #2
0
 public override Completion CreateMutableBinding(string name, bool deletable)
 {
     if (bindings.ContainsKey(name))
     {
         throw new InvalidOperationException("Spec 8.1.1.1.2 step 2");
     }
     bindings.Add(name, BindingRecord.Mutable(canDelete: deletable));
     return(Completion.NormalCompletion());
 }