private ICollection <ReferenceDirective> GetMergedReferenceDirectives() { var cachedReferenceDirectives = _cache.ReferenceDirectives.Value; if (_latestLazyRootDeclaration == null) { return(cachedReferenceDirectives); } else { return(UnionCollection <ReferenceDirective> .Create(cachedReferenceDirectives, _latestLazyRootDeclaration.Value.ReferenceDirectives)); } }
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 = _cache.NamespaceNames.Value; if (_latestLazyRootDeclaration == null) { return(cachedNamespaceNames); } else { return(UnionCollection <string> .Create(cachedNamespaceNames, GetNamespaceNames(_latestLazyRootDeclaration.Value))); } }
private ICollection <string> GetMergedTypeNames() { var cachedTypeNames = this.cache.TypeNames.Value; if (latestLazyRootDeclaration == null) { return(cachedTypeNames); } else { return(UnionCollection <string> .Create(cachedTypeNames, GetTypeNames(latestLazyRootDeclaration.Value))); } }