| Index: lib/devc.dart
|
| diff --git a/lib/devc.dart b/lib/devc.dart
|
| index 980e2db1393619b81606b616217139632f34e3b9..9ae3ea9c5eb46b5352a7b1779da3160ec06bc3ea 100644
|
| --- a/lib/devc.dart
|
| +++ b/lib/devc.dart
|
| @@ -25,7 +25,7 @@ import 'src/codegen/dart_codegen.dart';
|
| import 'src/codegen/html_codegen.dart';
|
| import 'src/codegen/js_codegen.dart';
|
| import 'src/dependency_graph.dart';
|
| -import 'src/info.dart' show LibraryInfo, CheckerResults;
|
| +import 'src/info.dart' show LibraryInfo, CheckerResults, LibraryUnit;
|
| import 'src/options.dart';
|
| import 'src/report.dart';
|
| import 'src/utils.dart';
|
| @@ -167,11 +167,12 @@ class Compiler {
|
| _libraries.add(current);
|
| _rules.currentLibraryInfo = current;
|
|
|
| - var units = [entryUnit]
|
| - ..addAll(node.parts.map(
|
| - (p) => _resolver.context.resolveCompilationUnit2(p.source, source)));
|
| + var resolvedParts = node.parts
|
| + .map((p) => _resolver.context.resolveCompilationUnit2(p.source, source))
|
| + .toList(growable: false);
|
| + var libraryUnit = new LibraryUnit(entryUnit, resolvedParts);
|
| bool failureInLib = false;
|
| - for (var unit in units) {
|
| + for (var unit in libraryUnit.units) {
|
| var unitSource = unit.element.source;
|
| _reporter.enterSource(unitSource);
|
| // TODO(sigmund): integrate analyzer errors with static-info (issue #6).
|
| @@ -186,7 +187,7 @@ class Compiler {
|
| }
|
|
|
| for (var cg in _generators) {
|
| - var hash = cg.generateLibrary(units, current, _reporter);
|
| + var hash = cg.generateLibrary(libraryUnit, current, _reporter);
|
| if (_hashing) node.cachingHash = hash;
|
| }
|
| _reporter.leaveLibrary();
|
|
|