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

Unified Diff: pkg/kernel/lib/text/ast_to_text.dart

Issue 2619193003: Insert implicit downcasts in kernel strong mode. (Closed)
Patch Set: Add missing status line Created 3 years, 11 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/kernel/lib/text/ast_to_text.dart
diff --git a/pkg/kernel/lib/text/ast_to_text.dart b/pkg/kernel/lib/text/ast_to_text.dart
index 18be9de8860b332563538e31d135145a2867ce16..a9449c174f6c43171389e7ae86a0e2c7a4eefd64 100644
--- a/pkg/kernel/lib/text/ast_to_text.dart
+++ b/pkg/kernel/lib/text/ast_to_text.dart
@@ -983,6 +983,12 @@ class Printer extends Visitor<Null> {
visitVariableGet(VariableGet node) {
writeVariableReference(node.variable);
+ if (node.promotedType != null) {
+ writeSymbol('{');
+ writeNode(node.promotedType);
+ writeSymbol('}');
+ state = WORD;
+ }
}
visitVariableSet(VariableSet node) {

Powered by Google App Engine
This is Rietveld 408576698