Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: pkg/analysis_server/tool/spec/api.dart

Issue 1852473002: Fix generated server code to be strong mode compliant (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698