public static NestedScope CreateGlobal( LexicalScope containingScope, SymbolDictionary symbolsInScope, SymbolDictionary?symbolsInNestedScopes) { return(new NestedScope(containingScope, true, symbolsInScope, symbolsInNestedScopes ?? SymbolDictionary.Empty)); }
public static NestedScope Create( LexicalScope containingScope, SymbolDictionary symbolsInScope, SymbolDictionary?symbolsInNestedScopes = null) { return(new NestedScope(containingScope, false, symbolsInScope, symbolsInNestedScopes ?? SymbolDictionary.Empty)); }
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; }