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 64089c0681d03d461483dff61c449a7f16645320..043c5cd56cefcd7ed06c8f1808209119dad78e3a 100644 |
--- a/pkg/compiler/lib/src/resolution/registry.dart |
+++ b/pkg/compiler/lib/src/resolution/registry.dart |
@@ -54,11 +54,6 @@ 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); |
} |
@@ -583,8 +578,13 @@ class ResolutionRegistry implements Registry { |
world.registerInstantiatedType(type, this); |
} |
- void registerAssert(bool hasMessage) { |
- backend.resolutionCallbacks.onAssert(hasMessage, this); |
+ void registerAssert(Send node) { |
+ mapping.setAssert(node); |
+ backend.resolutionCallbacks.onAssert(node, this); |
+ } |
+ |
+ bool isAssert(Send node) { |
+ return mapping.isAssert(node); |
} |
void registerSendStructure(Send node, SendStructure sendStructure) { |