private DeclarationTable( ImmutableSetWithInsertionOrder <RootSingleNamespaceDeclaration> allOlderRootDeclarations, Lazy <RootSingleNamespaceDeclaration> latestLazyRootDeclaration, Cache cache) { _allOlderRootDeclarations = allOlderRootDeclarations; _latestLazyRootDeclaration = latestLazyRootDeclaration; _cache = cache ?? new Cache(this); _typeNames = new Lazy <ICollection <string> >(GetMergedTypeNames); _namespaceNames = new Lazy <ICollection <string> >(GetMergedNamespaceNames); _referenceDirectives = new Lazy <ICollection <ReferenceDirective> >(GetMergedReferenceDirectives); }
private DeclarationTable( ImmutableSetWithInsertionOrder<RootSingleNamespaceDeclaration> allOlderRootDeclarations, Lazy<RootSingleNamespaceDeclaration> latestLazyRootDeclaration, Cache cache) { _allOlderRootDeclarations = allOlderRootDeclarations; _latestLazyRootDeclaration = latestLazyRootDeclaration; _cache = cache ?? new Cache(this); _mergedRoot = new Lazy<MergedNamespaceDeclaration>(GetMergedRoot); _typeNames = new Lazy<ICollection<string>>(GetMergedTypeNames); _namespaceNames = new Lazy<ICollection<string>>(GetMergedNamespaceNames); _referenceDirectives = new Lazy<ICollection<ReferenceDirective>>(GetMergedReferenceDirectives); }
private DeclarationTable( ImmutableSetWithInsertionOrder<RootSingleNamespaceDeclaration> allOlderRootDeclarations, Lazy<RootSingleNamespaceDeclaration> latestLazyRootDeclaration, Cache cache) { this.allOlderRootDeclarations = allOlderRootDeclarations; this.latestLazyRootDeclaration = latestLazyRootDeclaration; this.cache = cache ?? new Cache(this); this.mergedRoot = new Lazy<MergedNamespaceDeclaration>(GetMergedRoot); this.typeNames = new Lazy<ICollection<string>>(GetMergedTypeNames); this.namespaceNames = new Lazy<ICollection<string>>(GetMergedNamespaceNames); this.referenceDirectives = new Lazy<ICollection<ReferenceDirective>>(GetMergedReferenceDirectives); this.referenceDirectiveDiagnostics = new Lazy<ICollection<Diagnostic>>(GetMergedDiagnostics); }
private DeclarationTable( ImmutableSetWithInsertionOrder <RootSingleNamespaceDeclaration> allOlderRootDeclarations, Lazy <RootSingleNamespaceDeclaration> latestLazyRootDeclaration, Cache cache) { this.allOlderRootDeclarations = allOlderRootDeclarations; this.latestLazyRootDeclaration = latestLazyRootDeclaration; this.cache = cache ?? new Cache(this); this.mergedRoot = new Lazy <MergedNamespaceDeclaration>(GetMergedRoot); this.typeNames = new Lazy <ICollection <string> >(GetMergedTypeNames); this.namespaceNames = new Lazy <ICollection <string> >(GetMergedNamespaceNames); this.referenceDirectives = new Lazy <ICollection <ReferenceDirective> >(GetMergedReferenceDirectives); this.referenceDirectiveDiagnostics = new Lazy <ICollection <Diagnostic> >(GetMergedDiagnostics); }