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

Parens: Keep parens in method calls in dot-lambdas #16395

Merged
merged 7 commits into from
Dec 12, 2023

Conversation

brianrourkeboll
Copy link
Contributor

@brianrourkeboll brianrourkeboll commented Dec 6, 2023

Another followup to #16079.

Description

Keep parentheses in method calls in dot-lambdas, e.g.:

_.ToString("x")

Checklist

  • Test cases added.
  • Release notes entry updated.

@psfinaki Sorry for flooding you with these PRs... These are just quick things I'm coming across by chance. Once these are merged, I'll open one to move the UnnecessaryParentheses module out of ServiceAnalysis.fs to its own file. I hope to have a PR for the tests after that...

@brianrourkeboll brianrourkeboll marked this pull request as ready for review December 6, 2023 16:30
@brianrourkeboll brianrourkeboll requested a review from a team as a code owner December 6, 2023 16:30
@psfinaki
Copy link
Member

psfinaki commented Dec 6, 2023

Noooo on the contrary, thanks for doing this in small chunks, there is nothing better than small PRs :D

@psfinaki psfinaki enabled auto-merge (squash) December 6, 2023 18:04
auto-merge was automatically disabled December 7, 2023 14:24

Head branch was pushed to by a user without write access

@brianrourkeboll
Copy link
Contributor Author

@psfinaki There was a merge conflict in the release notes that dismissed the auto-merge, but otherwise this (and #16372) is still good to go. Unless you're waiting till #16377 is merged?

@psfinaki
Copy link
Member

Nope, that's good to go. Thanks for the ping, let get this in :)

@psfinaki psfinaki merged commit 3c531f2 into dotnet:main Dec 12, 2023
26 checks passed
@brianrourkeboll brianrourkeboll deleted the parens-dot-lambda branch December 12, 2023 13:30
OwnageIsMagic added a commit to OwnageIsMagic/fsharp that referenced this pull request Dec 21, 2023
* upstream/main: (166 commits)
  typo in foldBack summary (dotnet#16453)
  Fix for dotnet#83 (improve constraint error message) (dotnet#16304)
  Name resolution: resolve interfaces in expressions (dotnet#15660)
  AddExplicitReturnType refactoring (dotnet#16077)
  Disabling 2 tests: running for too long, causing CI timeouts
  Improve value restriction error message dotnet#1103 (dotnet#15877)
  Parens: Keep parens for non-identical infix operator pairs with same precedence (dotnet#16372)
  More release note entries (dotnet#16438)
  Using Ordinal is both faster and more correct as our intent is to do … (dotnet#16439)
  merge (dotnet#16427)
  Optimize empty string compares (dotnet#16435)
  Checker: recover on unresolved type in 'inherit' member (dotnet#16429)
  Release notes proposal (dotnet#16377)
  [main] Update dependencies from dotnet/source-build-reference-packages (dotnet#16411)
  Allow usage of [<TailCall>] with older FSharp.Core package versions (dotnet#16373)
  Parser: recover on unfinished 'as' patterns (dotnet#16404)
  Parens: Keep parens in method calls in dot-lambdas (dotnet#16395)
  Checker: check unfinished obj expression inside computations (dotnet#16413)
  Added default dotnet-tools + additional tasks to launch them (dotnet#16409)
  make `remarks` and `returns` visible in quick info (dotnet#16417)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants