Esempio n. 1
0
 public GlobalScope(RTB.SmalltalkNameScope nameScope, BindingScope outerScope)
     : base(outerScope)
 {
     if (nameScope == null)
         throw new ArgumentNullException();
     this.NameScope = nameScope;
 }
 public ClassRelatedBindingScope(SmalltalkClass cls, BindingScope outerScope)
     : base(outerScope)
 {
     if (cls == null)
         throw new ArgumentNullException();
     this.Class = cls;
 }
 private InitializerCompilationResult Compile(SmalltalkRuntime runtime, BindingScope globalScope, BindingScope reservedScope)
 {
     InitializerVisitor visitor = new InitializerVisitor(runtime, globalScope, reservedScope);
     var code = this.ParseTree.Accept(visitor);
     return new InitializerCompilationResult(code, visitor.BindingRestrictions);
 }
 public ComposableBindingScope(BindingScope outerScope, IEnumerable<NameBinding> bindings)
     : base(bindings)
 {
     this.OuterScope = outerScope;
 }
 public ComposableBindingScope(BindingScope outerScope)
     : this(outerScope, null)
 {
 }