Observatory strong mode fixes: Fix callback parameter types using implicit casts.
Change-Id: I0ee40677e13f82ca94238b98dcb50188063f9260
Reviewed-on: https://dart-review.googlesource.com/56026
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
diff --git a/runtime/observatory/lib/src/elements/debugger.dart b/runtime/observatory/lib/src/elements/debugger.dart
index 27aab36..6ec0d45 100644
--- a/runtime/observatory/lib/src/elements/debugger.dart
+++ b/runtime/observatory/lib/src/elements/debugger.dart
@@ -1508,7 +1508,8 @@
breakOnException = isolate.exceptionsPauseInfo;
}
- isolate.reload().then((response) {
+ isolate.reload().then((serviceObject) {
+ S.Isolate response = serviceObject;
if (response.isSentinel) {
// The isolate has gone away. The IsolateExit event will
// clear the isolate for the debugger page.
diff --git a/runtime/observatory/lib/src/elements/script_inset.dart b/runtime/observatory/lib/src/elements/script_inset.dart
index cbd8bc2..cdb4087 100644
--- a/runtime/observatory/lib/src/elements/script_inset.dart
+++ b/runtime/observatory/lib/src/elements/script_inset.dart
@@ -355,7 +355,8 @@
}
Future loadDeclarationsOfLibrary(S.Library lib) {
- return lib.load().then((lib) {
+ return lib.load().then((serviceObject) {
+ S.Library lib = serviceObject;
var loads = [];
for (var func in lib.functions) {
loads.add(func.load());
@@ -371,7 +372,8 @@
}
Future loadDeclarationsOfClass(S.Class cls) {
- return cls.load().then((cls) {
+ return cls.load().then((serviceObject) {
+ S.Class cls = serviceObject;
var loads = [];
for (var func in cls.functions) {
loads.add(func.load());