OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:front_end/compiler_options.dart'; | 7 import 'package:front_end/compiler_options.dart'; |
8 import 'package:front_end/file_system.dart'; | 8 import 'package:front_end/file_system.dart'; |
9 import 'package:front_end/src/base/api_signature.dart'; | 9 import 'package:front_end/src/base/api_signature.dart'; |
10 import 'package:front_end/src/base/performace_logger.dart'; | 10 import 'package:front_end/src/base/performace_logger.dart'; |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 Map<Uri, FileState> uriToFile, List<DillLibraryBuilder> libraries) { | 278 Map<Uri, FileState> uriToFile, List<DillLibraryBuilder> libraries) { |
279 bool wasChanged = false; | 279 bool wasChanged = false; |
280 do { | 280 do { |
281 wasChanged = false; | 281 wasChanged = false; |
282 for (DillLibraryBuilder library in libraries) { | 282 for (DillLibraryBuilder library in libraries) { |
283 FileState file = uriToFile[library.uri]; | 283 FileState file = uriToFile[library.uri]; |
284 for (NamespaceExport export in file.exports) { | 284 for (NamespaceExport export in file.exports) { |
285 DillLibraryBuilder exportedLibrary = | 285 DillLibraryBuilder exportedLibrary = |
286 dillTarget.loader.read(export.library.uri, -1, accessor: library); | 286 dillTarget.loader.read(export.library.uri, -1, accessor: library); |
287 if (exportedLibrary != null) { | 287 if (exportedLibrary != null) { |
288 exportedLibrary.exports.forEach((name, member) { | 288 exportedLibrary.exportScope.forEach((name, member) { |
289 if (export.isExposed(name) && | 289 if (export.isExposed(name) && |
290 library.addToExportScope(name, member)) { | 290 library.addToExportScope(name, member)) { |
291 wasChanged = true; | 291 wasChanged = true; |
292 } | 292 } |
293 }); | 293 }); |
294 } else { | 294 } else { |
295 // TODO(scheglov) How to handle this? | 295 // TODO(scheglov) How to handle this? |
296 } | 296 } |
297 } | 297 } |
298 } | 298 } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 | 388 |
389 LibraryCycleResult(this.cycle, this.signature, this.kernelLibraries); | 389 LibraryCycleResult(this.cycle, this.signature, this.kernelLibraries); |
390 } | 390 } |
391 | 391 |
392 @visibleForTesting | 392 @visibleForTesting |
393 class _TestView { | 393 class _TestView { |
394 /// The list of [LibraryCycle]s compiled for the last delta. | 394 /// The list of [LibraryCycle]s compiled for the last delta. |
395 /// It does not include libraries which were read from the cache. | 395 /// It does not include libraries which were read from the cache. |
396 final List<LibraryCycle> compiledCycles = []; | 396 final List<LibraryCycle> compiledCycles = []; |
397 } | 397 } |
OLD | NEW |