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

don't try to inline too simple dotWithPrefix (no methods) #161

Merged
merged 2 commits into from
Jan 30, 2020

Conversation

dansanduleac
Copy link
Contributor

@dansanduleac dansanduleac commented Jan 30, 2020

Before this PR

#147 didn't ban a degenerate case of split lambda where certain "dotted expressions with prefix" can still end up being split even though they are very simple. See the palantir-expression-lambdas-2.input test.

After this PR

==COMMIT_MSG==
Only allow expressions with prefix to be inlined after a lambda/simple expression if they contain method calls.
==COMMIT_MSG==

Possible downsides?

@changelog-app
Copy link

changelog-app bot commented Jan 30, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Only allow expressions with prefix to be inlined after a lambda/simple expression if they contain method calls.

Check the box to generate changelog(s)

  • Generate changelog entry

@dansanduleac dansanduleac merged commit 60aaf32 into develop Jan 30, 2020
@dansanduleac dansanduleac deleted the ds/more-bad-lambda branch January 30, 2020 17:02
@svc-autorelease
Copy link
Collaborator

Released 0.3.20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants