Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Allow keywords in object/class property names with Flow type parameters #145

Merged
merged 1 commit into from
Oct 14, 2016

Conversation

danharper
Copy link
Member

For #48

Certain keywords like delete, yield, do set beforeExpr: true. These update exprAllowed in state. Ultimately, it results in the JSX plugin picking up the < token due to exprAllowed.

This fix prevents the JSX plugin from reading tokens in property names, allowing the Flow plugin to pick them up instead.

@codecov-io
Copy link

codecov-io commented Sep 26, 2016

Current coverage is 94.48% (diff: 100%)

Merging #145 into master will increase coverage by 0.01%

@@             master       #145   diff @@
==========================================
  Files            19         19          
  Lines          3111       3118     +7   
  Methods         327        329     +2   
  Messages          0          0          
  Branches        818        818          
==========================================
+ Hits           2939       2946     +7   
  Misses           94         94          
  Partials         78         78          

Powered by Codecov. Last update 4115bcb...5f655e6

@danez danez merged commit f7c1af1 into babel:master Oct 14, 2016
kristofdegrave pushed a commit to kristofdegrave/babylon that referenced this pull request Oct 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants