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 "../../../lib/compiler/implementation/scanner/scannerlib.dart"; | 5 import "../../../sdk/lib/_internal/compiler/implementation/scanner/scannerlib.da
rt"; |
6 import "../../../lib/compiler/implementation/elements/elements.dart" show Compil
ationUnitElement, LibraryElement; | 6 import "../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t" |
7 import "../../../lib/compiler/implementation/tree/tree.dart"; | 7 show CompilationUnitElement, LibraryElement; |
8 import "../../../lib/compiler/implementation/dart2jslib.dart" show DiagnosticLis
tener, Script; | 8 import "../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart"; |
| 9 import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart" |
| 10 show DiagnosticListener, Script; |
9 | 11 |
10 main() { | 12 main() { |
11 testClassDef(); | 13 testClassDef(); |
12 testClass1Field(); | 14 testClass1Field(); |
13 testClass2Fields(); | 15 testClass2Fields(); |
14 testClass1Field1Method(); | 16 testClass1Field1Method(); |
15 testClass1Field2Method(); | 17 testClass1Field2Method(); |
16 testClassDefTypeParam(); | 18 testClassDefTypeParam(); |
17 } | 19 } |
18 | 20 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } | 75 } |
74 void internalErrorOnElement(Element element, String message) { | 76 void internalErrorOnElement(Element element, String message) { |
75 throw message; | 77 throw message; |
76 } | 78 } |
77 void internalError(String message, | 79 void internalError(String message, |
78 {Node node, Token token, dynamic instruction, | 80 {Node node, Token token, dynamic instruction, |
79 Element element}) { | 81 Element element}) { |
80 throw message; | 82 throw message; |
81 } | 83 } |
82 } | 84 } |
OLD | NEW |