OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library dart2js_incremental.library_updater; | 5 library dart2js_incremental.library_updater; |
6 | 6 |
7 import 'dart:async' show | 7 import 'dart:async' show |
8 Future; | 8 Future; |
9 | 9 |
10 import 'package:compiler/compiler.dart' as api; | 10 import 'package:compiler/compiler.dart' as api; |
11 | 11 |
12 import 'package:compiler/src/compiler.dart' show | 12 import 'package:compiler/src/compiler.dart' show |
13 Compiler; | 13 Compiler; |
14 | 14 |
| 15 import 'package:compiler/src/diagnostics/messages.dart' show |
| 16 MessageKind; |
| 17 |
15 import 'package:compiler/src/elements/elements.dart' show | 18 import 'package:compiler/src/elements/elements.dart' show |
16 ClassElement, | 19 ClassElement, |
17 CompilationUnitElement, | 20 CompilationUnitElement, |
18 Element, | 21 Element, |
19 FunctionElement, | 22 FunctionElement, |
20 LibraryElement, | 23 LibraryElement, |
21 STATE_NOT_STARTED, | 24 STATE_NOT_STARTED, |
22 ScopeContainerElement; | 25 ScopeContainerElement; |
23 | 26 |
24 import 'package:compiler/src/enqueue.dart' show | 27 import 'package:compiler/src/enqueue.dart' show |
25 EnqueueTask; | 28 EnqueueTask; |
26 | 29 |
27 import 'package:compiler/src/messages.dart' show | |
28 MessageKind; | |
29 | |
30 import 'package:compiler/src/scanner/scannerlib.dart' show | 30 import 'package:compiler/src/scanner/scannerlib.dart' show |
31 EOF_TOKEN, | 31 EOF_TOKEN, |
32 Listener, | 32 Listener, |
33 NodeListener, | 33 NodeListener, |
34 Parser, | 34 Parser, |
35 PartialClassElement, | 35 PartialClassElement, |
36 PartialElement, | 36 PartialElement, |
37 PartialFieldList, | 37 PartialFieldList, |
38 PartialFunctionElement, | 38 PartialFunctionElement, |
39 Scanner, | 39 Scanner, |
(...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1504 .buildFieldsHackForIncrementalCompilation(classElement); | 1504 .buildFieldsHackForIncrementalCompilation(classElement); |
1505 // TODO(ahe): Rewrite for new emitter. | 1505 // TODO(ahe): Rewrite for new emitter. |
1506 ClassBuilder builder = new ClassBuilder(classElement, namer); | 1506 ClassBuilder builder = new ClassBuilder(classElement, namer); |
1507 classEmitter.emitFields(cls, builder); | 1507 classEmitter.emitFields(cls, builder); |
1508 return builder.fields; | 1508 return builder.fields; |
1509 } | 1509 } |
1510 } | 1510 } |
1511 | 1511 |
1512 // TODO(ahe): Remove this method. | 1512 // TODO(ahe): Remove this method. |
1513 NO_WARN(x) => x; | 1513 NO_WARN(x) => x; |
OLD | NEW |