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

Unified Diff: lib/src/info.dart

Issue 11293285: Fixes #163 - small fix in the mangling logic, renames all expected test files (Closed) Base URL: git@github.com:dart-lang/dart-web-components.git@master
Patch Set: Created 8 years, 1 month 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: lib/src/info.dart
diff --git a/lib/src/info.dart b/lib/src/info.dart
index 4ea6d4e9f0e7fe6d1830085fb355482f155b13be..2c1c499dd5d8f1e8cdd06b4acd7bca33c77380a4 100644
--- a/lib/src/info.dart
+++ b/lib/src/info.dart
@@ -39,7 +39,10 @@ class PathInfo {
/** Default prefix added to all filenames. */
static const String _DEFAULT_PREFIX = '_';
- PathInfo(this._baseDir, this._outputDir, [this._mangleFilenames = true]);
+ PathInfo(Path baseDir, Path outputDir, [bool forceMangle = false])
+ : _baseDir = baseDir,
+ _outputDir = outputDir,
+ _mangleFilenames = forceMangle || (baseDir == outputDir);
/** Add a prefix and [suffix] if [_mangleFilenames] is true */
String mangle(String name, String suffix, [bool forceSuffix = false]) =>

Powered by Google App Engine
This is Rietveld 408576698