Index: pkg/analysis_server/tool/spec/api.dart |
diff --git a/pkg/analysis_server/tool/spec/api.dart b/pkg/analysis_server/tool/spec/api.dart |
index b5443aabfdcd9f532987523f701981e2cbb654dd..d54255150e9a9cf7fb0c6decca3ca2a89d58bfba 100644 |
--- a/pkg/analysis_server/tool/spec/api.dart |
+++ b/pkg/analysis_server/tool/spec/api.dart |
@@ -52,7 +52,7 @@ abstract class ApiVisitor<T> { |
/** |
* Dispatch the given [type] to the visitor. |
*/ |
- T visitTypeDecl(TypeDecl type) => type.accept(this); |
+ T visitTypeDecl(TypeDecl type) => type.accept(this) as T; |
T visitTypeEnum(TypeEnum typeEnum); |
T visitTypeList(TypeList typeList); |
T visitTypeMap(TypeMap typeMap); |