1 write to SemanticDiagnostics
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalysisResult.cs (1)
32SemanticDiagnostics = localSemanticDiagnostics;
24 references to SemanticDiagnostics
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\AnalysisResult.cs (2)
98if (SyntaxDiagnostics.Count > 0 || SemanticDiagnostics.Count > 0 || AdditionalFileDiagnostics.Count > 0 || CompilationDiagnostics.Count > 0) 102AddLocalDiagnostics(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 (16)
Diagnostics\DiagnosticAnalyzerTests.cs (8)
3273Assert.Empty(analysisResult.SemanticDiagnostics); 3319Assert.Empty(analysisResult.SemanticDiagnostics); 3711var diagnosticsMap = syntax ? analysisResult.SyntaxDiagnostics : analysisResult.SemanticDiagnostics; 3765var diagnostics1 = analysisResult.SemanticDiagnostics[tree][analyzer1]; 3769var diagnostics2 = analysisResult.SemanticDiagnostics[tree][analyzer2]; 3780diagnostics1 = analysisResult.SemanticDiagnostics[tree][analyzer1]; 3785diagnostics2 = analysisResult.SemanticDiagnostics[tree][analyzer2]; 3821var diagnostics1 = analysisResult.SemanticDiagnostics[tree][analyzer];
Diagnostics\GetDiagnosticsTests.cs (8)
966var semanticDiagnostics = result.SemanticDiagnostics[syntaxTree][analyzer]; 1191var diagnostics = result.SemanticDiagnostics[syntaxTree][compilerAnalyzer]; 1199diagnostics = result.SemanticDiagnostics[syntaxTree][compilerAnalyzer]; 1208var diagnosticsByAnalyzerMap = result.SemanticDiagnostics[syntaxTree]; 1271Assert.Empty(result.SemanticDiagnostics); 1279var localSemanticDiagnostics_1 = result.SemanticDiagnostics[tree1][analyzer]; 1280var localSemanticDiagnostics_2 = result.SemanticDiagnostics[tree2][analyzer]; 1826var localSemanticDiagnostics = result.SemanticDiagnostics[tree][analyzer];
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
473if (analysisResult.SemanticDiagnostics.TryGetValue(semanticModel.SyntaxTree, out diagnostics))
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\Extensions.cs (2)
177if (analysisResult.SemanticDiagnostics.TryGetValue(treeToAnalyze!, out diagnosticsByAnalyzerMap)) 197foreach (var (tree, diagnosticsByAnalyzerMap) in analysisResult.SemanticDiagnostics)