Sort declarations in build_mode.dart

Change-Id: I0fa24b9733c2423ea253d75fd533b4ba2fef415e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96700
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
Paul Berry 2019-03-12 19:27:06 +00:00 committed by commit-bot@chromium.org
parent e2b5559c77
commit 22c2c7ffd8

View file

@ -556,6 +556,22 @@ class BuildMode with HasContextMixin {
}
}
/**
* Tracks paths to dependencies, really just a thin api around a Set<String>.
*/
class DependencyTracker {
final _dependencies = Set<String>();
/// The path to the file to create once tracking is done.
final String outputPath;
DependencyTracker(this.outputPath);
Iterable<String> get dependencies => _dependencies;
void record(String path) => _dependencies.add(path);
}
/**
* [PackageBundleProvider] that always reads from the [ResourceProvider].
*/
@ -719,19 +735,3 @@ class WorkerPackageBundleProvider implements PackageBundleProvider {
return cache.get(inputs, path);
}
}
/**
* Tracks paths to dependencies, really just a thin api around a Set<String>.
*/
class DependencyTracker {
final _dependencies = Set<String>();
Iterable<String> get dependencies => _dependencies;
/// The path to the file to create once tracking is done.
final String outputPath;
DependencyTracker(this.outputPath);
void record(String path) => _dependencies.add(path);
}