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

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

Issue 10914150: Do not rename assert syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | tests/language/language.status » ('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 671477e849423085f2cf5a8cfb9e1d27137d89f5..a46bfb06245d493f4341927605fcde4e6a291c77 100644
--- a/lib/compiler/implementation/dart_backend/placeholder_collector.dart
+++ b/lib/compiler/implementation/dart_backend/placeholder_collector.dart
@@ -31,6 +31,8 @@ class DeclarationTypePlaceholder {
class SendVisitor extends ResolvedVisitor {
final PlaceholderCollector collector;
+ get compiler => collector.compiler;
+
SendVisitor(this.collector, TreeElements elements) : super(elements);
visitOperatorSend(Send node) {}
@@ -84,7 +86,7 @@ class SendVisitor extends ResolvedVisitor {
visitStaticSend(Send node) {
final element = elements[node];
- if (Elements.isUnresolved(element)) {
+ if (Elements.isUnresolved(element) || element === compiler.assertMethod) {
return;
}
if (element.isConstructor() || element.isFactoryConstructor()) {
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698