Add EmptyTypeAnnotation (#171)

I also noticed that there was missing test coverage for builtin types,
so I added a test for that, which includes the newly added type as well
as the other existing types.
This commit is contained in:
Sam Goldman
2016-10-13 16:22:13 -07:00
committed by Henry Zhu
parent c300230a59
commit 44f77bd724
3 changed files with 830 additions and 0 deletions

View File

@@ -499,6 +499,9 @@ pp.flowIdentToTypeAnnotation = function (startPos, startLoc, node, id) {
case "mixed":
return this.finishNode(node, "MixedTypeAnnotation");
case "empty":
return this.finishNode(node, "EmptyTypeAnnotation");
case "number":
return this.finishNode(node, "NumberTypeAnnotation");