1 write to SemanticDiagnostics
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalysisResult.cs (1)
31SemanticDiagnostics = localSemanticDiagnostics;
21 references to SemanticDiagnostics
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\AnalysisResult.cs (2)
97if (SyntaxDiagnostics.Count > 0 || SemanticDiagnostics.Count > 0 || AdditionalFileDiagnostics.Count > 0 || CompilationDiagnostics.Count > 0) 101AddLocalDiagnostics(SemanticDiagnostics, excludedAnalyzers, builder);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (2)
622/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.SemanticDiagnostics"/> produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="model"/>, optionally scoped to a <paramref name="filterSpan"/>. 636/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.SemanticDiagnostics"/> produced by the given <paramref name="analyzers"/> from analyzing the given <paramref name="model"/>, optionally scoped to a <paramref name="filterSpan"/>.
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
473if (analysisResult.SemanticDiagnostics.TryGetValue(semanticModel.SyntaxTree, out diagnostics))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
Diagnostics\DiagnosticAnalyzerTests.cs (6)
3710var diagnosticsMap = syntax ? analysisResult.SyntaxDiagnostics : analysisResult.SemanticDiagnostics; 3764var diagnostics1 = analysisResult.SemanticDiagnostics[tree][analyzer1]; 3768var diagnostics2 = analysisResult.SemanticDiagnostics[tree][analyzer2]; 3779diagnostics1 = analysisResult.SemanticDiagnostics[tree][analyzer1]; 3784diagnostics2 = analysisResult.SemanticDiagnostics[tree][analyzer2]; 3820var diagnostics1 = analysisResult.SemanticDiagnostics[tree][analyzer];
Diagnostics\GetDiagnosticsTests.cs (8)
841var semanticDiagnostics = result.SemanticDiagnostics[syntaxTree][analyzer]; 1066var diagnostics = result.SemanticDiagnostics[syntaxTree][compilerAnalyzer]; 1074diagnostics = result.SemanticDiagnostics[syntaxTree][compilerAnalyzer]; 1083var diagnosticsByAnalyzerMap = result.SemanticDiagnostics[syntaxTree]; 1146Assert.Empty(result.SemanticDiagnostics); 1154var localSemanticDiagnostics_1 = result.SemanticDiagnostics[tree1][analyzer]; 1155var localSemanticDiagnostics_2 = result.SemanticDiagnostics[tree2][analyzer]; 1701var localSemanticDiagnostics = result.SemanticDiagnostics[tree][analyzer];
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\AnalysisResultPair.cs (2)
86(projectDiagnostics: ProjectAnalysisResult?.SemanticDiagnostics, hostDiagnostics: HostAnalysisResult?.SemanticDiagnostics));