Index: pkg/compiler/lib/src/kernel/kernel_visitor.dart |
diff --git a/pkg/compiler/lib/src/kernel/kernel_visitor.dart b/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
index 13544295ed919f797916a645838a3cf9185598cd..da5a440ce7b1a026a0c46283b3068ffb29455130 100644 |
--- a/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
+++ b/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
@@ -104,6 +104,7 @@ import '../tree/tree.dart' |
ForIn, |
FunctionDeclaration, |
FunctionExpression, |
+ FunctionTypeAnnotation, |
Identifier, |
If, |
Label, |
@@ -122,6 +123,7 @@ import '../tree/tree.dart' |
NewExpression, |
Node, |
NodeList, |
+ NominalTypeAnnotation, |
Operator, |
ParenthesizedExpression, |
RedirectingFactoryBody, |
@@ -1096,14 +1098,28 @@ class KernelVisitor extends Object |
@override |
visitTypeAnnotation(TypeAnnotation node) { |
- // Shouldn't be called, as the resolver have already resolved types and |
+ // Shouldn't be called, as the resolver has already resolved types and |
// created [DartType] objects. |
return internalError(node, "TypeAnnotation"); |
} |
@override |
+ visitNominalTypeAnnotation(NominalTypeAnnotation node) { |
+ // Shouldn't be called, as the resolver has already resolved types and |
+ // created [DartType] objects. |
+ return internalError(node, "NominalTypeAnnotation"); |
+ } |
+ |
+ @override |
+ visitFunctionTypeAnnotation(FunctionTypeAnnotation node) { |
+ // Shouldn't be called, as the resolver has already resolved types and |
+ // created [DartType] objects. |
+ return internalError(node, "FunctionTypeAnnotation"); |
+ } |
+ |
+ @override |
visitTypeVariable(TypeVariable node) { |
- // Shouldn't be called, as the resolver have already resolved types and |
+ // Shouldn't be called, as the resolver has already resolved types and |
// created [DartType] objects. |
return internalError(node, "TypeVariable"); |
} |