Chromium Code Reviews| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 import 'package:compiler/src/js/js.dart' as jsAst; | 59 import 'package:compiler/src/js/js.dart' as jsAst; |
| 60 | 60 |
| 61 import 'package:compiler/src/js_emitter/js_emitter.dart' show | 61 import 'package:compiler/src/js_emitter/js_emitter.dart' show |
| 62 ClassBuilder, | 62 ClassBuilder, |
| 63 ClassEmitter, | 63 ClassEmitter, |
| 64 CodeEmitterTask, | 64 CodeEmitterTask, |
| 65 ContainerBuilder, | 65 ContainerBuilder, |
| 66 MemberInfo, | 66 MemberInfo, |
| 67 computeMixinClass; | 67 computeMixinClass; |
| 68 | 68 |
| 69 import 'package:compiler/src/js_emitter/model.dart' show | |
| 70 Class; | |
|
ahe
2015/01/28 07:22:37
Add newline between imports.
floitsch
2015/01/28 16:25:05
Done.
| |
| 71 import 'package:compiler/src/js_emitter/program_builder.dart' show | |
| 72 ProgramBuilder; | |
| 73 | |
| 69 import 'package:_internal/compiler/js_lib/shared/embedded_names.dart' | 74 import 'package:_internal/compiler/js_lib/shared/embedded_names.dart' |
| 70 as embeddedNames; | 75 as embeddedNames; |
| 71 | 76 |
| 72 import 'package:compiler/src/js_backend/js_backend.dart' show | 77 import 'package:compiler/src/js_backend/js_backend.dart' show |
| 73 JavaScriptBackend, | 78 JavaScriptBackend, |
| 74 Namer; | 79 Namer; |
| 75 | 80 |
| 76 import 'package:compiler/src/util/util.dart' show | 81 import 'package:compiler/src/util/util.dart' show |
| 77 Link, | 82 Link, |
| 78 LinkBuilder; | 83 LinkBuilder; |
| (...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1461 EnqueueTask get enqueuer => compiler.enqueuer; | 1466 EnqueueTask get enqueuer => compiler.enqueuer; |
| 1462 } | 1467 } |
| 1463 | 1468 |
| 1464 class EmitterHelper extends JsFeatures { | 1469 class EmitterHelper extends JsFeatures { |
| 1465 final Compiler compiler; | 1470 final Compiler compiler; |
| 1466 | 1471 |
| 1467 EmitterHelper(this.compiler); | 1472 EmitterHelper(this.compiler); |
| 1468 | 1473 |
| 1469 ClassEmitter get classEmitter => backend.emitter.oldEmitter.classEmitter; | 1474 ClassEmitter get classEmitter => backend.emitter.oldEmitter.classEmitter; |
| 1470 | 1475 |
| 1471 List<String> computeFields(ClassElement cls) { | 1476 List<String> computeFields(ClassElement classElement) { |
| 1477 Class cls = new ProgramBuilder(compiler, namer, emitter) | |
| 1478 .buildClassWithFieldsForTry(classElement); | |
| 1472 // TODO(ahe): Rewrite for new emitter. | 1479 // TODO(ahe): Rewrite for new emitter. |
| 1473 ClassBuilder builder = new ClassBuilder(cls, namer); | 1480 ClassBuilder builder = new ClassBuilder(classElement, namer); |
| 1474 classEmitter.emitFields(cls, builder); | 1481 classEmitter.emitFields(cls, builder); |
| 1475 return builder.fields; | 1482 return builder.fields; |
| 1476 } | 1483 } |
| 1477 } | 1484 } |
| 1478 | 1485 |
| 1479 // TODO(ahe): Remove this method. | 1486 // TODO(ahe): Remove this method. |
| 1480 NO_WARN(x) => x; | 1487 NO_WARN(x) => x; |
| OLD | NEW |