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