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 | 15 import 'package:compiler/src/diagnostics/messages.dart' show |
16 MessageKind; | 16 MessageKind; |
17 | 17 |
18 import 'package:compiler/src/elements/elements.dart' show | 18 import 'package:compiler/src/elements/elements.dart' show |
19 ClassElement, | 19 ClassElement, |
20 CompilationUnitElement, | 20 CompilationUnitElement, |
21 Element, | 21 Element, |
22 FunctionElement, | 22 FunctionElement, |
23 LibraryElement, | 23 LibraryElement, |
24 STATE_NOT_STARTED, | 24 STATE_NOT_STARTED, |
25 ScopeContainerElement; | 25 ScopeContainerElement; |
26 | 26 |
27 import 'package:compiler/src/enqueue.dart' show | 27 import 'package:compiler/src/enqueue.dart' show |
28 EnqueueTask; | 28 EnqueueTask; |
29 | 29 |
30 import 'package:compiler/src/parser/class_element_parser.dart' show | 30 import 'package:compiler/src/parser/listener.dart' show |
31 PartialClassElement; | 31 Listener; |
32 | 32 |
33 import 'package:compiler/src/parser/listener.dart' show | 33 import 'package:compiler/src/parser/node_listener.dart' show |
34 Listener, | 34 NodeListener; |
35 NodeListener, | 35 |
| 36 import 'package:compiler/src/parser/partial_elements.dart' show |
| 37 PartialClassElement, |
36 PartialElement, | 38 PartialElement, |
37 PartialFieldList, | 39 PartialFieldList, |
38 PartialFunctionElement; | 40 PartialFunctionElement; |
39 | 41 |
40 import 'package:compiler/src/parser/parser.dart' show | 42 import 'package:compiler/src/parser/parser.dart' show |
41 Parser; | 43 Parser; |
42 | 44 |
43 import 'package:compiler/src/scanner/scanner.dart' show | 45 import 'package:compiler/src/scanner/scanner.dart' show |
44 Scanner; | 46 Scanner; |
45 | 47 |
46 import 'package:compiler/src/tokens/token.dart' show | 48 import 'package:compiler/src/tokens/token.dart' show |
47 EOF_TOKEN, | |
48 Token; | 49 Token; |
49 | 50 |
| 51 import 'package:compiler/src/tokens/token_constants.dart' show |
| 52 EOF_TOKEN; |
| 53 |
50 import 'package:compiler/src/script.dart' show | 54 import 'package:compiler/src/script.dart' show |
51 Script; | 55 Script; |
52 | 56 |
53 import 'package:compiler/src/io/source_file.dart' show | 57 import 'package:compiler/src/io/source_file.dart' show |
54 CachingUtf8BytesSourceFile, | 58 CachingUtf8BytesSourceFile, |
55 SourceFile, | 59 SourceFile, |
56 StringSourceFile; | 60 StringSourceFile; |
57 | 61 |
58 import 'package:compiler/src/tree/tree.dart' show | 62 import 'package:compiler/src/tree/tree.dart' show |
59 ClassNode, | 63 ClassNode, |
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1512 .buildFieldsHackForIncrementalCompilation(classElement); | 1516 .buildFieldsHackForIncrementalCompilation(classElement); |
1513 // TODO(ahe): Rewrite for new emitter. | 1517 // TODO(ahe): Rewrite for new emitter. |
1514 ClassBuilder builder = new ClassBuilder(classElement, namer); | 1518 ClassBuilder builder = new ClassBuilder(classElement, namer); |
1515 classEmitter.emitFields(cls, builder); | 1519 classEmitter.emitFields(cls, builder); |
1516 return builder.fields; | 1520 return builder.fields; |
1517 } | 1521 } |
1518 } | 1522 } |
1519 | 1523 |
1520 // TODO(ahe): Remove this method. | 1524 // TODO(ahe): Remove this method. |
1521 NO_WARN(x) => x; | 1525 NO_WARN(x) => x; |
OLD | NEW |