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

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: Updated cf. comments. 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..85d7579254bfdbc65626ec294b95baad64e10c9f 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,12 @@ 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 != null ? constantCache.getText() : ''}, "
+ "New constant: ${value != null ? value.getText() : ''}."));
constantCache = value;
}
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/inferrer/inferrer_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698