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

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 1305413004: Add source annotations for breakpoints. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code review 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 unified diff | Download patch
« no previous file with comments | « runtime/observatory/lib/src/elements/script_inset.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 part of service; 5 part of service;
6 6
7 /// Helper function for canceling a Future<StreamSubscription>. 7 /// Helper function for canceling a Future<StreamSubscription>.
8 Future cancelFutureSubscription( 8 Future cancelFutureSubscription(
9 Future<StreamSubscription> subscriptionFuture) async { 9 Future<StreamSubscription> subscriptionFuture) async {
10 if (subscriptionFuture != null) { 10 if (subscriptionFuture != null) {
(...skipping 2706 matching lines...) Expand 10 before | Expand all | Expand 10 after
2717 String source = getLine(line).text; 2717 String source = getLine(line).text;
2718 2718
2719 var pos = column; 2719 var pos = column;
2720 if (pos >= source.length) { 2720 if (pos >= source.length) {
2721 return null; 2721 return null;
2722 } 2722 }
2723 2723
2724 var c = source.codeUnitAt(pos); 2724 var c = source.codeUnitAt(pos);
2725 if (c == 123) return 1; // { - Map literal 2725 if (c == 123) return 1; // { - Map literal
2726 2726
2727 if (c == 91) return 1; // [ - List literal, index, index assignment 2727 if (c == 91) return 1; // [ - List literal, index, index assignment
2728
2729 if (c == 40) return 1; // ( - Closure call
2728 2730
2729 if (_isOperatorChar(c)) { 2731 if (_isOperatorChar(c)) {
2730 while (++pos < source.length && 2732 while (++pos < source.length &&
2731 _isOperatorChar(source.codeUnitAt(pos))); 2733 _isOperatorChar(source.codeUnitAt(pos)));
2732 return pos - column; 2734 return pos - column;
2733 } 2735 }
2734 2736
2735 if (_isInitialIdentifierChar(c)) { 2737 if (_isInitialIdentifierChar(c)) {
2736 while (++pos < source.length && 2738 while (++pos < source.length &&
2737 _isIdentifierChar(source.codeUnitAt(pos))); 2739 _isIdentifierChar(source.codeUnitAt(pos)));
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
3818 var v = list[i]; 3820 var v = list[i];
3819 if ((v is ObservableMap) && _isServiceMap(v)) { 3821 if ((v is ObservableMap) && _isServiceMap(v)) {
3820 list[i] = owner.getFromMap(v); 3822 list[i] = owner.getFromMap(v);
3821 } else if (v is ObservableList) { 3823 } else if (v is ObservableList) {
3822 _upgradeObservableList(v, owner); 3824 _upgradeObservableList(v, owner);
3823 } else if (v is ObservableMap) { 3825 } else if (v is ObservableMap) {
3824 _upgradeObservableMap(v, owner); 3826 _upgradeObservableMap(v, owner);
3825 } 3827 }
3826 } 3828 }
3827 } 3829 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/script_inset.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698