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

[7.0] Rename flow AST Type NumericLiteralTypeAnnotation to NumberLiteralTypeAnnotation #329

Closed
danez opened this issue Jan 27, 2017 · 2 comments

Comments

@danez
Copy link
Member

danez commented Jan 27, 2017

Flow and babylon6 use a different node type for the following typeAnnotation:

var a : 1 = 1;

babylon uses NumericLiteralTypeAnnotation, whereas flow uses NumberLiteralTypeAnnotation

We should change babylon and rename the node to use the same name as flow.

@danez
Copy link
Member Author

danez commented Jan 27, 2017

We also need to do this change in babel itself. See babel/babel#5199 as a reference.

danharper added a commit to danharper/ast-types that referenced this issue Feb 1, 2017
Flow's parser calls it NumberLiteralTypeAnnotation, and Babel will
switch to that naming convention in v7

babel/babylon#329
@hzoo
Copy link
Member

hzoo commented Feb 22, 2017

Done in babel/babel#5229

@hzoo hzoo closed this as completed Feb 22, 2017
@hzoo hzoo added this to the 7.0.0 milestone Feb 22, 2017
danharper added a commit to danharper/ast-types that referenced this issue Mar 9, 2017
Flow's parser calls it NumberLiteralTypeAnnotation, and Babel will
switch to that naming convention in v7

babel/babylon#329
benjamn pushed a commit to benjamn/ast-types that referenced this issue Mar 12, 2017
Flow's parser calls it NumberLiteralTypeAnnotation, and Babel will
switch to that naming convention in v7

babel/babylon#329
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants