1 write to SemanticDiagnostics
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalysisResult.cs (1)
31SemanticDiagnostics = localSemanticDiagnostics;
19 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)
529/// 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"/>. 543/// 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)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
471if (analysisResult.SemanticDiagnostics.TryGetValue(semanticModel.SyntaxTree, out diagnostics))
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (10)
Diagnostics\DiagnosticAnalyzerTests.cs (6)
3618var diagnosticsMap = syntax ? analysisResult.SyntaxDiagnostics : analysisResult.SemanticDiagnostics; 3672var diagnostics1 = analysisResult.SemanticDiagnostics[tree][analyzer1]; 3676var diagnostics2 = analysisResult.SemanticDiagnostics[tree][analyzer2]; 3687diagnostics1 = analysisResult.SemanticDiagnostics[tree][analyzer1]; 3692diagnostics2 = analysisResult.SemanticDiagnostics[tree][analyzer2]; 3728var diagnostics1 = analysisResult.SemanticDiagnostics[tree][analyzer];
Diagnostics\GetDiagnosticsTests.cs (4)
780var semanticDiagnostics = result.SemanticDiagnostics[syntaxTree][analyzer]; 1005var diagnostics = result.SemanticDiagnostics[syntaxTree][compilerAnalyzer]; 1013diagnostics = result.SemanticDiagnostics[syntaxTree][compilerAnalyzer]; 1022var diagnosticsByAnalyzerMap = result.SemanticDiagnostics[syntaxTree];
Microsoft.CodeAnalysis.Features (1)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
471if (analysisResult.SemanticDiagnostics.TryGetValue(semanticModel.SyntaxTree, out diagnostics))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Diagnostics\GetDiagnosticsTests.vb (1)
527Dim semanticDiagnostics = result.SemanticDiagnostics(syntaxTree)(analyzer)
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\Extensions.cs (2)
152if (analysisResult.SemanticDiagnostics.TryGetValue(treeToAnalyze!, out diagnosticsByAnalyzerMap)) 172foreach (var (tree, diagnosticsByAnalyzerMap) in analysisResult.SemanticDiagnostics)