update flow literal annotations to have a rawValue

This commit is contained in:
Sebastian McKenzie 2015-07-21 02:37:43 +01:00
parent da94ea7fa5
commit 3c5b4f2d89

View File

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