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

Add support for the new declare module.exports of flow. #3570

Merged
merged 2 commits into from Aug 16, 2016
Merged

Add support for the new declare module.exports of flow. #3570

merged 2 commits into from Aug 16, 2016

Conversation

danez
Copy link
Member

@danez danez commented Jul 10, 2016

This adds the new node DeclareClassModule. I'm not sure about my changes in the generator, see inline comments.

I also did not make an entry in babel-types/retrievers.js as I did not know what to put there as DeclareModuleExports does not have an id. Is this necessary?

(tests will fail as the parser is not updated yet)

relates to babel/babylon#72

this.space();
this.word("module");
this.token(".");
this.word("exports");
Copy link
Member Author

@danez danez Jul 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right way to print module.exports? Do I need to care about spacing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be good.

@danez danez added the WIP label Jul 19, 2016
@codecov-io
Copy link

Current coverage is 88.24% (diff: 100%)

Merging #3570 into master will increase coverage by 0.01%

@@             master      #3570   diff @@
==========================================
  Files           191        191          
  Lines         13579      13597    +18   
  Methods        1422       1426     +4   
  Messages          0          0          
  Branches       3125       3128     +3   
==========================================
+ Hits          11981      11999    +18   
  Misses         1598       1598          
  Partials          0          0          

Powered by Codecov. Last update 043da1a...9a11f96

@danez danez merged commit 308de41 into babel:master Aug 16, 2016
@danez danez deleted the support-flow-declare-module-exports branch August 16, 2016 14:54
@hzoo hzoo added PR: New Feature 🚀 A type of pull request used for our changelog categories and removed WIP labels Aug 23, 2016
@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: New Feature 🚀 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