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

Unified Diff: lib/compiler/implementation/dart_backend/placeholder_collector.dart

Issue 11086004: Remove some warnings and dead code in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « no previous file | lib/compiler/implementation/js_backend/constant_system_javascript.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/placeholder_collector.dart
diff --git a/lib/compiler/implementation/dart_backend/placeholder_collector.dart b/lib/compiler/implementation/dart_backend/placeholder_collector.dart
index f3753032538b3561a5ae934db9533736fa0ae914..d6bbd20682073f6808ac2c9830fa579ad3ce3603 100644
--- a/lib/compiler/implementation/dart_backend/placeholder_collector.dart
+++ b/lib/compiler/implementation/dart_backend/placeholder_collector.dart
@@ -475,9 +475,10 @@ class PlaceholderCollector extends Visitor {
} else {
if (hasPrefix) {
assert(node.typeName is Send);
- assert(node.typeName.receiver is Identifier);
- assert(node.typeName.selector is Identifier);
- makeNullPlaceholder(node.typeName.receiver);
+ Send typeName = node.typeName;
+ assert(typeName.receiver is Identifier);
+ assert(typeName.selector is Identifier);
+ makeNullPlaceholder(typeName.receiver);
}
if (typeElement !== dynamicTypeElement) {
makeTypePlaceholder(target, type);
« no previous file with comments | « no previous file | lib/compiler/implementation/js_backend/constant_system_javascript.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698