Skip to content

SyntaxTreeTests: use short ranges - #14739

Merged
psfinaki merged 3 commits into
dotnet:mainfrom
auduchinok:ast-test-shortRanges
Feb 15, 2023
Merged

SyntaxTreeTests: use short ranges#14739
psfinaki merged 3 commits into
dotnet:mainfrom
auduchinok:ast-test-shortRanges

Conversation

@auduchinok

Copy link
Copy Markdown
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 ownerFebruary 13, 2023 11:06
@auduchinok

Copy link
Copy Markdown
MemberAuthor

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

@auduchinok

Copy link
Copy Markdown
MemberAuthor

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

@vzarytovskii

Copy link
Copy Markdown
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
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@auduchinok

Copy link
Copy Markdown
MemberAuthor

It's ready.

Comment threadsrc/Compiler/Utilities/range.fs Outdated
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants

@auduchinok@vzarytovskii@0101@T-Gro@psfinaki