コード例 #1
0
ファイル: GlobalScope.cs プロジェクト: erlis/IronSmalltalk
 public GlobalScope(RTB.SmalltalkNameScope nameScope, BindingScope outerScope)
     : base(outerScope)
 {
     if (nameScope == null)
         throw new ArgumentNullException();
     this.NameScope = nameScope;
 }
コード例 #2
0
 public ClassRelatedBindingScope(SmalltalkClass cls, BindingScope outerScope)
     : base(outerScope)
 {
     if (cls == null)
         throw new ArgumentNullException();
     this.Class = cls;
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 public ComposableBindingScope(BindingScope outerScope, IEnumerable<NameBinding> bindings)
     : base(bindings)
 {
     this.OuterScope = outerScope;
 }
コード例 #5
0
 public ComposableBindingScope(BindingScope outerScope)
     : this(outerScope, null)
 {
 }