Rename NumericLiteralTypeAnnotation to NumberLiteralTypeAnnotation (#332)
This commit is contained in:
parent
56928dca66
commit
cd3f14921e
@ -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);
|
||||
|
||||
@ -164,7 +164,7 @@
|
||||
],
|
||||
"rest": null,
|
||||
"returnType": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 24,
|
||||
"end": 27,
|
||||
"loc": {
|
||||
|
||||
@ -168,7 +168,7 @@
|
||||
],
|
||||
"rest": null,
|
||||
"returnType": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 28,
|
||||
"end": 31,
|
||||
"loc": {
|
||||
|
||||
@ -158,7 +158,7 @@
|
||||
],
|
||||
"rest": null,
|
||||
"returnType": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 26,
|
||||
"end": 29,
|
||||
"loc": {
|
||||
|
||||
@ -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": {
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
}
|
||||
},
|
||||
"typeAnnotation": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 7,
|
||||
"end": 16,
|
||||
"loc": {
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
}
|
||||
},
|
||||
"typeAnnotation": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 7,
|
||||
"end": 12,
|
||||
"loc": {
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
}
|
||||
},
|
||||
"typeAnnotation": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 7,
|
||||
"end": 10,
|
||||
"loc": {
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
}
|
||||
},
|
||||
"typeAnnotation": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 7,
|
||||
"end": 16,
|
||||
"loc": {
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
}
|
||||
},
|
||||
"typeAnnotation": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 7,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
}
|
||||
},
|
||||
"typeAnnotation": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 7,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
}
|
||||
},
|
||||
"typeAnnotation": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 7,
|
||||
"end": 12,
|
||||
"loc": {
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
}
|
||||
},
|
||||
"typeAnnotation": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 7,
|
||||
"end": 12,
|
||||
"loc": {
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
}
|
||||
},
|
||||
"typeAnnotation": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 7,
|
||||
"end": 11,
|
||||
"loc": {
|
||||
|
||||
@ -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": {
|
||||
|
||||
@ -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": {
|
||||
|
||||
@ -637,7 +637,7 @@
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "NumericLiteralTypeAnnotation",
|
||||
"type": "NumberLiteralTypeAnnotation",
|
||||
"start": 215,
|
||||
"end": 216,
|
||||
"loc": {
|
||||
|
||||
@ -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": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user