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);