Add support for flow's SymbolTypeAnnotation (#11077)

This commit is contained in:
Brian Ng
2020-03-16 17:00:17 -05:00
committed by GitHub
parent 2bce1e5e20
commit 4f394e30d2
14 changed files with 291 additions and 2 deletions

View File

@@ -596,6 +596,10 @@ export function QualifiedTypeIdentifier(node: Object) {
this.print(node.id, node);
}
export function SymbolTypeAnnotation() {
this.word("symbol");
}
function orSeparator() {
this.space();
this.token("|");