| 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 |
| (...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1471 | 1471 |
| 1472 class EmitterHelper extends JsFeatures { | 1472 class EmitterHelper extends JsFeatures { |
| 1473 final Compiler compiler; | 1473 final Compiler compiler; |
| 1474 | 1474 |
| 1475 EmitterHelper(this.compiler); | 1475 EmitterHelper(this.compiler); |
| 1476 | 1476 |
| 1477 ClassEmitter get classEmitter => backend.emitter.oldEmitter.classEmitter; | 1477 ClassEmitter get classEmitter => backend.emitter.oldEmitter.classEmitter; |
| 1478 | 1478 |
| 1479 List<String> computeFields(ClassElement classElement) { | 1479 List<String> computeFields(ClassElement classElement) { |
| 1480 Class cls = new ProgramBuilder(compiler, namer, emitter) | 1480 Class cls = new ProgramBuilder(compiler, namer, emitter) |
| 1481 .buildClassWithFieldsForIncrementalCompilation(classElement); | 1481 .buildFieldsHackForIncrementalCompilation(classElement); |
| 1482 // TODO(ahe): Rewrite for new emitter. | 1482 // TODO(ahe): Rewrite for new emitter. |
| 1483 ClassBuilder builder = new ClassBuilder(classElement, namer); | 1483 ClassBuilder builder = new ClassBuilder(classElement, namer); |
| 1484 classEmitter.emitFields(cls, builder); | 1484 classEmitter.emitFields(cls, builder); |
| 1485 return builder.fields; | 1485 return builder.fields; |
| 1486 } | 1486 } |
| 1487 } | 1487 } |
| 1488 | 1488 |
| 1489 // TODO(ahe): Remove this method. | 1489 // TODO(ahe): Remove this method. |
| 1490 NO_WARN(x) => x; | 1490 NO_WARN(x) => x; |
| OLD | NEW |