update flow literal annotations to have a rawValue
This commit is contained in:
parent
73f0f26ae2
commit
30be1317e6
@ -1,5 +1,5 @@
|
||||
var a: 123;
|
||||
var a: 123.0;
|
||||
var a: 0x7B;
|
||||
var a: 123;
|
||||
var a: 123;
|
||||
var a: 0b1111011;
|
||||
var a: 0o173;
|
||||
|
||||
@ -488,13 +488,13 @@ pp.flowParsePrimaryType = function () {
|
||||
return this.finishNode(node, "FunctionTypeAnnotation");
|
||||
|
||||
case tt.string:
|
||||
node.value = this.value;
|
||||
node.rawValue = node.value = this.value;
|
||||
node.raw = this.input.slice(this.start, this.end);
|
||||
this.next();
|
||||
return this.finishNode(node, "StringLiteralTypeAnnotation");
|
||||
|
||||
case tt.num:
|
||||
node.value = this.value;
|
||||
node.rawValue = node.value = this.value;
|
||||
node.raw = this.input.slice(this.start, this.end);
|
||||
this.next();
|
||||
return this.finishNode(node, "NumberLiteralTypeAnnotation");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user