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 'dart:convert' show | 10 import 'dart:convert' show |
11 UTF8; | 11 UTF8; |
12 | 12 |
13 import 'package:compiler/compiler.dart' as api; | 13 import 'package:compiler/compiler.dart' as api; |
14 | 14 |
15 import 'package:compiler/src/dart2jslib.dart' show | 15 import 'package:compiler/src/dart2jslib.dart' show |
16 Compiler, | 16 Compiler; |
17 EnqueueTask, | |
18 MessageKind, | |
19 Script; | |
20 | 17 |
21 import 'package:compiler/src/elements/elements.dart' show | 18 import 'package:compiler/src/elements/elements.dart' show |
22 ClassElement, | 19 ClassElement, |
23 CompilationUnitElement, | 20 CompilationUnitElement, |
24 Element, | 21 Element, |
25 FunctionElement, | 22 FunctionElement, |
26 LibraryElement, | 23 LibraryElement, |
27 STATE_NOT_STARTED, | 24 STATE_NOT_STARTED, |
28 ScopeContainerElement; | 25 ScopeContainerElement; |
29 | 26 |
| 27 import 'package:compiler/src/enqueue.dart' show |
| 28 EnqueueTask; |
| 29 |
| 30 import 'package:compiler/src/messages.dart' show |
| 31 MessageKind; |
| 32 |
30 import 'package:compiler/src/scanner/scannerlib.dart' show | 33 import 'package:compiler/src/scanner/scannerlib.dart' show |
31 EOF_TOKEN, | 34 EOF_TOKEN, |
32 Listener, | 35 Listener, |
33 NodeListener, | 36 NodeListener, |
34 Parser, | 37 Parser, |
35 PartialClassElement, | 38 PartialClassElement, |
36 PartialElement, | 39 PartialElement, |
37 PartialFieldList, | 40 PartialFieldList, |
38 PartialFunctionElement, | 41 PartialFunctionElement, |
39 Scanner, | 42 Scanner, |
40 Token; | 43 Token; |
41 | 44 |
| 45 import 'package:compiler/src/script.dart' show |
| 46 Script; |
| 47 |
42 import 'package:compiler/src/io/source_file.dart' show | 48 import 'package:compiler/src/io/source_file.dart' show |
43 CachingUtf8BytesSourceFile, | 49 CachingUtf8BytesSourceFile, |
44 SourceFile, | 50 SourceFile, |
45 StringSourceFile; | 51 StringSourceFile; |
46 | 52 |
47 import 'package:compiler/src/tree/tree.dart' show | 53 import 'package:compiler/src/tree/tree.dart' show |
48 ClassNode, | 54 ClassNode, |
49 FunctionExpression, | 55 FunctionExpression, |
50 LibraryTag, | 56 LibraryTag, |
51 NodeList, | 57 NodeList, |
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 .buildFieldsHackForIncrementalCompilation(classElement); | 1507 .buildFieldsHackForIncrementalCompilation(classElement); |
1502 // TODO(ahe): Rewrite for new emitter. | 1508 // TODO(ahe): Rewrite for new emitter. |
1503 ClassBuilder builder = new ClassBuilder(classElement, namer); | 1509 ClassBuilder builder = new ClassBuilder(classElement, namer); |
1504 classEmitter.emitFields(cls, builder); | 1510 classEmitter.emitFields(cls, builder); |
1505 return builder.fields; | 1511 return builder.fields; |
1506 } | 1512 } |
1507 } | 1513 } |
1508 | 1514 |
1509 // TODO(ahe): Remove this method. | 1515 // TODO(ahe): Remove this method. |
1510 NO_WARN(x) => x; | 1516 NO_WARN(x) => x; |
OLD | NEW |