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

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

Issue 1463123002: - Display a pseudo-receiver for static function activations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 2213 matching lines...) Expand 10 before | Expand all | Expand 10 after
2224 if (_pinned) { 2224 if (_pinned) {
2225 expanded = true; 2225 expanded = true;
2226 frameOuter.classes.add('shadow'); 2226 frameOuter.classes.add('shadow');
2227 } else { 2227 } else {
2228 expanded = false; 2228 expanded = false;
2229 frameOuter.classes.remove('shadow'); 2229 frameOuter.classes.remove('shadow');
2230 } 2230 }
2231 busy = false; 2231 busy = false;
2232 }); 2232 });
2233 } 2233 }
2234
2235 @observable
2236 get properLocals {
2237 var locals = new List();
2238 var homeMethod = frame.function.homeMethod;
2239 if (homeMethod.dartOwner is Class && homeMethod.isStatic) {
2240 locals.add(
2241 {'name' : '<class>',
2242 'value' : homeMethod.dartOwner});
2243 } else if (homeMethod.dartOwner is Library) {
2244 locals.add(
2245 {'name' : '<library>',
2246 'value' : homeMethod.dartOwner});
2247 }
2248 locals.addAll(frame.variables);
2249 return locals;
2250 }
2234 } 2251 }
2235 2252
2236 @CustomTag('debugger-message') 2253 @CustomTag('debugger-message')
2237 class DebuggerMessageElement extends ObservatoryElement { 2254 class DebuggerMessageElement extends ObservatoryElement {
2238 @published ServiceMessage message; 2255 @published ServiceMessage message;
2239 @observable ServiceObject preview; 2256 @observable ServiceObject preview;
2240 2257
2241 // Is this the current message? 2258 // Is this the current message?
2242 bool _current = false; 2259 bool _current = false;
2243 2260
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
2570 } 2587 }
2571 }); 2588 });
2572 } 2589 }
2573 2590
2574 void focus() { 2591 void focus() {
2575 $['textBox'].focus(); 2592 $['textBox'].focus();
2576 } 2593 }
2577 2594
2578 DebuggerInputElement.created() : super.created(); 2595 DebuggerInputElement.created() : super.created();
2579 } 2596 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/class_tree.html ('k') | runtime/observatory/lib/src/elements/debugger.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698