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

Unified Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 1238783003: Handle deferred access as pre-step in SemanticSendVisitor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/compiler/lib/src/elements/modelx.dart
diff --git a/pkg/compiler/lib/src/elements/modelx.dart b/pkg/compiler/lib/src/elements/modelx.dart
index 1c5f7821c1dc3fc1e1e7441dd73a1096d68568b2..cda4a8c9162ad6dc71a227b37e59f1a928b2c78a 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -1120,6 +1120,8 @@ class PrefixElementX extends ElementX implements PrefixElement {
void markAsDeferred(Import deferredImport) {
_deferredImport = deferredImport;
}
+
+ String toString() => '$kind($name)';
}
class TypedefElementX extends ElementX
@@ -1240,8 +1242,11 @@ abstract class ConstantVariableMixin implements VariableElement {
originVariable.constant = value;
return null;
}
- assert(invariant(this, constantCache == null || constantCache == value,
- message: "Constant has already been computed for $this."));
+ assert(invariant(
+ this, constantCache == null || constantCache == value,
+ message: "Constant has already been computed for $this. "
+ "Existing constant: ${constantCache.getText()}, "
+ "New constant: ${value != null ? value.getText() : ''}."));
constantCache = value;
}
}

Powered by Google App Engine
This is Rietveld 408576698