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

Unified Diff: pkg/compiler/lib/src/resolution/registry.dart

Issue 1342213003: Add optional message to assert in Dart2js - continued (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add --assert-message flag Created 5 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
Index: pkg/compiler/lib/src/resolution/registry.dart
diff --git a/pkg/compiler/lib/src/resolution/registry.dart b/pkg/compiler/lib/src/resolution/registry.dart
index 043c5cd56cefcd7ed06c8f1808209119dad78e3a..64089c0681d03d461483dff61c449a7f16645320 100644
--- a/pkg/compiler/lib/src/resolution/registry.dart
+++ b/pkg/compiler/lib/src/resolution/registry.dart
@@ -54,6 +54,11 @@ class EagerRegistry implements Registry {
Iterable<Element> get otherDependencies => mapping.otherDependencies;
@override
+ void registerAssert(bool hasMessage) {
+ // TODO(johnniwinther): Do something here?
+ }
+
+ @override
void registerDependency(Element element) {
mapping.registerDependency(element);
}
@@ -578,13 +583,8 @@ class ResolutionRegistry implements Registry {
world.registerInstantiatedType(type, this);
}
- void registerAssert(Send node) {
- mapping.setAssert(node);
- backend.resolutionCallbacks.onAssert(node, this);
- }
-
- bool isAssert(Send node) {
- return mapping.isAssert(node);
+ void registerAssert(bool hasMessage) {
+ backend.resolutionCallbacks.onAssert(hasMessage, this);
}
void registerSendStructure(Send node, SendStructure sendStructure) {
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/resolution_result.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698