Remove a few node types (#1075)
* Remove NumericLiteralTypeAnnotation * Remove ExistentialTypeParam
This commit is contained in:
1 parent
42910424a1
commit
d8a64dec6c
1 file changed
+2
-4
+2
-4
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user