Exemplo n.º 1
0
        private ICollection <Diagnostic> GetMergedDiagnostics()
        {
            var cachedDiagnostics = this.cache.ReferenceDirectiveDiagnostics.Value;

            if (latestLazyRootDeclaration == null)
            {
                return(cachedDiagnostics);
            }
            else
            {
                return(UnionCollection <Diagnostic> .Create(cachedDiagnostics, latestLazyRootDeclaration.Value.ReferenceDirectiveDiagnostics));
            }
        }
Exemplo n.º 2
0
        private ICollection <string> GetMergedNamespaceNames()
        {
            var cachedNamespaceNames = this.cache.NamespaceNames.Value;

            if (latestLazyRootDeclaration == null)
            {
                return(cachedNamespaceNames);
            }
            else
            {
                return(UnionCollection <string> .Create(cachedNamespaceNames, GetNamespaceNames(latestLazyRootDeclaration.Value)));
            }
        }
Exemplo n.º 3
0
        private ICollection <ReferenceDirective> GetMergedReferenceDirectives()
        {
            var cachedReferenceDirectives = this.cache.ReferenceDirectives.Value;

            if (latestLazyRootDeclaration == null)
            {
                return(cachedReferenceDirectives);
            }
            else
            {
                return(UnionCollection <ReferenceDirective> .Create(cachedReferenceDirectives, latestLazyRootDeclaration.Value.ReferenceDirectives));
            }
        }
Exemplo n.º 4
0
        private ICollection <string> GetMergedTypeNames()
        {
            var cachedTypeNames = _cache.TypeNames.Value;

            if (_latestLazyRootDeclaration == null)
            {
                return(cachedTypeNames);
            }
            else
            {
                return(UnionCollection <string> .Create(cachedTypeNames, GetTypeNames(_latestLazyRootDeclaration.Value)));
            }
        }