| 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 part of LibraryPrefixesTest1.lib; |
| 6 |
| 5 class Constants { | 7 class Constants { |
| 6 static const PI = 3.14; | 8 static const PI = 3.14; |
| 7 static const foo = 1; | 9 static const foo = 1; |
| 8 } | 10 } |
| 9 | 11 |
| 10 class A { | 12 class A { |
| 11 static const y = -1; | 13 static const y = -1; |
| 12 int x; | 14 int x; |
| 13 A() : x = 1 {} | 15 A() : x = 1 {} |
| 14 A.named() : x = 3 {} | 16 A.named() : x = 3 {} |
| (...skipping 23 matching lines...) Expand all Loading... |
| 38 | 40 |
| 39 class E { | 41 class E { |
| 40 var f; | 42 var f; |
| 41 E() {} | 43 E() {} |
| 42 E.fun(x) : f = (() { return x + 11; }) {} | 44 E.fun(x) : f = (() { return x + 11; }) {} |
| 43 static foo() { return 0; } | 45 static foo() { return 0; } |
| 44 static fooo(x) { return () { return x + 99; }; } | 46 static fooo(x) { return () { return x + 99; }; } |
| 45 bar() { return 1; } | 47 bar() { return 1; } |
| 46 toto(x) { return () { return x + 2; }; } | 48 toto(x) { return () { return x + 2; }; } |
| 47 } | 49 } |
| OLD | NEW |