Index: pkg/compiler/lib/src/tree/prettyprint.dart |
diff --git a/pkg/compiler/lib/src/tree/prettyprint.dart b/pkg/compiler/lib/src/tree/prettyprint.dart |
index 6a9aa96a2baa2d75de201d63c21db9f6bdc08a50..6056a3d76960e6eb968ce46ddc7bd05e5efbdf96 100644 |
--- a/pkg/compiler/lib/src/tree/prettyprint.dart |
+++ b/pkg/compiler/lib/src/tree/prettyprint.dart |
@@ -153,14 +153,6 @@ class PrettyPrinter extends Indentation with Tagging<Node> implements Visitor { |
closeNode(); |
} |
- visitFunctionTypeAnnotation(FunctionTypeAnnotation node) { |
- openNode(node, "FunctionTypeAnnotation"); |
- visitChildNode(node.returnType, "returnType"); |
- visitChildNode(node.typeParameters, "typeParameters"); |
- visitChildNode(node.formals, "formals"); |
- closeNode(); |
- } |
- |
visitIdentifier(Identifier node) { |
openAndCloseNode(node, "Identifier", {"token": node.token}); |
} |
@@ -252,13 +244,6 @@ class PrettyPrinter extends Indentation with Tagging<Node> implements Visitor { |
} |
} |
- visitNominalTypeAnnotation(NominalTypeAnnotation node) { |
- openNode(node, "NominalTypeAnnotation"); |
- visitChildNode(node.typeName, "typeName"); |
- visitChildNode(node.typeArguments, "typeArguments"); |
- closeNode(); |
- } |
- |
visitOperator(Operator node) { |
openAndCloseNode(node, "Operator", {"value": node.token}); |
} |
@@ -360,6 +345,13 @@ class PrettyPrinter extends Indentation with Tagging<Node> implements Visitor { |
visitNodeWithChildren(node, "TryStatement"); |
} |
+ visitTypeAnnotation(TypeAnnotation node) { |
+ openNode(node, "TypeAnnotation"); |
+ visitChildNode(node.typeName, "typeName"); |
+ visitChildNode(node.typeArguments, "typeArguments"); |
+ closeNode(); |
+ } |
+ |
visitTypedef(Typedef node) { |
visitNodeWithChildren(node, "Typedef"); |
} |
@@ -480,10 +472,6 @@ class PrettyPrinter extends Indentation with Tagging<Node> implements Visitor { |
unimplemented('visitNode', node: node); |
} |
- visitTypeAnnotation(TypeAnnotation node) { |
- unimplemented('visitNode', node: node); |
- } |
- |
unimplemented(String message, {Node node}) { |
throw message; |
} |