| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Tests function statement and expression syntax. | 5 // Tests function statement and expression syntax. |
| 6 | 6 |
| 7 class FunctionSyntaxTest { | 7 class FunctionSyntaxTest { |
| 8 | 8 |
| 9 static void testMain() { | 9 static void testMain() { |
| 10 testNestedFunctions(); | 10 testNestedFunctions(); |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 322 |
| 323 static wrap(fn) { return fn; } | 323 static wrap(fn) { return fn; } |
| 324 | 324 |
| 325 final fn; | 325 final fn; |
| 326 | 326 |
| 327 } | 327 } |
| 328 | 328 |
| 329 main() { | 329 main() { |
| 330 FunctionSyntaxTest.testMain(); | 330 FunctionSyntaxTest.testMain(); |
| 331 } | 331 } |
| OLD | NEW |