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

Side by Side Diff: runtime/observatory/tests/ui/inspector.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
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/vm/debugger.cc » ('j') | 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 // See inspector.txt for expected behavior. 5 // See inspector.txt for expected behavior.
6 6
7 library manual_inspector_test; 7 library manual_inspector_test;
8 8
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:mirrors'; 10 import 'dart:mirrors';
11 import 'dart:developer'; 11 import 'dart:developer';
12 import 'dart:typed_data'; 12 import 'dart:typed_data';
13 13
14 part 'inspector_part.dart'; 14 part 'inspector_part.dart';
15 15
16 var libraryField; 16 var libraryField;
17 var node; 17 var node;
18 var uninitialized = new Object(); 18 var uninitialized = new Object();
19 19
20 extractPrivateField(obj, name) { 20 extractPrivateField(obj, name) {
21 return reflect(obj).getField(MirrorSystem.getSymbol(name, reflect(obj).type.ow ner)).reflectee; 21 return reflect(obj).getField(MirrorSystem.getSymbol(name, reflect(obj).type.ow ner)).reflectee;
22 } 22 }
23 23
24 class A <T> {} 24 class A <T> {}
25 class B <S extends num> {} 25 class B <S extends num> {}
26 26
27 class S {}
28 class M {}
29 class MA extends S with M {}
30
27 class Node { 31 class Node {
28 static var classField; 32 static var classField;
29 33
30 var nullable; 34 var nullable;
31 var mixedType; 35 var mixedType;
32 var array; 36 var array;
33 var bigint; 37 var bigint;
34 var blockClean; 38 var blockClean;
35 var blockCopying; 39 var blockCopying;
36 var blockFull; 40 var blockFull;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 return block; 109 return block;
106 } 110 }
107 return outer; 111 return outer;
108 } 112 }
109 113
110 f(int x) { 114 f(int x) {
111 ++x; 115 ++x;
112 return x; 116 return x;
113 } 117 }
114 118
119 static staticMain() {
120 node.main();
121 }
122
115 main() { 123 main() {
116 print("Started main"); 124 print("Started main");
117 125
118 f(9); 126 f(9);
119 127
120 nullable = 1; 128 nullable = 1;
121 nullable = null; 129 nullable = null;
122 nullable = 1; 130 nullable = 1;
123 mixedType = 1; 131 mixedType = 1;
124 mixedType = "2"; 132 mixedType = "2";
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 float32List[0] = 3.14; 241 float32List[0] = 3.14;
234 int8List[0] = 5; 242 int8List[0] = 5;
235 } 243 }
236 } 244 }
237 245
238 main() { 246 main() {
239 libraryField = 'Library field value'; 247 libraryField = 'Library field value';
240 Node.classField = 'Class field value'; 248 Node.classField = 'Class field value';
241 typed = new Typed(); 249 typed = new Typed();
242 node = new Node(); 250 node = new Node();
243 node.main(); 251 Node.staticMain();
244 } 252 }
245 253
246 class C { 254 class C {
247 static doPrint() { 255 static doPrint() {
248 print("Original"); 256 print("Original");
249 } 257 }
250 } 258 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698