Rename NumericLiteralTypeAnnotation to NumberLiteralTypeAnnotation (#332)

This commit is contained in:
Charles Pick 2017-02-12 12:14:35 +00:00 committed by Daniel Tschinder
parent 56928dca66
commit cd3f14921e
18 changed files with 26 additions and 26 deletions

View File

@ -687,7 +687,7 @@ pp.flowParsePrimaryType = function () {
this.addExtra(node, "rawValue", node.value);
this.addExtra(node, "raw", this.input.slice(this.state.start, this.state.end));
this.next();
return this.finishNode(node, "NumericLiteralTypeAnnotation");
return this.finishNode(node, "NumberLiteralTypeAnnotation");
}
case tt.num:
@ -695,7 +695,7 @@ pp.flowParsePrimaryType = function () {
this.addExtra(node, "rawValue", node.value);
this.addExtra(node, "raw", this.input.slice(this.state.start, this.state.end));
this.next();
return this.finishNode(node, "NumericLiteralTypeAnnotation");
return this.finishNode(node, "NumberLiteralTypeAnnotation");
case tt._null:
node.value = this.match(tt._null);

View File

@ -164,7 +164,7 @@
],
"rest": null,
"returnType": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 24,
"end": 27,
"loc": {

View File

@ -168,7 +168,7 @@
],
"rest": null,
"returnType": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 28,
"end": 31,
"loc": {

View File

@ -158,7 +158,7 @@
],
"rest": null,
"returnType": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 26,
"end": 29,
"loc": {

View File

@ -118,7 +118,7 @@
},
"types": [
{
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 15,
"end": 16,
"loc": {
@ -138,7 +138,7 @@
}
},
{
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 19,
"end": 20,
"loc": {

View File

@ -87,7 +87,7 @@
}
},
"typeAnnotation": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 7,
"end": 16,
"loc": {

View File

@ -87,7 +87,7 @@
}
},
"typeAnnotation": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 7,
"end": 12,
"loc": {

View File

@ -87,7 +87,7 @@
}
},
"typeAnnotation": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 7,
"end": 10,
"loc": {

View File

@ -87,7 +87,7 @@
}
},
"typeAnnotation": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 7,
"end": 16,
"loc": {

View File

@ -87,7 +87,7 @@
}
},
"typeAnnotation": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 7,
"end": 13,
"loc": {

View File

@ -87,7 +87,7 @@
}
},
"typeAnnotation": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 7,
"end": 13,
"loc": {

View File

@ -87,7 +87,7 @@
}
},
"typeAnnotation": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 7,
"end": 12,
"loc": {

View File

@ -87,7 +87,7 @@
}
},
"typeAnnotation": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 7,
"end": 12,
"loc": {

View File

@ -87,7 +87,7 @@
}
},
"typeAnnotation": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 7,
"end": 11,
"loc": {

View File

@ -103,7 +103,7 @@
},
"types": [
{
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 10,
"end": 11,
"loc": {
@ -123,7 +123,7 @@
}
},
{
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 15,
"end": 16,
"loc": {

View File

@ -109,7 +109,7 @@
},
"types": [
{
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 16,
"end": 17,
"loc": {
@ -129,7 +129,7 @@
}
},
{
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 20,
"end": 21,
"loc": {
@ -198,7 +198,7 @@
},
"types": [
{
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 28,
"end": 29,
"loc": {
@ -218,7 +218,7 @@
}
},
{
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 32,
"end": 33,
"loc": {

View File

@ -637,7 +637,7 @@
},
"typeParameters": null,
"right": {
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 215,
"end": 216,
"loc": {

View File

@ -76,7 +76,7 @@
},
"types": [
{
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 45,
"end": 47,
"loc": {
@ -96,7 +96,7 @@
}
},
{
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 52,
"end": 53,
"loc": {
@ -116,7 +116,7 @@
}
},
{
"type": "NumericLiteralTypeAnnotation",
"type": "NumberLiteralTypeAnnotation",
"start": 58,
"end": 59,
"loc": {