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

Unified Diff: lib/src/compiler/reify_coercions.dart

Issue 2016483002: Enable strong mode in DDC, fix all warnings/errors (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « lib/src/compiler/nullable_type_inference.dart ('k') | lib/src/compiler/side_effect_analysis.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler/reify_coercions.dart
diff --git a/lib/src/compiler/reify_coercions.dart b/lib/src/compiler/reify_coercions.dart
index 67fbefee912717348f50cb4aee1ae1684b1043ec..c2d4f347fee2db9523357c7906b255c2e77ba433 100644
--- a/lib/src/compiler/reify_coercions.dart
+++ b/lib/src/compiler/reify_coercions.dart
@@ -116,7 +116,7 @@ class CoercionReifier extends analyzer.GeneralizingAstVisitor<Object> {
}
/*=T*/ _clone/*<T extends AstNode>*/(/*=T*/ node) {
- var copy = node.accept(cloner);
+ var copy = node.accept(cloner) as dynamic/*=T*/;
ResolutionCopier.copyResolutionData(node, copy);
return copy;
}
@@ -131,14 +131,14 @@ class _TreeCloner extends analyzer.AstCloner {
}
@override
- AstNode cloneNode(AstNode node) {
+ /*=E*/ cloneNode/*<E extends AstNode>*/(/*=E*/ node) {
var clone = super.cloneNode(node);
_cloneProperties(clone, node);
return clone;
}
@override
- List cloneNodeList(List list) {
+ List/*<E>*/ cloneNodeList/*<E extends AstNode>*/(NodeList/*<E>*/ list) {
var clone = super.cloneNodeList(list);
for (int i = 0, len = list.length; i < len; i++) {
_cloneProperties(clone[i], list[i]);
« no previous file with comments | « lib/src/compiler/nullable_type_inference.dart ('k') | lib/src/compiler/side_effect_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698