1 write to SemanticDiagnostics
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalysisResult.cs (1)
31
SemanticDiagnostics
= localSemanticDiagnostics;
21 references to SemanticDiagnostics
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\AnalysisResult.cs (2)
97
if (SyntaxDiagnostics.Count > 0 ||
SemanticDiagnostics
.Count > 0 || AdditionalFileDiagnostics.Count > 0 || CompilationDiagnostics.Count > 0)
101
AddLocalDiagnostics(
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)
473
if (analysisResult.
SemanticDiagnostics
.TryGetValue(semanticModel.SyntaxTree, out diagnostics))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
Diagnostics\DiagnosticAnalyzerTests.cs (6)
3710
var diagnosticsMap = syntax ? analysisResult.SyntaxDiagnostics : analysisResult.
SemanticDiagnostics
;
3764
var diagnostics1 = analysisResult.
SemanticDiagnostics
[tree][analyzer1];
3768
var diagnostics2 = analysisResult.
SemanticDiagnostics
[tree][analyzer2];
3779
diagnostics1 = analysisResult.
SemanticDiagnostics
[tree][analyzer1];
3784
diagnostics2 = analysisResult.
SemanticDiagnostics
[tree][analyzer2];
3820
var diagnostics1 = analysisResult.
SemanticDiagnostics
[tree][analyzer];
Diagnostics\GetDiagnosticsTests.cs (8)
841
var semanticDiagnostics = result.
SemanticDiagnostics
[syntaxTree][analyzer];
1066
var diagnostics = result.
SemanticDiagnostics
[syntaxTree][compilerAnalyzer];
1074
diagnostics = result.
SemanticDiagnostics
[syntaxTree][compilerAnalyzer];
1083
var diagnosticsByAnalyzerMap = result.
SemanticDiagnostics
[syntaxTree];
1146
Assert.Empty(result.
SemanticDiagnostics
);
1154
var localSemanticDiagnostics_1 = result.
SemanticDiagnostics
[tree1][analyzer];
1155
var localSemanticDiagnostics_2 = result.
SemanticDiagnostics
[tree2][analyzer];
1701
var localSemanticDiagnostics = result.
SemanticDiagnostics
[tree][analyzer];
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\AnalysisResultPair.cs (2)
86
(projectDiagnostics: ProjectAnalysisResult?.
SemanticDiagnostics
, hostDiagnostics: HostAnalysisResult?.
SemanticDiagnostics
));