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, "rawValue", node.value);
|
||||||
this.addExtra(node, "raw", this.input.slice(this.state.start, this.state.end));
|
this.addExtra(node, "raw", this.input.slice(this.state.start, this.state.end));
|
||||||
this.next();
|
this.next();
|
||||||
return this.finishNode(node, "NumericLiteralTypeAnnotation");
|
return this.finishNode(node, "NumberLiteralTypeAnnotation");
|
||||||
}
|
}
|
||||||
|
|
||||||
case tt.num:
|
case tt.num:
|
||||||
@ -695,7 +695,7 @@ pp.flowParsePrimaryType = function () {
|
|||||||
this.addExtra(node, "rawValue", node.value);
|
this.addExtra(node, "rawValue", node.value);
|
||||||
this.addExtra(node, "raw", this.input.slice(this.state.start, this.state.end));
|
this.addExtra(node, "raw", this.input.slice(this.state.start, this.state.end));
|
||||||
this.next();
|
this.next();
|
||||||
return this.finishNode(node, "NumericLiteralTypeAnnotation");
|
return this.finishNode(node, "NumberLiteralTypeAnnotation");
|
||||||
|
|
||||||
case tt._null:
|
case tt._null:
|
||||||
node.value = this.match(tt._null);
|
node.value = this.match(tt._null);
|
||||||
|
|||||||
@ -164,7 +164,7 @@
|
|||||||
],
|
],
|
||||||
"rest": null,
|
"rest": null,
|
||||||
"returnType": {
|
"returnType": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 24,
|
"start": 24,
|
||||||
"end": 27,
|
"end": 27,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -168,7 +168,7 @@
|
|||||||
],
|
],
|
||||||
"rest": null,
|
"rest": null,
|
||||||
"returnType": {
|
"returnType": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 28,
|
"start": 28,
|
||||||
"end": 31,
|
"end": 31,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -158,7 +158,7 @@
|
|||||||
],
|
],
|
||||||
"rest": null,
|
"rest": null,
|
||||||
"returnType": {
|
"returnType": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 26,
|
"start": 26,
|
||||||
"end": 29,
|
"end": 29,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -118,7 +118,7 @@
|
|||||||
},
|
},
|
||||||
"types": [
|
"types": [
|
||||||
{
|
{
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 15,
|
"start": 15,
|
||||||
"end": 16,
|
"end": 16,
|
||||||
"loc": {
|
"loc": {
|
||||||
@ -138,7 +138,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 19,
|
"start": 19,
|
||||||
"end": 20,
|
"end": 20,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typeAnnotation": {
|
"typeAnnotation": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 7,
|
"start": 7,
|
||||||
"end": 16,
|
"end": 16,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typeAnnotation": {
|
"typeAnnotation": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 7,
|
"start": 7,
|
||||||
"end": 12,
|
"end": 12,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typeAnnotation": {
|
"typeAnnotation": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 7,
|
"start": 7,
|
||||||
"end": 10,
|
"end": 10,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typeAnnotation": {
|
"typeAnnotation": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 7,
|
"start": 7,
|
||||||
"end": 16,
|
"end": 16,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typeAnnotation": {
|
"typeAnnotation": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 7,
|
"start": 7,
|
||||||
"end": 13,
|
"end": 13,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typeAnnotation": {
|
"typeAnnotation": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 7,
|
"start": 7,
|
||||||
"end": 13,
|
"end": 13,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typeAnnotation": {
|
"typeAnnotation": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 7,
|
"start": 7,
|
||||||
"end": 12,
|
"end": 12,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typeAnnotation": {
|
"typeAnnotation": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 7,
|
"start": 7,
|
||||||
"end": 12,
|
"end": 12,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typeAnnotation": {
|
"typeAnnotation": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 7,
|
"start": 7,
|
||||||
"end": 11,
|
"end": 11,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -103,7 +103,7 @@
|
|||||||
},
|
},
|
||||||
"types": [
|
"types": [
|
||||||
{
|
{
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 10,
|
"start": 10,
|
||||||
"end": 11,
|
"end": 11,
|
||||||
"loc": {
|
"loc": {
|
||||||
@ -123,7 +123,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 15,
|
"start": 15,
|
||||||
"end": 16,
|
"end": 16,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -109,7 +109,7 @@
|
|||||||
},
|
},
|
||||||
"types": [
|
"types": [
|
||||||
{
|
{
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 16,
|
"start": 16,
|
||||||
"end": 17,
|
"end": 17,
|
||||||
"loc": {
|
"loc": {
|
||||||
@ -129,7 +129,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 20,
|
"start": 20,
|
||||||
"end": 21,
|
"end": 21,
|
||||||
"loc": {
|
"loc": {
|
||||||
@ -198,7 +198,7 @@
|
|||||||
},
|
},
|
||||||
"types": [
|
"types": [
|
||||||
{
|
{
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 28,
|
"start": 28,
|
||||||
"end": 29,
|
"end": 29,
|
||||||
"loc": {
|
"loc": {
|
||||||
@ -218,7 +218,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 32,
|
"start": 32,
|
||||||
"end": 33,
|
"end": 33,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -637,7 +637,7 @@
|
|||||||
},
|
},
|
||||||
"typeParameters": null,
|
"typeParameters": null,
|
||||||
"right": {
|
"right": {
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 215,
|
"start": 215,
|
||||||
"end": 216,
|
"end": 216,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
@ -76,7 +76,7 @@
|
|||||||
},
|
},
|
||||||
"types": [
|
"types": [
|
||||||
{
|
{
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 45,
|
"start": 45,
|
||||||
"end": 47,
|
"end": 47,
|
||||||
"loc": {
|
"loc": {
|
||||||
@ -96,7 +96,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 52,
|
"start": 52,
|
||||||
"end": 53,
|
"end": 53,
|
||||||
"loc": {
|
"loc": {
|
||||||
@ -116,7 +116,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "NumericLiteralTypeAnnotation",
|
"type": "NumberLiteralTypeAnnotation",
|
||||||
"start": 58,
|
"start": 58,
|
||||||
"end": 59,
|
"end": 59,
|
||||||
"loc": {
|
"loc": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user