| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 /*element: main:[null]*/ | 5 /*element: main:[null]*/ |
| 6 main() { | 6 main() { |
| 7 uninitializedLocal(); | 7 uninitializedLocal(); |
| 8 initializedLocal(); | 8 initializedLocal(); |
| 9 updatedLocal(); | 9 updatedLocal(); |
| 10 invokeLocal(); |
| 11 postfixLocal(); |
| 10 } | 12 } |
| 11 | 13 |
| 12 /*element: uninitializedLocal:[null]*/ | 14 /*element: uninitializedLocal:[null]*/ |
| 13 uninitializedLocal() { | 15 uninitializedLocal() { |
| 14 var local; | 16 var local; |
| 15 return local; | 17 return local; |
| 16 } | 18 } |
| 17 | 19 |
| 18 /*element: initializedLocal:[exact=JSUInt31]*/ | 20 /*element: initializedLocal:[exact=JSUInt31]*/ |
| 19 initializedLocal() { | 21 initializedLocal() { |
| 20 var local = 0; | 22 var local = 0; |
| 21 return local; | 23 return local; |
| 22 } | 24 } |
| 23 | 25 |
| 24 /*element: updatedLocal:[exact=JSUInt31]*/ | 26 /*element: updatedLocal:[exact=JSUInt31]*/ |
| 25 updatedLocal() { | 27 updatedLocal() { |
| 26 var local2; | 28 var local2; |
| 27 local2 = 0; | 29 local2 = 0; |
| 28 return local2; | 30 return local2; |
| 29 } | 31 } |
| 32 |
| 33 /*element: invokeLocal:[null]*/ |
| 34 invokeLocal() { |
| 35 var local2 = 0; |
| 36 local2. /*invoke: [exact=JSUInt31]*/ toString(); |
| 37 return null; |
| 38 } |
| 39 |
| 40 /*element: postfixLocal:[null]*/ |
| 41 postfixLocal() { |
| 42 // ignore: UNUSED_LOCAL_VARIABLE |
| 43 var local2 = 0; |
| 44 local2 /*invoke: [exact=JSUInt31]*/ ++; |
| 45 return null; |
| 46 } |
| OLD | NEW |