private ICollection <Diagnostic> GetMergedDiagnostics() { var cachedDiagnostics = this.cache.ReferenceDirectiveDiagnostics.Value; if (latestLazyRootDeclaration == null) { return(cachedDiagnostics); } else { return(UnionCollection <Diagnostic> .Create(cachedDiagnostics, latestLazyRootDeclaration.Value.ReferenceDirectiveDiagnostics)); } }
private ICollection <string> GetMergedNamespaceNames() { var cachedNamespaceNames = this.cache.NamespaceNames.Value; if (latestLazyRootDeclaration == null) { return(cachedNamespaceNames); } else { return(UnionCollection <string> .Create(cachedNamespaceNames, GetNamespaceNames(latestLazyRootDeclaration.Value))); } }
private ICollection <ReferenceDirective> GetMergedReferenceDirectives() { var cachedReferenceDirectives = this.cache.ReferenceDirectives.Value; if (latestLazyRootDeclaration == null) { return(cachedReferenceDirectives); } else { return(UnionCollection <ReferenceDirective> .Create(cachedReferenceDirectives, latestLazyRootDeclaration.Value.ReferenceDirectives)); } }
private ICollection <string> GetMergedTypeNames() { var cachedTypeNames = _cache.TypeNames.Value; if (_latestLazyRootDeclaration == null) { return(cachedTypeNames); } else { return(UnionCollection <string> .Create(cachedTypeNames, GetTypeNames(_latestLazyRootDeclaration.Value))); } }