OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
6 import "package:compiler/src/scanner/scannerlib.dart"; | 6 import "package:compiler/src/scanner/scannerlib.dart"; |
7 import "package:compiler/src/tree/tree.dart"; | 7 import "package:compiler/src/tree/tree.dart"; |
8 | 8 |
9 import "package:compiler/src/dart2jslib.dart" | 9 import "package:compiler/src/diagnostic_listener.dart"; |
10 show DiagnosticListener, | |
11 Script; | |
12 | |
13 import "package:compiler/src/elements/elements.dart" | 10 import "package:compiler/src/elements/elements.dart" |
14 show CompilationUnitElement, | 11 show CompilationUnitElement, |
15 LibraryElement; | 12 LibraryElement; |
16 | |
17 import "package:compiler/src/elements/modelx.dart" | 13 import "package:compiler/src/elements/modelx.dart" |
18 show CompilationUnitElementX, | 14 show CompilationUnitElementX, |
19 LibraryElementX; | 15 LibraryElementX; |
| 16 import "package:compiler/src/script.dart"; |
20 | 17 |
21 main() { | 18 main() { |
22 testClassDef(); | 19 testClassDef(); |
23 testClass1Field(); | 20 testClass1Field(); |
24 testClass2Fields(); | 21 testClass2Fields(); |
25 testClass1Field1Method(); | 22 testClass1Field1Method(); |
26 testClass1Field2Method(); | 23 testClass1Field2Method(); |
27 testClassDefTypeParam(); | 24 testClassDefTypeParam(); |
28 testEnumDef(); | 25 testEnumDef(); |
29 testEnum1Value(); | 26 testEnum1Value(); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 messages.add(reason); | 105 messages.add(reason); |
109 throw reason; | 106 throw reason; |
110 } | 107 } |
111 | 108 |
112 void log(message) { | 109 void log(message) { |
113 messages.add(message); | 110 messages.add(message); |
114 } | 111 } |
115 | 112 |
116 noSuchMethod(Invocation invocation) => throw 'unsupported operation'; | 113 noSuchMethod(Invocation invocation) => throw 'unsupported operation'; |
117 } | 114 } |
OLD | NEW |