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>
diff --git a/pkg/analyzer_cli/lib/src/build_mode.dart b/pkg/analyzer_cli/lib/src/build_mode.dart
index ee2a239..49fbdd9 100644
--- a/pkg/analyzer_cli/lib/src/build_mode.dart
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart
@@ -557,6 +557,22 @@
}
/**
+ * 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].
*/
class DirectPackageBundleProvider implements PackageBundleProvider {
@@ -719,19 +735,3 @@
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);
-}