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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 849263002: Introduce elipses when there are long stretches of blank lines in observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 5 years, 11 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 4a0842d4a6ac1a3db59bcb402bdd4643b5015c32..e4eeffc4ba1cce6ec0908dcf2cdf1c7496bf2de9 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -1834,6 +1834,15 @@ class ScriptLine extends Observable {
@observable ServiceMap bpt;
@observable bool possibleBpt = true;
+ bool get isBlank {
+ // Compute isBlank on demand.
+ if (_isBlank == null) {
+ _isBlank = text.trim().isEmpty;
+ }
+ return _isBlank;
+ }
+ bool _isBlank;
+
static bool _isTrivialToken(String token) {
if (token == 'else') {
return true;
« 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