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

Validate importKind and ensure code generation exists. #5110

Merged
merged 1 commit into from Jan 14, 2017

Conversation

loganfsmyth
Copy link
Member

@loganfsmyth loganfsmyth commented Jan 14, 2017

Q A
Patch: Bug Fix? N
Major: Breaking Change? N
Minor: New Feature? Y
Deprecations?
Spec Compliancy?
Tests Added/Pass?
Fixed Tickets
License MIT
Doc PR
Dependency Changes

Implements two small things that were not included in #5035

@codecov-io
Copy link

codecov-io commented Jan 14, 2017

Current coverage is 89.20% (diff: 100%)

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

@@             master      #5110   diff @@
==========================================
  Files           203        203          
  Lines          9819       9822     +3   
  Methods        1071       1071          
  Messages          0          0          
  Branches       2615       2616     +1   
==========================================
+ Hits           8759       8762     +3   
  Misses         1060       1060          
  Partials          0          0          

Powered by Codecov. Last update 2e67132...80a7578

},
importKind: {
// Handle Flowtype's extension "import {typeof foo} from"
validate: assertOneOf(null, "type", "typeof")
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice if we could do extensions to nodes in corresponding files. So that flow.js could extend ImportSpecifier. But for now there is no other way afaics.

@loganfsmyth loganfsmyth merged commit 3c2e9c0 into babel:master Jan 14, 2017
@loganfsmyth loganfsmyth deleted the flowtype-codegen branch January 14, 2017 18:41
@hzoo hzoo added the PR: New Feature 🚀 A type of pull request used for our changelog categories label Jan 16, 2017
@hzoo
Copy link
Member

hzoo commented Jan 20, 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 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 6, 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