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 | |
11 UTF8; | |
12 | |
13 import 'package:compiler/compiler.dart' as api; | 10 import 'package:compiler/compiler.dart' as api; |
14 | 11 |
15 import 'package:compiler/src/dart2jslib.dart' show | 12 import 'package:compiler/src/compiler.dart' show |
16 Compiler; | 13 Compiler; |
17 | 14 |
18 import 'package:compiler/src/elements/elements.dart' show | 15 import 'package:compiler/src/elements/elements.dart' show |
19 ClassElement, | 16 ClassElement, |
20 CompilationUnitElement, | 17 CompilationUnitElement, |
21 Element, | 18 Element, |
22 FunctionElement, | 19 FunctionElement, |
23 LibraryElement, | 20 LibraryElement, |
24 STATE_NOT_STARTED, | 21 STATE_NOT_STARTED, |
25 ScopeContainerElement; | 22 ScopeContainerElement; |
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 .buildFieldsHackForIncrementalCompilation(classElement); | 1504 .buildFieldsHackForIncrementalCompilation(classElement); |
1508 // TODO(ahe): Rewrite for new emitter. | 1505 // TODO(ahe): Rewrite for new emitter. |
1509 ClassBuilder builder = new ClassBuilder(classElement, namer); | 1506 ClassBuilder builder = new ClassBuilder(classElement, namer); |
1510 classEmitter.emitFields(cls, builder); | 1507 classEmitter.emitFields(cls, builder); |
1511 return builder.fields; | 1508 return builder.fields; |
1512 } | 1509 } |
1513 } | 1510 } |
1514 | 1511 |
1515 // TODO(ahe): Remove this method. | 1512 // TODO(ahe): Remove this method. |
1516 NO_WARN(x) => x; | 1513 NO_WARN(x) => x; |
OLD | NEW |