| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // Imported by deferred_class_test.dart. | 5 patch class _AsyncRun { |
| 6 | 6 /* patch */ static void _enqueueImmediate(void callback()) { |
| 7 library deferred_class_library; | 7 // TODO(floitsch): don't use the Timer to enqueue the immediate callback. |
| 8 | 8 Timer.run(callback); |
| 9 class MyClass { | |
| 10 foo(x) { | |
| 11 print('MyClass.foo($x)'); | |
| 12 return (x - 3) ~/ 2; | |
| 13 } | 9 } |
| 14 } | 10 } |
| OLD | NEW |