25 references to DocumentId
Microsoft.CodeAnalysis.EditorFeatures (3)
EditAndContinue\EditAndContinueLanguageService.cs (1)
357
await solution.GetDocumentAsync(diagnostic.
DocumentId
, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false) == null)
InlineDiagnostics\InlineDiagnosticsTaggerProvider.cs (2)
59
if (diagnostic.
DocumentId
is null)
64
var project = workspace.CurrentSolution.GetProject(diagnostic.
DocumentId
.ProjectId);
Microsoft.CodeAnalysis.Features (6)
CodeFixes\Service\CodeFixService.FixAllDiagnosticProvider.cs (3)
49
Contract.ThrowIfFalse(diagnostics.All(d => d.
DocumentId
!= null));
62
Contract.ThrowIfFalse(diagnostics.All(d => d.
DocumentId
!= null));
81
Contract.ThrowIfFalse(diagnostics.All(d => d.
DocumentId
== null));
Diagnostics\DiagnosticsUpdatedArgs.cs (1)
34
Debug.Assert(diagnostics.All(d => d.ProjectId == projectId && d.
DocumentId
== documentId));
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (1)
263
return diagnostic.
DocumentId
== document.Id &&
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
141
d => d.
DocumentId
is null || span.Value.IntersectsWith(d.DataLocation.UnmappedFileSpan.GetClampedTextSpan(sourceText)));
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Features\EditAndContinue\EditAndContinueDiagnosticSource_OpenDocument.cs (1)
34
var applyDiagnostics = sessionStateTracker.ApplyChangesDiagnostics.WhereAsArray(static (data, id) => data.
DocumentId
== id, designTimeDocument.Id);
Features\EditAndContinue\EditAndContinueDiagnosticSource_Workspace.cs (3)
48
where data.
DocumentId
!= null
49
group data by data.
DocumentId
into documentData
65
where data.
DocumentId
== null
Handler\Diagnostics\DiagnosticSources\AbstractWorkspaceDocumentDiagnosticSource.cs (3)
51
return projectDiagnostics.WhereAsArray(d => d.
DocumentId
== Document.Id);
80
return allDiagnostics.Where(d => !d.IsSuppressed && d.
DocumentId
!= null).ToLookup(d => d.
DocumentId
!);
Microsoft.CodeAnalysis.Workspaces (3)
Diagnostics\DiagnosticData.cs (3)
136
DocumentId
== other.
DocumentId
&&
149
Hash.Combine(
DocumentId
,
Microsoft.VisualStudio.LanguageServices (6)
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (6)
453
RoslynDebug.AssertNotNull(diagnosticData.
DocumentId
);
455
if (!builder.TryGetValue(diagnosticData.
DocumentId
, out var diagnosticsPerDocument))
458
builder[diagnosticData.
DocumentId
] = diagnosticsPerDocument;
491
foreach (var kvp in latestProjectDiagnostics.Where(d => d.
DocumentId
!= null).GroupBy(d => d.
DocumentId
!))
538
static bool IsDocumentDiagnostic(DiagnosticData d) => d.
DocumentId
!= null;