OLD | NEW |
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'; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 var stringTrebleClef; | 69 var stringTrebleClef; |
70 var theFalse; | 70 var theFalse; |
71 var theNull; | 71 var theNull; |
72 var theTrue; | 72 var theTrue; |
73 var type; | 73 var type; |
74 var typeParameter; | 74 var typeParameter; |
75 var typedData; | 75 var typedData; |
76 var userTag; | 76 var userTag; |
77 var weakProperty; | 77 var weakProperty; |
78 | 78 |
79 genStacktrace() { | 79 genStackTrace() { |
80 try { | 80 try { |
81 num.parse(','); | 81 num.parse(','); |
82 } catch (e, s) { | 82 } catch (e, s) { |
83 return s; | 83 return s; |
84 } | 84 } |
85 } | 85 } |
86 | 86 |
87 genCleanBlock() { | 87 genCleanBlock() { |
88 block(x) => x; | 88 block(x) => x; |
89 return block; | 89 return block; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 map.remove("removed-key"); | 155 map.remove("removed-key"); |
156 mint = 1 << 32; | 156 mint = 1 << 32; |
157 mirrorClass = reflectClass(Object); | 157 mirrorClass = reflectClass(Object); |
158 mirrorClosure = reflect(blockFull); | 158 mirrorClosure = reflect(blockFull); |
159 mirrorInstance = reflect("a reflectee"); | 159 mirrorInstance = reflect("a reflectee"); |
160 mirrorReference = extractPrivateField(mirrorClass, '_reflectee'); | 160 mirrorReference = extractPrivateField(mirrorClass, '_reflectee'); |
161 portReceive = new RawReceivePort(); | 161 portReceive = new RawReceivePort(); |
162 portSend = portReceive.sendPort; | 162 portSend = portReceive.sendPort; |
163 regex = new RegExp("a*b+c"); | 163 regex = new RegExp("a*b+c"); |
164 smi = 7; | 164 smi = 7; |
165 stacktrace = genStacktrace(); | 165 stacktrace = genStackTrace(); |
166 string = "Hello $smi ${smi.runtimeType}"; | 166 string = "Hello $smi ${smi.runtimeType}"; |
167 stringLatin1 = "blåbærgrød"; | 167 stringLatin1 = "blåbærgrød"; |
168 stringSnowflake = "❄"; | 168 stringSnowflake = "❄"; |
169 stringUnicode = "Îñţérñåţîöñåļîžåţîờñ"; | 169 stringUnicode = "Îñţérñåţîöñåļîžåţîờñ"; |
170 stringHebrew = "שלום רב שובך צפורה נחמדת"; // An example of Right-to-Left. | 170 stringHebrew = "שלום רב שובך צפורה נחמדת"; // An example of Right-to-Left. |
171 stringTrebleClef = "𝄞"; // An example of a surrogate pair. | 171 stringTrebleClef = "𝄞"; // An example of a surrogate pair. |
172 theFalse = false; | 172 theFalse = false; |
173 theNull = null; | 173 theNull = null; |
174 theTrue = true; | 174 theTrue = true; |
175 type = String; | 175 type = String; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 typed = new Typed(); | 249 typed = new Typed(); |
250 node = new Node(); | 250 node = new Node(); |
251 Node.staticMain(); | 251 Node.staticMain(); |
252 } | 252 } |
253 | 253 |
254 class C { | 254 class C { |
255 static doPrint() { | 255 static doPrint() { |
256 print("Original"); | 256 print("Original"); |
257 } | 257 } |
258 } | 258 } |
OLD | NEW |