Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map the path in InterceptableLocation.GetDisplayPath #76449

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

RikkiGibson
Copy link
Contributor

Closes #76126

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 16, 2024
@RikkiGibson RikkiGibson marked this pull request as ready for review December 16, 2024 21:56
@RikkiGibson RikkiGibson requested a review from a team as a code owner December 16, 2024 21:56
@@ -5229,7 +5229,7 @@ internal InterceptableLocation GetInterceptableLocationInternal(SyntaxNode nameS
var lineNumberOneIndexed = lineSpan.Line + 1;
var characterNumberOneIndexed = lineSpan.Character + 1;

return new InterceptableLocation1(checksum, path, nameSyntax.Position, lineNumberOneIndexed, characterNumberOneIndexed);
return new InterceptableLocation1(checksum, path, Compilation.Options.SourceReferenceResolver, nameSyntax.Position, lineNumberOneIndexed, characterNumberOneIndexed);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit annoying that this is a nullable reference type when we could have used SourceFileResolver.Default. Not sure there is a ton of value in changing it now.

@RikkiGibson RikkiGibson merged commit bb47718 into dotnet:main Dec 16, 2024
24 checks passed
@RikkiGibson RikkiGibson deleted the getdisplaypath-map branch December 16, 2024 22:58
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Feature - Interceptors untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InterceptableLocation.GetDisplayLocation breaks deterministic build
4 participants