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

Side by Side Diff: pkg/barback/lib/src/asset_id.dart

Issue 23201013: pkg/barback: removed unused imports, added a missing import (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library barback.asset_id; 5 library barback.asset_id;
6 6
7 import 'dart:async';
8 import 'dart:io';
9
10 import 'package:path/path.dart' as pathos; 7 import 'package:path/path.dart' as pathos;
11 8
12 /// AssetIDs always use POSIX style paths regardless of the host platform. 9 /// AssetIDs always use POSIX style paths regardless of the host platform.
13 final _posix = new pathos.Builder(style: pathos.Style.posix); 10 final _posix = new pathos.Builder(style: pathos.Style.posix);
14 11
15 /// Identifies an asset within a package. 12 /// Identifies an asset within a package.
16 class AssetId implements Comparable<AssetId> { 13 class AssetId implements Comparable<AssetId> {
17 /// The name of the package containing this asset. 14 /// The name of the package containing this asset.
18 final String package; 15 final String package;
19 16
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 /// but with file extension [newExtension]. 85 /// but with file extension [newExtension].
89 AssetId changeExtension(String newExtension) => 86 AssetId changeExtension(String newExtension) =>
90 new AssetId(package, pathos.withoutExtension(path) + newExtension); 87 new AssetId(package, pathos.withoutExtension(path) + newExtension);
91 88
92 String toString() => "$package|$path"; 89 String toString() => "$package|$path";
93 90
94 /// Serializes this [AssetId] to an object that can be sent across isolates 91 /// Serializes this [AssetId] to an object that can be sent across isolates
95 /// and passed to [deserialize]. 92 /// and passed to [deserialize].
96 serialize() => [package, path]; 93 serialize() => [package, path];
97 } 94 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698