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

Unified 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, 4 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
« no previous file with comments | « runtime/observatory/lib/src/elements/script_inset.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index 6efa7fc8cdbba6dfb7130940a936d018eb3b1161..cf244e4f427e61f878649d51958cf95c628e7584 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -2724,7 +2724,9 @@ class Script extends HeapObject with Coverage {
var c = source.codeUnitAt(pos);
if (c == 123) return 1; // { - Map literal
- if (c == 91) return 1; // [ - List literal, index, index assignment
+ if (c == 91) return 1; // [ - List literal, index, index assignment
+
+ if (c == 40) return 1; // ( - Closure call
if (_isOperatorChar(c)) {
while (++pos < source.length &&
« 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