| 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 'package:compiler/compiler.dart' as api; | 10 import 'package:compiler/compiler.dart' as api; |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 enqueuer.resolution.addToWorkList(element); | 789 enqueuer.resolution.addToWorkList(element); |
| 790 } else { | 790 } else { |
| 791 NO_WARN(element).ensureResolved(compiler); | 791 NO_WARN(element).ensureResolved(compiler); |
| 792 } | 792 } |
| 793 } | 793 } |
| 794 compiler.processQueue(enqueuer.resolution, null); | 794 compiler.processQueue(enqueuer.resolution, null); |
| 795 | 795 |
| 796 compiler.phase = Compiler.PHASE_DONE_RESOLVING; | 796 compiler.phase = Compiler.PHASE_DONE_RESOLVING; |
| 797 | 797 |
| 798 // TODO(ahe): Clean this up. Don't call this method in analyze-only mode. | 798 // TODO(ahe): Clean this up. Don't call this method in analyze-only mode. |
| 799 if (compiler.analyzeOnly) return "/* analyze only */"; | 799 if (compiler.options.analyzeOnly) return "/* analyze only */"; |
| 800 | 800 |
| 801 Set<ClassElementX> changedClasses = | 801 Set<ClassElementX> changedClasses = |
| 802 new Set<ClassElementX>.from(_classesWithSchemaChanges); | 802 new Set<ClassElementX>.from(_classesWithSchemaChanges); |
| 803 for (Element element in updatedElements) { | 803 for (Element element in updatedElements) { |
| 804 if (!element.isClass) { | 804 if (!element.isClass) { |
| 805 enqueuer.codegen.addToWorkList(element); | 805 enqueuer.codegen.addToWorkList(element); |
| 806 } else { | 806 } else { |
| 807 changedClasses.add(element); | 807 changedClasses.add(element); |
| 808 } | 808 } |
| 809 } | 809 } |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1512 .buildFieldsHackForIncrementalCompilation(classElement); | 1512 .buildFieldsHackForIncrementalCompilation(classElement); |
| 1513 // TODO(ahe): Rewrite for new emitter. | 1513 // TODO(ahe): Rewrite for new emitter. |
| 1514 ClassBuilder builder = new ClassBuilder(classElement, namer); | 1514 ClassBuilder builder = new ClassBuilder(classElement, namer); |
| 1515 classEmitter.emitFields(cls, builder); | 1515 classEmitter.emitFields(cls, builder); |
| 1516 return builder.fields; | 1516 return builder.fields; |
| 1517 } | 1517 } |
| 1518 } | 1518 } |
| 1519 | 1519 |
| 1520 // TODO(ahe): Remove this method. | 1520 // TODO(ahe): Remove this method. |
| 1521 NO_WARN(x) => x; | 1521 NO_WARN(x) => x; |
| OLD | NEW |