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

Side by Side Diff: runtime/observatory/lib/src/elements/debugger.dart

Issue 1687293003: Rewrite asyncStepOver to use await (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library debugger_page_element; 5 library debugger_page_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'dart:math'; 9 import 'dart:math';
10 import 'observatory_element.dart'; 10 import 'observatory_element.dart';
(...skipping 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 console.print('The program is already running'); 1819 console.print('The program is already running');
1820 } 1820 }
1821 } 1821 }
1822 1822
1823 Future asyncNext() async { 1823 Future asyncNext() async {
1824 if (isolatePaused()) { 1824 if (isolatePaused()) {
1825 var event = isolate.pauseEvent; 1825 var event = isolate.pauseEvent;
1826 if (event.asyncContinuation == null) { 1826 if (event.asyncContinuation == null) {
1827 console.print("No async continuation at this location"); 1827 console.print("No async continuation at this location");
1828 } else { 1828 } else {
1829 return isolate.asyncStepOver()[Isolate.kFirstResume]; 1829 List<Future> asyncStepFutures = await isolate.asyncStepOver();
1830 return asyncStepFutures[Isolate.kFirstResume];
1830 } 1831 }
1831 } else { 1832 } else {
1832 console.print('The program is already running'); 1833 console.print('The program is already running');
1833 } 1834 }
1834 } 1835 }
1835 1836
1836 Future syncNext() async { 1837 Future syncNext() async {
1837 if (isolatePaused()) { 1838 if (isolatePaused()) {
1838 var event = isolate.pauseEvent; 1839 var event = isolate.pauseEvent;
1839 if (event.kind == ServiceEvent.kPauseStart) { 1840 if (event.kind == ServiceEvent.kPauseStart) {
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
2653 } 2654 }
2654 }); 2655 });
2655 } 2656 }
2656 2657
2657 void focus() { 2658 void focus() {
2658 $['textBox'].focus(); 2659 $['textBox'].focus();
2659 } 2660 }
2660 2661
2661 DebuggerInputElement.created() : super.created(); 2662 DebuggerInputElement.created() : super.created();
2662 } 2663 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/object_graph.dart ('k') | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698