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

Unified Diff: lib/src/js_ast/type_printer.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/js_ast/template.dart ('k') | test/codegen_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js_ast/type_printer.dart
diff --git a/lib/src/js_ast/type_printer.dart b/lib/src/js_ast/type_printer.dart
index 5f47711e294adab525c5cd6d5abc9f6d252bf135..db720bafc215c655d3df0a623c22818e3d3d6abe 100644
--- a/lib/src/js_ast/type_printer.dart
+++ b/lib/src/js_ast/type_printer.dart
@@ -148,14 +148,14 @@ class ClosureTypePrinter extends _TypePrinterBase implements NodeVisitor {
@override
visitAccess(PropertyAccess node) {
var selector = node.selector;
- assert(selector is LiteralString);
- if (selector is! LiteralString) {
+ if (selector is LiteralString) {
+ visit(node.receiver);
+ out(".");
+ out(selector.valueWithoutQuotes);
+ } else {
+ assert(false);
out("?");
- return;
}
- visit(node.receiver);
- out(".");
- out(selector.valueWithoutQuotes);
}
@override toString() => _buffer.toString();
« no previous file with comments | « lib/src/js_ast/template.dart ('k') | test/codegen_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698