Merge branch 'master' into development

This commit is contained in:
Sebastian McKenzie
2015-07-21 02:28:00 +01:00
15 changed files with 283 additions and 6 deletions

View File

@@ -493,6 +493,12 @@ pp.flowParsePrimaryType = function () {
this.next();
return this.finishNode(node, "StringLiteralTypeAnnotation");
case tt.num:
node.value = this.value;
node.raw = this.input.slice(this.start, this.end);
this.next();
return this.finishNode(node, "NumberLiteralTypeAnnotation");
default:
if (this.type.keyword === "typeof") {
return this.flowParseTypeofType();