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

Unified Diff: packages/barback/lib/src/asset/asset_id.dart

Issue 3015713002: Roll to pickup pool changes
Patch Set: Created 3 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
« no previous file with comments | « packages/barback/lib/src/asset/asset.dart ('k') | packages/barback/lib/src/asset/asset_node.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/barback/lib/src/asset/asset_id.dart
diff --git a/packages/barback/lib/src/asset/asset_id.dart b/packages/barback/lib/src/asset/asset_id.dart
index adb2247ac150d145d0d2837b58a02abd42a5e44d..ee6228006a5fcef6dded114735630013872a38d5 100644
--- a/packages/barback/lib/src/asset/asset_id.dart
+++ b/packages/barback/lib/src/asset/asset_id.dart
@@ -30,8 +30,7 @@ class AssetId implements Comparable<AssetId> {
/// The [path] will be normalized: any backslashes will be replaced with
/// forward slashes (regardless of host OS) and "." and ".." will be removed
/// where possible.
- AssetId(this.package, String path)
- : path = _normalizePath(path);
+ AssetId(this.package, String path) : path = _normalizePath(path);
/// Parses an [AssetId] string of the form "package|path/to/asset.txt".
///
@@ -50,8 +49,7 @@ class AssetId implements Comparable<AssetId> {
}
if (parts[1].isEmpty) {
- throw new FormatException(
- 'Cannot have empty path in "$description".');
+ throw new FormatException('Cannot have empty path in "$description".');
}
return new AssetId(parts[0], parts[1]);
@@ -69,9 +67,7 @@ class AssetId implements Comparable<AssetId> {
/// Returns `true` of [other] is an [AssetId] with the same package and path.
operator ==(other) =>
- other is AssetId &&
- package == other.package &&
- path == other.path;
+ other is AssetId && package == other.package && path == other.path;
int get hashCode => package.hashCode ^ path.hashCode;
@@ -108,4 +104,4 @@ String _normalizePath(String path) {
// Collapse "." and "..".
return pathos.posix.normalize(path);
-}
+}
« no previous file with comments | « packages/barback/lib/src/asset/asset.dart ('k') | packages/barback/lib/src/asset/asset_node.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698