18 references to DataLocation
Microsoft.CodeAnalysis.Features (10)
CodeFixes\Service\CodeFixService.cs (1)
274
spanToDiagnostics.MultiAdd(diagnostic.
DataLocation
.UnmappedFileSpan.GetClampedTextSpan(text), diagnostic);
Diagnostics\CodeAnalysisDiagnosticAnalyzerService.cs (2)
126
!d.IsSuppressed && d.
DataLocation
.DocumentId == documentId, documentId);
146
!d.IsSuppressed && d.ProjectId == projectId && d.
DataLocation
.DocumentId == null, projectId);
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (1)
270
if (range != null && !range.Value.IntersectsWith(diagnostic.
DataLocation
.UnmappedFileSpan.GetClampedTextSpan(text)))
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
150
return d.DocumentId is null || span.IntersectsWith(d.
DataLocation
.UnmappedFileSpan.GetClampedTextSpan(sourceText));
EditAndContinue\EmitSolutionUpdateResults.cs (2)
65
Debug.Assert(SyntaxError.
DataLocation
!= null);
68
var fileSpan = SyntaxError.
DataLocation
.MappedFileSpan;
EditAndContinue\Utilities\Extensions.cs (1)
166
var fileSpan = data.
DataLocation
.MappedFileSpan;
ExternalAccess\VSTypeScript\Api\VSTypeScriptDiagnosticData.cs (2)
42
return _data.
DataLocation
.UnmappedFileSpan.GetClampedSpan(sourceText);
46
=> _data.
DataLocation
.UnmappedFileSpan.GetClampedSpan(sourceText);
Microsoft.CodeAnalysis.Workspaces (8)
Diagnostics\DiagnosticData.cs (8)
108
WarningLevel, customTags, Properties, ProjectId,
DataLocation
, AdditionalLocations,
111
public DocumentId? DocumentId =>
DataLocation
.DocumentId;
130
DataLocation
.UnmappedFileSpan.StartLinePosition == other.
DataLocation
.UnmappedFileSpan.StartLinePosition &&
143
=> Hash.Combine(
DataLocation
.UnmappedFileSpan.StartLinePosition.GetHashCode(),
154
=> $"{Id} {Severity} {Message} {ProjectId} {
DataLocation
.MappedFileSpan} [original: {
DataLocation
.UnmappedFileSpan}]";
158
var location = await
DataLocation
.ConvertLocationAsync(project, cancellationToken).ConfigureAwait(false);