11 references to PrimaryDiagnostic
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Diagnostics\Suppression\SuppressionTests.cs (2)
494var cs0219Fixes = allFixes.Where(fix => fix.PrimaryDiagnostic.Id == "CS0219").ToArray(); 504var cs0168Fixes = allFixes.Where(fix => fix.PrimaryDiagnostic.Id == "CS0168");
Microsoft.CodeAnalysis.EditorFeatures (1)
Suggestions\SuggestedActions\CodeFixSuggestedAction.cs (1)
48=> CodeFix.PrimaryDiagnostic.GetTelemetryDiagnosticID();
Microsoft.CodeAnalysis.Features (2)
Copilot\ICopilotChangeAnalysisService.cs (2)
367IsVisibleDiagnostic(codeFix.PrimaryDiagnostic.IsSuppressed, codeFix.PrimaryDiagnostic.Severity) &&
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
162applicableToSpan: fix.PrimaryDiagnostic.Location.SourceSpan);
Microsoft.CodeAnalysis.Workspaces (5)
CodeFixes\CodeFix.cs (5)
27/// light bulb menu. We also group all fixes with the same <see cref="PrimaryDiagnostic"/> together (into a single 33/// cref="PrimaryDiagnostic"/>. 35/// Implementation-wise the <see cref="PrimaryDiagnostic"/> is always the first diagnostic that the <see 39/// some other heuristic to determine the <see cref="PrimaryDiagnostic"/>. 60var diagnostic = PrimaryDiagnostic;