| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 var exports = 42; | 5 var exports = 42; |
| 6 | 6 |
| 7 class Foo { | 7 class Foo { |
| 8 _foo() => 123; | 8 _foo() => 123; |
| 9 } | 9 } |
| 10 | 10 |
| 11 _foo() => 456; | 11 _foo() => 456; |
| 12 | 12 |
| 13 class Frame { | 13 class Frame { |
| 14 final List arguments; | 14 final List arguments; |
| 15 Frame.caller(this.arguments); | 15 Frame.caller(this.arguments); |
| 16 static callee() => null; | 16 static callee() => null; |
| 17 } | 17 } |
| 18 | 18 |
| 19 |
| 20 class Frame2 { |
| 21 static int caller = 100; |
| 22 static int arguments = 200; |
| 23 } |
| 24 |
| 19 main() { | 25 main() { |
| 20 print(exports); | 26 print(exports); |
| 21 print(new Foo()._foo()); | 27 print(new Foo()._foo()); |
| 22 print(_foo()); | 28 print(_foo()); |
| 23 print(new Frame.caller([1,2,3])); | 29 print(new Frame.caller([1,2,3])); |
| 24 var eval = Frame.callee; | 30 var eval = Frame.callee; |
| 25 print(eval); | 31 print(eval); |
| 32 print(Frame2.caller + Frame2.arguments); |
| 26 } | 33 } |
| OLD | NEW |