Ejemplo n.º 1
0
        private ICollection <ReferenceDirective> GetMergedReferenceDirectives()
        {
            var cachedReferenceDirectives = _cache.ReferenceDirectives.Value;

            if (_latestLazyRootDeclaration == null)
            {
                return(cachedReferenceDirectives);
            }
            else
            {
                return(UnionCollection <ReferenceDirective> .Create(cachedReferenceDirectives, _latestLazyRootDeclaration.Value.ReferenceDirectives));
            }
        }
Ejemplo n.º 2
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));
            }
        }
Ejemplo n.º 3
0
        private ICollection <string> GetMergedNamespaceNames()
        {
            var cachedNamespaceNames = _cache.NamespaceNames.Value;

            if (_latestLazyRootDeclaration == null)
            {
                return(cachedNamespaceNames);
            }
            else
            {
                return(UnionCollection <string> .Create(cachedNamespaceNames, GetNamespaceNames(_latestLazyRootDeclaration.Value)));
            }
        }
Ejemplo n.º 4
0
        private ICollection <string> GetMergedTypeNames()
        {
            var cachedTypeNames = this.cache.TypeNames.Value;

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