| Index: pkg/compiler/lib/src/dump_info.dart
|
| diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
|
| index b5bb9598645c09d35f4866459e71eafae06c8e49..dc4fd9fb8adcb8e3b0feffe547a217a6247757b0 100644
|
| --- a/pkg/compiler/lib/src/dump_info.dart
|
| +++ b/pkg/compiler/lib/src/dump_info.dart
|
| @@ -363,6 +363,11 @@ class DumpInfoTask extends CompilerTask {
|
| }
|
| }
|
|
|
| + final Map<Element, List<Element>> _dependencies = {};
|
| + void registerDependency(Element source, Element target) {
|
| + _dependencies.putIfAbsent(source, () => new Set()).add(target);
|
| + }
|
| +
|
| /**
|
| * Returns an iterable of [Selection]s that are used by
|
| * [element]. Each [Selection] contains an element that is
|
| @@ -492,6 +497,16 @@ class DumpInfoTask extends CompilerTask {
|
| }
|
|
|
| AllInfo result = infoCollector.result;
|
| +
|
| + for (Element element in _dependencies.keys) {
|
| + var a = infoCollector._elementToInfo[element];
|
| + if (a == null) continue;
|
| + result.deps[a] = _dependencies[element]
|
| + .map((o) => infoCollector._elementToInfo[o])
|
| + .where((o) => o != null)
|
| + .toList();
|
| + }
|
| +
|
| result.deferredFiles = compiler.deferredLoadTask.computeDeferredMap();
|
| stopwatch.stop();
|
| result.program = new ProgramInfo(
|
|
|