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

Retain method return types on transform-es2015-classes (closes #4665) #4668

Merged
merged 1 commit into from Oct 4, 2016

Conversation

danharper
Copy link
Member

Q A
Bug fix? yes
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? no
Tests added/pass? yes
Fixed tickets #4665
License MIT
Doc PR reference to the documentation PR, if any

Re-attaches return types when converting ClassMethod to FunctionExpression.

Added tests for loose & spec class transforms, with normal output, flow-comments & flow-strip-types.

@hzoo
Copy link
Member

hzoo commented Oct 4, 2016

Hmm - overlooked obviously. 👍 😄

I wonder how we can prevent this issue from happening in the future? This is because babel.types constructor doesn't take in all fields and types wouldn't be in there. Would be nice if we had a way to lint that the information from the previous node wasn't carried over

@hzoo hzoo added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Oct 4, 2016
@codecov-io
Copy link

codecov-io commented Oct 4, 2016

Current coverage is 88.76% (diff: 100%)

Merging #4668 into master will increase coverage by <.01%

@@             master      #4668   diff @@
==========================================
  Files           195        195          
  Lines         13776      13778     +2   
  Methods        1425       1425          
  Messages          0          0          
  Branches       3174       3174          
==========================================
+ Hits          12228      12230     +2   
  Misses         1548       1548          
  Partials          0          0          

Powered by Codecov. Last update fc54264...d1f93fc

@hzoo hzoo merged commit 7f772e9 into babel:master Oct 4, 2016
panagosg7 pushed a commit to panagosg7/babel that referenced this pull request Jan 17, 2017
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants