Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1375)

Unified Diff: sdk/lib/_internal/pub/lib/src/cached_package.dart

Issue 601973002: Fix some pub analyzer warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/lib/src/cached_package.dart
diff --git a/sdk/lib/_internal/pub/lib/src/cached_package.dart b/sdk/lib/_internal/pub/lib/src/cached_package.dart
index 3dc2323689f05d2129d69dae573afdb05c1837a1..6fac594da38fefdbda99798dba0ce9d757b1612e 100644
--- a/sdk/lib/_internal/pub/lib/src/cached_package.dart
+++ b/sdk/lib/_internal/pub/lib/src/cached_package.dart
@@ -47,11 +47,15 @@ class CachedPackage extends Package {
/// This will include the cached, transformed versions of files if [beneath]
/// is within a cached directory, but not otherwise.
- List<String> listFiles({String beneath, recursive: true}) {
- if (beneath == null) return super.listFiles(recursive: recursive);
+ List<String> listFiles({String beneath, recursive: true,
+ bool useGitIgnore: false}) {
+ if (beneath == null) {
+ return super.listFiles(recursive: recursive, useGitIgnore: useGitIgnore);
+ }
if (_pathInCache(beneath)) return listDir(p.join(_cacheDir, beneath));
- return super.listFiles(beneath: beneath, recursive: recursive);
+ return super.listFiles(beneath: beneath, recursive: recursive,
+ useGitIgnore: useGitIgnore);
}
/// Returns whether [relativePath], a path relative to the package's root,
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart ('k') | sdk/lib/_internal/pub/lib/src/global_packages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698