diff --git a/pkg/analyzer_cli/lib/src/build_mode.dart b/pkg/analyzer_cli/lib/src/build_mode.dart index ee2a239f4c7..49fbdd9827a 100644 --- a/pkg/analyzer_cli/lib/src/build_mode.dart +++ b/pkg/analyzer_cli/lib/src/build_mode.dart @@ -556,6 +556,22 @@ class BuildMode with HasContextMixin { } } +/** + * Tracks paths to dependencies, really just a thin api around a Set. + */ +class DependencyTracker { + final _dependencies = Set(); + + /// The path to the file to create once tracking is done. + final String outputPath; + + DependencyTracker(this.outputPath); + + Iterable 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. - */ -class DependencyTracker { - final _dependencies = Set(); - - Iterable 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); -}