public DiagnosticAnalyzerDriver(
            Project project,
            DiagnosticIncrementalAnalyzer owner,
            IEnumerable<DiagnosticAnalyzer> analyzers,
            bool concurrentAnalysis,
            bool reportSuppressedDiagnostics,
            CompilationWithAnalyzers cachedCompilationWithAnalyzersOpt,
            CancellationToken cancellationToken)
        {
            _project = project;
            _owner = owner;
            _analyzers = analyzers;

            _concurrentAnalysis = concurrentAnalysis;
            _reportSuppressedDiagnostics = reportSuppressedDiagnostics;
            _cancellationToken = cancellationToken;
            _lazyCompilationWithAnalyzers = cachedCompilationWithAnalyzersOpt;

#if DEBUG
            // this is a bit wierd, but if both analyzers and compilationWithAnalyzers are given,
            // make sure both are same.
            if (_lazyCompilationWithAnalyzers != null)
            {
                Contract.ThrowIfFalse(_lazyCompilationWithAnalyzers.Analyzers.SetEquals(_analyzers));
            }
#endif
        }
        public DiagnosticAnalyzerDriver(
            Project project,
            DiagnosticIncrementalAnalyzer owner,
            IEnumerable <DiagnosticAnalyzer> analyzers,
            bool concurrentAnalysis,
            bool reportSuppressedDiagnostics,
            CompilationWithAnalyzers cachedCompilationWithAnalyzersOpt,
            CancellationToken cancellationToken)
        {
            _project   = project;
            _owner     = owner;
            _analyzers = analyzers;

            _concurrentAnalysis           = concurrentAnalysis;
            _reportSuppressedDiagnostics  = reportSuppressedDiagnostics;
            _cancellationToken            = cancellationToken;
            _lazyCompilationWithAnalyzers = cachedCompilationWithAnalyzersOpt;

#if DEBUG
            // this is a bit wierd, but if both analyzers and compilationWithAnalyzers are given,
            // make sure both are same.
            if (_lazyCompilationWithAnalyzers != null)
            {
                Contract.ThrowIfFalse(_lazyCompilationWithAnalyzers.Analyzers.SetEquals(_analyzers));
            }
#endif
        }
        public DiagnosticAnalyzerDriver(
            Project project,
            DiagnosticIncrementalAnalyzer owner,
            IEnumerable <DiagnosticAnalyzer> analyzers,
            bool concurrentAnalysis,
            bool reportSuppressedDiagnostics,
            CompilationWithAnalyzers cachedCompilationWithAnalyzersOpt,
            CancellationToken cancellationToken)
        {
            _project   = project;
            _owner     = owner;
            _analyzers = analyzers;

            _concurrentAnalysis           = concurrentAnalysis;
            _reportSuppressedDiagnostics  = reportSuppressedDiagnostics;
            _cancellationToken            = cancellationToken;
            _lazyCompilationWithAnalyzers = cachedCompilationWithAnalyzersOpt;

#if DEBUG
            // this is a bit wierd, but if both analyzers and compilationWithAnalyzers are given,
            // make sure both are same.
            // We also need to handle the fact that compilationWithAnalyzers is created with all non-supprssed analyzers.
            if (_lazyCompilationWithAnalyzers != null)
            {
                var filteredAnalyzers = _analyzers
                                        .Where(a => !CompilationWithAnalyzers.IsDiagnosticAnalyzerSuppressed(a, _lazyCompilationWithAnalyzers.Compilation.Options, _lazyCompilationWithAnalyzers.AnalysisOptions.OnAnalyzerException))
                                        .Distinct();
                Contract.ThrowIfFalse(_lazyCompilationWithAnalyzers.Analyzers.SetEquals(filteredAnalyzers));
            }
#endif
        }
            public LatestDiagnosticsForSpanGetter(
                DiagnosticIncrementalAnalyzer owner, Document document, SyntaxNode root, TextSpan range, bool blockForData, List <DiagnosticData> diagnostics, bool includeSuppressedDiagnostics, CancellationToken cancellationToken)
            {
                _owner = owner;

                _document         = document;
                _compilerAnalyzer = _owner.HostAnalyzerManager.GetCompilerDiagnosticAnalyzer(_document.Project.Language);

                _range        = range;
                _blockForData = blockForData;
                _includeSuppressedDiagnostics = includeSuppressedDiagnostics;
                _cancellationToken            = cancellationToken;

                Diagnostics = diagnostics;

                // Share the diagnostic analyzer driver across all analyzers.
                var fullSpan = root?.FullSpan;

                // We are computing diagnostics for a single document/span, so we don't need to enable concurrent analysis.
                const bool concurrentAnalysis          = false;
                const bool reportSuppressedDiagnostics = true;

                _spanBasedDriver     = new DiagnosticAnalyzerDriver(_document, _range, root, _owner, concurrentAnalysis, reportSuppressedDiagnostics, _cancellationToken);
                _documentBasedDriver = new DiagnosticAnalyzerDriver(_document, fullSpan, root, _owner, concurrentAnalysis, reportSuppressedDiagnostics, _cancellationToken);
                _projectDriver       = new DiagnosticAnalyzerDriver(_document.Project, _owner, concurrentAnalysis, reportSuppressedDiagnostics, _cancellationToken);
            }
Example #5
0
        public DiagnosticAnalyzerDriver(
            Project project,
            DiagnosticIncrementalAnalyzer owner,
            IEnumerable<DiagnosticAnalyzer> analyzers,
            bool concurrentAnalysis,
            bool reportSuppressedDiagnostics,
            CompilationWithAnalyzers cachedCompilationWithAnalyzersOpt,
            CancellationToken cancellationToken)
        {
            _project = project;
            _owner = owner;
            _analyzers = analyzers;

            _concurrentAnalysis = concurrentAnalysis;
            _reportSuppressedDiagnostics = reportSuppressedDiagnostics;
            _cancellationToken = cancellationToken;
            _lazyCompilationWithAnalyzers = cachedCompilationWithAnalyzersOpt;

#if DEBUG
            // this is a bit wierd, but if both analyzers and compilationWithAnalyzers are given,
            // make sure both are same.
            // We also need to handle the fact that compilationWithAnalyzers is created with all non-supprssed analyzers.
            if (_lazyCompilationWithAnalyzers != null)
            {
                var filteredAnalyzers = _analyzers
                    .Where(a => !CompilationWithAnalyzers.IsDiagnosticAnalyzerSuppressed(a, _lazyCompilationWithAnalyzers.Compilation.Options, _lazyCompilationWithAnalyzers.AnalysisOptions.OnAnalyzerException))
                    .Distinct();
                Contract.ThrowIfFalse(_lazyCompilationWithAnalyzers.Analyzers.SetEquals(filteredAnalyzers));
            }
#endif
        }
Example #6
0
            public DiagnosticAnalyzersAndStates(DiagnosticIncrementalAnalyzer owner, Workspace workspace, WorkspaceAnalyzerManager workspaceAnalyzerManager)
            {
                _owner = owner;
                _sharedAnalyzersAndStates     = new WorkspaceAnalyzersAndStates(workspaceAnalyzerManager);
                _projectAnalyzersAndStatesMap = new ConcurrentDictionary <ProjectId, ProjectAnalyzersAndStates>();

                this.Workspace = workspace;
            }
            public DiagnosticAnalyzersAndStates(DiagnosticIncrementalAnalyzer owner, Workspace workspace, AnalyzerManager analyzerManager)
            {
                _owner = owner;
                _sharedAnalyzersAndStates = new WorkspaceAnalyzersAndStates(analyzerManager);
                _projectAnalyzersAndStatesMap = new ConcurrentDictionary<ProjectId, ProjectAnalyzersAndStates>();

                this.Workspace = workspace;
            }
Example #8
0
 public DiagnosticAnalyzerDriver(
     Project project,
     DiagnosticIncrementalAnalyzer owner,
     bool concurrentAnalysis,
     bool reportSuppressedDiagnostics,
     CancellationToken cancellationToken)
     : this(project, owner, concurrentAnalysis, reportSuppressedDiagnostics, cachedCompilationWithAnalyzersOpt : null, cancellationToken : cancellationToken)
 {
 }
            private async Task <bool> ShouldRunAnalyzerForStateTypeAsync(StateSet stateSet, StateType stateType)
            {
                if (stateType == StateType.Project)
                {
                    return(await DiagnosticIncrementalAnalyzer.ShouldRunAnalyzerForStateTypeAsync(_projectDriver, stateSet.Analyzer, stateType).ConfigureAwait(false));
                }

                return(await DiagnosticIncrementalAnalyzer.ShouldRunAnalyzerForStateTypeAsync(_spanBasedDriver, stateSet.Analyzer, stateType).ConfigureAwait(false));
            }
 public DiagnosticAnalyzerDriver(
     Project project,
     DiagnosticIncrementalAnalyzer owner,
     bool concurrentAnalysis,
     bool reportSuppressedDiagnostics,
     CancellationToken cancellationToken)
     : this (project, owner, concurrentAnalysis, reportSuppressedDiagnostics, cachedCompilationWithAnalyzersOpt: null, cancellationToken: cancellationToken)
 {
 }
Example #11
0
            private bool ShouldRunAnalyzerForStateType(StateSet stateSet, StateType stateType, out bool supportsSemanticInSpan)
            {
                if (stateType == StateType.Project)
                {
                    return(DiagnosticIncrementalAnalyzer.ShouldRunAnalyzerForStateType(_projectDriver, stateSet.Analyzer, stateType, out supportsSemanticInSpan));
                }

                return(DiagnosticIncrementalAnalyzer.ShouldRunAnalyzerForStateType(_spanBasedDriver, stateSet.Analyzer, stateType, out supportsSemanticInSpan));
            }
            public IncrementalAnalyzerDelegatee(DiagnosticAnalyzerService owner, Workspace workspace, HostAnalyzerManager hostAnalyzerManager, AbstractHostDiagnosticUpdateSource hostDiagnosticUpdateSource)
                : base(owner, workspace, hostAnalyzerManager, hostDiagnosticUpdateSource)
            {
                var v1CorrelationId = LogAggregator.GetNextId();
                _engineV1 = new EngineV1.DiagnosticIncrementalAnalyzer(owner, v1CorrelationId, workspace, hostAnalyzerManager, hostDiagnosticUpdateSource);

                var v2CorrelationId = LogAggregator.GetNextId();
                _engineV2 = new EngineV2.DiagnosticIncrementalAnalyzer(owner, v2CorrelationId, workspace, hostAnalyzerManager, hostDiagnosticUpdateSource);
            }
Example #13
0
            public DiagnosticsGetter(DiagnosticIncrementalAnalyzer owner, Solution solution, ProjectId projectId, DocumentId documentId, object id)
            {
                this.Owner      = owner;
                this.Solution   = solution;
                this.ProjectId  = projectId;
                this.DocumentId = documentId;
                this.Id         = id;

                _builder = null;
            }
 public DiagnosticAnalyzerDriver(
     Document document,
     TextSpan? span,
     SyntaxNode root,
     DiagnosticIncrementalAnalyzer owner,
     bool concurrentAnalysis,
     bool reportSuppressedDiagnostics,
     CancellationToken cancellationToken)
     : this(document, span, root, owner, concurrentAnalysis, reportSuppressedDiagnostics, cachedCompilationWithAnalyzersOpt: null, cancellationToken: cancellationToken)
 {
 }
            public IncrementalAnalyzerDelegatee(DiagnosticAnalyzerService owner, Workspace workspace, HostAnalyzerManager hostAnalyzerManager, AbstractHostDiagnosticUpdateSource hostDiagnosticUpdateSource)
                : base(owner, workspace, hostAnalyzerManager, hostDiagnosticUpdateSource)
            {
                var v1CorrelationId = LogAggregator.GetNextId();

                _engineV1 = new EngineV1.DiagnosticIncrementalAnalyzer(owner, v1CorrelationId, workspace, hostAnalyzerManager, hostDiagnosticUpdateSource);

                var v2CorrelationId = LogAggregator.GetNextId();

                _engineV2 = new EngineV2.DiagnosticIncrementalAnalyzer(owner, v2CorrelationId, workspace, hostAnalyzerManager, hostDiagnosticUpdateSource);
            }
Example #16
0
 public DiagnosticAnalyzerDriver(
     Document document,
     TextSpan?span,
     SyntaxNode root,
     DiagnosticIncrementalAnalyzer owner,
     bool concurrentAnalysis,
     bool reportSuppressedDiagnostics,
     CancellationToken cancellationToken)
     : this(document, span, root, owner, concurrentAnalysis, reportSuppressedDiagnostics, cachedCompilationWithAnalyzersOpt : null, cancellationToken : cancellationToken)
 {
 }
            public IncrementalAnalyzerDelegatee(DiagnosticAnalyzerService owner, Workspace workspace, AnalyzerManager analyzerManager)
            {
                _workspace = workspace;
                _analyzerManager = analyzerManager;
                _owner = owner;

                var v1CorrelationId = LogAggregator.GetNextId();
                _engineV1 = new EngineV1.DiagnosticIncrementalAnalyzer(_owner, v1CorrelationId, _workspace, _analyzerManager);

                var v2CorrelationId = LogAggregator.GetNextId();
                _engineV2 = new EngineV2.DiagnosticIncrementalAnalyzer(_owner, v2CorrelationId, _workspace, _analyzerManager);
            }
 public DiagnosticAnalyzerDriver(
     Document document,
     TextSpan? span,
     SyntaxNode root,
     DiagnosticIncrementalAnalyzer owner,
     CancellationToken cancellationToken)
     : this(document.Project, owner, cancellationToken)
 {
     _document = document;
     _span = span;
     _root = root;
 }
 public DiagnosticAnalyzerDriver(
     Document document,
     TextSpan?span,
     SyntaxNode root,
     DiagnosticIncrementalAnalyzer owner,
     CancellationToken cancellationToken)
     : this(document.Project, owner, cancellationToken)
 {
     _document = document;
     _span     = span;
     _root     = root;
 }
Example #20
0
            public LatestDiagnosticsGetter(
                DiagnosticIncrementalAnalyzer owner,
                ImmutableHashSet <string> diagnosticIds,
                Solution solution, ProjectId projectId, DocumentId documentId, object id) :
                base(owner, solution, projectId, documentId, id)
            {
                this.DiagnosticIds = diagnosticIds;

                var numberOfEntries = projectId != null ? 1 : solution.ProjectIds.Count;

                _compilationWithAnalyzersMap = new ConcurrentDictionary <ProjectId, CompilationWithAnalyzers>(concurrencyLevel: numberOfEntries, capacity: numberOfEntries);
            }
            public IncrementalAnalyzerDelegatee(DiagnosticAnalyzerService owner, Workspace workspace, AnalyzerManager analyzerManager)
            {
                _workspace       = workspace;
                _analyzerManager = analyzerManager;
                _owner           = owner;

                var v1CorrelationId = LogAggregator.GetNextId();

                _engineV1 = new EngineV1.DiagnosticIncrementalAnalyzer(_owner, v1CorrelationId, _workspace, _analyzerManager);

                var v2CorrelationId = LogAggregator.GetNextId();

                _engineV2 = new EngineV2.DiagnosticIncrementalAnalyzer(_owner, v2CorrelationId, _workspace, _analyzerManager);
            }
 public DiagnosticAnalyzerDriver(
     Project project,
     DiagnosticIncrementalAnalyzer owner,
     CancellationToken cancellationToken)
 {
     _project = project;
     _owner = owner;
     _cancellationToken = cancellationToken;
     _analysisOptions = new CompilationWithAnalyzersOptions(
         new WorkspaceAnalyzerOptions(project.AnalyzerOptions, project.Solution.Workspace),
         owner.GetOnAnalyzerException(project.Id),
         concurrentAnalysis: false,
         logAnalyzerExecutionTime: true);
 }
Example #23
0
 public DiagnosticAnalyzerDriver(
     Project project,
     DiagnosticIncrementalAnalyzer owner,
     CancellationToken cancellationToken)
 {
     _project           = project;
     _owner             = owner;
     _cancellationToken = cancellationToken;
     _analysisOptions   = new CompilationWithAnalyzersOptions(
         new WorkspaceAnalyzerOptions(project.AnalyzerOptions, project.Solution.Workspace),
         owner.GetOnAnalyzerException(project.Id),
         concurrentAnalysis: false,
         logAnalyzerExecutionTime: true);
 }
 public DiagnosticAnalyzerDriver(
     Document document,
     TextSpan? span,
     SyntaxNode root,
     DiagnosticIncrementalAnalyzer owner,
     bool concurrentAnalysis,
     bool reportSuppressedDiagnostics,
     CompilationWithAnalyzers cachedCompilationWithAnalyzersOpt,
     CancellationToken cancellationToken)
     : this(document.Project, owner, concurrentAnalysis, reportSuppressedDiagnostics, cachedCompilationWithAnalyzersOpt, cancellationToken)
 {
     _document = document;
     _span = span;
     _root = root;
 }
Example #25
0
 public DiagnosticAnalyzerDriver(
     Project project,
     DiagnosticIncrementalAnalyzer owner,
     bool concurrentAnalysis,
     bool reportSuppressedDiagnostics,
     CompilationWithAnalyzers cachedCompilationWithAnalyzersOpt,
     CancellationToken cancellationToken)
 {
     _project                      = project;
     _owner                        = owner;
     _concurrentAnalysis           = concurrentAnalysis;
     _reportSuppressedDiagnostics  = reportSuppressedDiagnostics;
     _cancellationToken            = cancellationToken;
     _lazyCompilationWithAnalyzers = cachedCompilationWithAnalyzersOpt;
 }
Example #26
0
 public DiagnosticAnalyzerDriver(
     Document document,
     TextSpan?span,
     SyntaxNode root,
     DiagnosticIncrementalAnalyzer owner,
     bool concurrentAnalysis,
     bool reportSuppressedDiagnostics,
     CompilationWithAnalyzers cachedCompilationWithAnalyzersOpt,
     CancellationToken cancellationToken)
     : this(document.Project, owner, concurrentAnalysis, reportSuppressedDiagnostics, cachedCompilationWithAnalyzersOpt, cancellationToken)
 {
     _document = document;
     _span     = span;
     _root     = root;
 }
 public DiagnosticAnalyzerDriver(
     Project project,
     DiagnosticIncrementalAnalyzer owner,
     bool concurrentAnalysis,
     bool reportSuppressedDiagnostics,
     CompilationWithAnalyzers cachedCompilationWithAnalyzersOpt,
     CancellationToken cancellationToken)
 {
     _project = project;
     _owner = owner;
     _concurrentAnalysis = concurrentAnalysis;
     _reportSuppressedDiagnostics = reportSuppressedDiagnostics;
     _cancellationToken = cancellationToken;
     _lazyCompilationWithAnalyzers = cachedCompilationWithAnalyzersOpt;
 }
            public LatestDiagnosticsForSpanGetter(
                DiagnosticIncrementalAnalyzer owner, Document document, SyntaxNode root, TextSpan range, bool blockForData, List<DiagnosticData> diagnostics, CancellationToken cancellationToken)
            {
                _owner = owner;

                _document = document;
                _range = range;
                _blockForData = blockForData;
                _cancellationToken = cancellationToken;

                Diagnostics = diagnostics;

                // Share the diagnostic analyzer driver across all analyzers.
                var fullSpan = root?.FullSpan;

                _spanBasedDriver = new DiagnosticAnalyzerDriver(_document, _range, root, _owner, _cancellationToken);
                _documentBasedDriver = new DiagnosticAnalyzerDriver(_document, fullSpan, root, _owner, _cancellationToken);
                _projectDriver = new DiagnosticAnalyzerDriver(_document.Project, _owner, _cancellationToken);
            }
Example #29
0
            public LatestDiagnosticsForSpanGetter(
                DiagnosticIncrementalAnalyzer owner, Document document, SyntaxNode root, TextSpan range, bool blockForData, List <DiagnosticData> diagnostics, CancellationToken cancellationToken)
            {
                _owner = owner;

                _document          = document;
                _range             = range;
                _blockForData      = blockForData;
                _cancellationToken = cancellationToken;

                Diagnostics = diagnostics;

                // Share the diagnostic analyzer driver across all analyzers.
                var fullSpan = root?.FullSpan;

                _spanBasedDriver     = new DiagnosticAnalyzerDriver(_document, _range, root, _owner._diagnosticLogAggregator, _owner.HostDiagnosticUpdateSource, _cancellationToken);
                _documentBasedDriver = new DiagnosticAnalyzerDriver(_document, fullSpan, root, _owner._diagnosticLogAggregator, _owner.HostDiagnosticUpdateSource, _cancellationToken);
                _projectDriver       = new DiagnosticAnalyzerDriver(_document.Project, _owner._diagnosticLogAggregator, _owner.HostDiagnosticUpdateSource, _cancellationToken);
            }
Example #30
0
            public LatestDiagnosticsForSpanGetter(
                DiagnosticIncrementalAnalyzer owner, Document document, SyntaxNode root, TextSpan range, bool blockForData, List <DiagnosticData> diagnostics, bool includeSuppressedDiagnostics, CancellationToken cancellationToken)
            {
                _owner = owner;

                _document         = document;
                _compilerAnalyzer = _owner.HostAnalyzerManager.GetCompilerDiagnosticAnalyzer(_document.Project.Language);

                _range        = range;
                _blockForData = blockForData;
                _includeSuppressedDiagnostics = includeSuppressedDiagnostics;
                _cancellationToken            = cancellationToken;

                Diagnostics = diagnostics;

                // Share the diagnostic analyzer driver across all analyzers.
                var fullSpan = root?.FullSpan;

                _spanBasedDriver     = new DiagnosticAnalyzerDriver(_document, _range, root, _owner, _cancellationToken);
                _documentBasedDriver = new DiagnosticAnalyzerDriver(_document, fullSpan, root, _owner, _cancellationToken);
                _projectDriver       = new DiagnosticAnalyzerDriver(_document.Project, _owner, _cancellationToken);
            }
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner) : this(owner, null)
 {
 }
Example #32
0
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, ImmutableHashSet <string> diagnosticIds, Solution solution, ProjectId projectId) :
     base(owner, diagnosticIds: diagnosticIds, solution: solution, projectId: projectId, documentId: null, id: null)
 {
 }
Example #33
0
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, Solution solution, ProjectId projectId, DocumentId documentId) :
     base(owner, diagnosticIds: null, solution: solution, projectId: projectId, documentId: documentId, id: null)
 {
 }
Example #34
0
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, Solution solution, object id) :
     base(owner, diagnosticIds: null, solution: solution, projectId: null, documentId: null, id: id)
 {
 }
            public LatestDiagnosticsGetter(
                DiagnosticIncrementalAnalyzer owner,
                ImmutableHashSet<string> diagnosticIds,
                Solution solution, ProjectId projectId, DocumentId documentId, object id) :
                base(owner, solution, projectId, documentId, id)
            {
                this.DiagnosticIds = diagnosticIds;

                var numberOfEntries = projectId != null ? 1 : solution.ProjectIds.Count;
                _compilationWithAnalyzersMap = new ConcurrentDictionary<ProjectId, CompilationWithAnalyzers>(concurrencyLevel: numberOfEntries, capacity: numberOfEntries);
            }
 public ReanalysisDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, ImmutableHashSet <string> diagnosticIds) : base(owner, diagnosticIds)
 {
 }
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, ImmutableHashSet <string> diagnosticIds, bool concurrent = false) : base(owner, diagnosticIds)
 {
     _concurrent = concurrent;
 }
 public AnalyzerExecutor(DiagnosticIncrementalAnalyzer owner)
 {
     _owner = owner;
 }
 public LatestDiagnosticsGetter(DiagnosticIncrementalAnalyzer owner, ImmutableHashSet<string> diagnosticIds) : base(owner)
 {
     this.DiagnosticIds = diagnosticIds;
     _compilationWithAnalyzersMap = new Dictionary<ProjectId, CompilationWithAnalyzers>();
 }
            public DiagnosticsGetter(DiagnosticIncrementalAnalyzer owner, Solution solution, ProjectId projectId, DocumentId documentId, object id)
            {
                this.Owner = owner;
                this.Solution = solution;
                this.ProjectId = projectId;
                this.DocumentId = documentId;
                this.Id = id;

                _builder = null;
            }
 public LatestDiagnosticsGetter(DiagnosticIncrementalAnalyzer owner, ImmutableHashSet<string> diagnosticIds) : base(owner)
 {
     this.DiagnosticIds = diagnosticIds;
 }
 public AnalyzerExecutor(DiagnosticIncrementalAnalyzer owner)
 {
     _owner = owner;
 }
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, Solution solution, ProjectId projectId, DocumentId documentId) :
     base(owner, diagnosticIds: null, solution: solution, projectId: projectId, documentId: documentId, id: null)
 {
 }
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, Solution solution, object id) :
     base(owner, diagnosticIds: null, solution: solution, projectId: null, documentId: null, id: id)
 {
 }
 public IDECachedDiagnosticGetter(DiagnosticIncrementalAnalyzer owner) : base(owner)
 {
 }
Example #46
0
 public LatestDiagnosticsForSpanGetter(
     DiagnosticIncrementalAnalyzer owner, Document document, SyntaxNode root, TextSpan range, bool blockForData, CancellationToken cancellationToken) :
     this(owner, document, root, range, blockForData, new List <DiagnosticData>(), cancellationToken)
 {
 }
 public LatestDiagnosticsGetter(DiagnosticIncrementalAnalyzer owner, ImmutableHashSet <string> diagnosticIds) : base(owner)
 {
     this.DiagnosticIds = diagnosticIds;
 }
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner) : this(owner, null)
 {
 }
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, bool concurrent = false) : this(owner, null, concurrent)
 {
 }
 public LatestDiagnosticsForSpanGetter(
     DiagnosticIncrementalAnalyzer owner, Document document, SyntaxNode root, TextSpan range, bool blockForData, bool includeSuppressedDiagnostics, CancellationToken cancellationToken) :
     this(owner, document, root, range, blockForData, new List<DiagnosticData>(), includeSuppressedDiagnostics, cancellationToken)
 {
 }
 public DiagnosticsGetter(DiagnosticIncrementalAnalyzer owner)
 {
     this.Owner = owner;
 }
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, ImmutableHashSet<string> diagnosticIds) : base(owner, diagnosticIds)
 {
 }
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, ImmutableHashSet<string> diagnosticIds, Solution solution, ProjectId projectId) :
     base(owner, diagnosticIds: diagnosticIds, solution: solution, projectId: projectId, documentId: null, id: null)
 {
 }
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, ImmutableHashSet<string> diagnosticIds, bool concurrent = false) : base(owner, diagnosticIds)
 {
     _concurrent = concurrent;
 }
 public IDECachedDiagnosticGetter(DiagnosticIncrementalAnalyzer owner) : base(owner)
 {
 }
 public ReanalysisDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, DiagnosticAnalyzer analyzer, ImmutableHashSet<string> diagnosticIds) : base(owner, diagnosticIds)
 {
     _analyzer = analyzer;
 }
 public IDELatestDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, bool concurrent = false) : this(owner, null, concurrent)
 {
 }
 public IDECachedDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, Solution solution, object id) :
     base(owner, solution, projectId: null, documentId: null, id: id)
 {
 }
 public DiagnosticsGetter(DiagnosticIncrementalAnalyzer owner)
 {
     this.Owner = owner;
 }
 public IDECachedDiagnosticGetter(DiagnosticIncrementalAnalyzer owner, Solution solution, ProjectId projectId, DocumentId documentId) :
     base(owner, solution, projectId, documentId, id: null)
 {
 }