mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 05:26:57 +00:00
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:
parent
e2b5559c77
commit
22c2c7ffd8
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue