Remove a few node types (#1075)

* Remove NumericLiteralTypeAnnotation

* Remove ExistentialTypeParam
This commit is contained in:
Brian Ng authored and Christopher Chedeau committed 2017-03-22 09:51:36 -07:00
1 parent 42910424a1
commit d8a64dec6c
1 file changed
+2 -4
+2 -4
View File
@@ -132,10 +132,10 @@ function genericPrintNoParens(path, options, print) {
return n;
}
// TODO: For some reason NumericLiteralTypeAnnotation is not
// printable so this throws, but I think that's a bug in ast-types.
// TODO: Investigate types that return not printable.
// This assert isn't very useful though.
// namedTypes.Printable.assert(n);
var parts = [];
switch (n.type) {
case "File":
@@ -1496,7 +1496,6 @@ function genericPrintNoParens(path, options, print) {
])
);
case "ExistentialTypeParam":
case "ExistsTypeAnnotation":
return "*";
case "EmptyTypeAnnotation":
@@ -1509,7 +1508,6 @@ function genericPrintNoParens(path, options, print) {
return concat([path.call(print, "elementType"), "[]"]);
case "BooleanTypeAnnotation":
return "boolean";
case "NumericLiteralTypeAnnotation":
case "BooleanLiteralTypeAnnotation":
return "" + n.value;
case "DeclareClass":