| 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 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 class EmitterHelper extends JsFeatures { | 1219 class EmitterHelper extends JsFeatures { |
| 1220 final Compiler compiler; | 1220 final Compiler compiler; |
| 1221 | 1221 |
| 1222 EmitterHelper(this.compiler); | 1222 EmitterHelper(this.compiler); |
| 1223 | 1223 |
| 1224 ClassEmitter get classEmitter => backend.emitter.oldEmitter.classEmitter; | 1224 ClassEmitter get classEmitter => backend.emitter.oldEmitter.classEmitter; |
| 1225 | 1225 |
| 1226 List<String> computeFields(ClassElement cls) { | 1226 List<String> computeFields(ClassElement cls) { |
| 1227 // TODO(ahe): Rewrite for new emitter. | 1227 // TODO(ahe): Rewrite for new emitter. |
| 1228 ClassBuilder builder = new ClassBuilder(cls, namer); | 1228 ClassBuilder builder = new ClassBuilder(cls, namer); |
| 1229 classEmitter.emitFields(cls, builder, ""); | 1229 classEmitter.emitFields(cls, builder); |
| 1230 return builder.fields; | 1230 return builder.fields; |
| 1231 } | 1231 } |
| 1232 } | 1232 } |
| 1233 | 1233 |
| 1234 // TODO(ahe): Remove this method. | 1234 // TODO(ahe): Remove this method. |
| 1235 NO_WARN(x) => x; | 1235 NO_WARN(x) => x; |
| OLD | NEW |