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

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

Issue 1969063002: copy TypeName.type when we clone the AST (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
Index: lib/src/compiler/reify_coercions.dart
diff --git a/lib/src/compiler/reify_coercions.dart b/lib/src/compiler/reify_coercions.dart
index 5d91aefdb57081dcabb07d0a2483c7d6437c2329..67fbefee912717348f50cb4aee1ae1684b1043ec 100644
--- a/lib/src/compiler/reify_coercions.dart
+++ b/lib/src/compiler/reify_coercions.dart
@@ -163,4 +163,13 @@ class _TreeCloner extends analyzer.AstCloner {
(node as FunctionBodyImpl).localVariableInfo;
return clone;
}
+
+ // TODO(jmesserly): workaround for
+ // https://github.com/dart-lang/sdk/issues/26368
+ @override
+ TypeName visitTypeName(TypeName node) {
+ var clone = super.visitTypeName(node);
+ clone.type = node.type;
+ return clone;
+ }
}
« lib/src/compiler/code_generator.dart ('K') | « lib/src/compiler/code_generator.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698