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

SyntaxTreeTests: use short ranges #14739

Merged
merged 3 commits into from
Feb 15, 2023
Merged

Conversation

auduchinok
Copy link
Member

After looking at new parser tests in #13089, I thought the file names in the AST dump only add noise and don't help with anything. Are there any cases where it's really helpful to always have them in Range.ToString()?

This PR removes file names from Range.ToString() (while it's still available in its DebuggerDisplay) as an experiment. The syntax tree dumps are much easier to look at now.

@auduchinok auduchinok requested a review from a team as a code owner February 13, 2023 11:06
@auduchinok
Copy link
Member Author

This would also fix fsprojects/fantomas-tools#498.

@auduchinok
Copy link
Member Author

@vzarytovskii Do you know if the determinism failure could be connected to this change somehow?

@vzarytovskii
Copy link
Member

@vzarytovskii Do you know if the determinism failure could be connected to this change somehow?

No, it's just a nuget-related issue, should just rerun

/azp run

@vzarytovskii
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@auduchinok
Copy link
Member Author

It's ready.

@psfinaki psfinaki merged commit a181965 into dotnet:main Feb 15, 2023
@auduchinok auduchinok deleted the ast-test-shortRanges branch February 15, 2023 10:53
KevinRansom added a commit to KevinRansom/fsharp that referenced this pull request Feb 20, 2023
kant2002 pushed a commit to kant2002/fsharp that referenced this pull request Apr 1, 2023
* SyntaxTreeTests: use short ranges

* Remove ToShortString

* Remove ToShortString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants