4 instantiations of DiagnosticDataLocation
Microsoft.CodeAnalysis.Workspaces (4)
Diagnostics\DiagnosticData.cs (2)
172return new DiagnosticDataLocation(originalLineInfo, document?.Id, mappedLineInfo); 191location: new DiagnosticDataLocation(new FileLinePositionSpan(project?.FilePath ?? solution.FilePath ?? "", span: default)),
Diagnostics\DiagnosticDataLocation.cs (2)
105=> new( 118return new DiagnosticDataLocation(originalFileSpan, documentId, mappedFileSpan, forceMappedPath);
17 references to DiagnosticDataLocation
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticDataTests.cs (1)
211var roundTripLocation = roundTripDiagnosticData.DataLocation;
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineDiagnostics\AbstractDiagnosticsTaggerProvider.cs (1)
68/// Get the <see cref="DiagnosticDataLocation"/> that should have the tag applied to it.
Microsoft.CodeAnalysis.Workspaces (15)
Diagnostics\DiagnosticData.cs (11)
31DiagnosticDataLocation location, 32ImmutableArray<DiagnosticDataLocation> additionalLocations = default, 70public readonly DiagnosticDataLocation DataLocation = location; 73public readonly ImmutableArray<DiagnosticDataLocation> AdditionalLocations = additionalLocations.NullToEmpty(); 99public DiagnosticData WithLocations(DiagnosticDataLocation location, ImmutableArray<DiagnosticDataLocation> additionalLocations) 165private static DiagnosticDataLocation CreateLocation(TextDocument? document, Location location) 224DiagnosticDataLocation location, 225ImmutableArray<DiagnosticDataLocation> additionalLocations, 254private static ImmutableArray<DiagnosticDataLocation> GetAdditionalLocations(TextDocument document, Diagnostic diagnostic) 261using var _ = ArrayBuilder<DiagnosticDataLocation>.GetInstance(diagnostic.AdditionalLocations.Count, out var builder);
Diagnostics\DiagnosticDataLocation.cs (2)
104public DiagnosticDataLocation WithSpan(TextSpan newSourceSpan, SyntaxTree tree) 112public static DiagnosticDataLocation Create(
Diagnostics\Extensions.cs (2)
35public static ValueTask<ImmutableArray<Location>> ConvertLocationsAsync(this IReadOnlyCollection<DiagnosticDataLocation> locations, Project project, CancellationToken cancellationToken) 39this DiagnosticDataLocation dataLocation, Project project, CancellationToken cancellationToken)