コード例 #1
0
 public static NestedScope CreateGlobal(
     LexicalScope containingScope,
     SymbolDictionary symbolsInScope,
     SymbolDictionary?symbolsInNestedScopes)
 {
     return(new NestedScope(containingScope, true, symbolsInScope,
                            symbolsInNestedScopes ?? SymbolDictionary.Empty));
 }
コード例 #2
0
 public static NestedScope Create(
     LexicalScope containingScope,
     SymbolDictionary symbolsInScope,
     SymbolDictionary?symbolsInNestedScopes = null)
 {
     return(new NestedScope(containingScope, false, symbolsInScope,
                            symbolsInNestedScopes ?? SymbolDictionary.Empty));
 }
コード例 #3
0
 private NestedScope(
     LexicalScope containingScope,
     bool isGlobalScope,
     SymbolDictionary symbolsInScope,
     SymbolDictionary symbolsInNestedScopes)
 {
     ContainingPackagesScope    = containingScope.ContainingPackagesScope;
     this.containingScope       = containingScope;
     this.isGlobalScope         = isGlobalScope;
     this.symbolsInScope        = symbolsInScope;
     this.symbolsInNestedScopes = symbolsInNestedScopes;
 }