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

Side by Side Diff: packages/watcher/lib/src/path_set.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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
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 watcher.path_dart; 5 library watcher.path_dart;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // 14980). 159 // 14980).
160 if (!p.isRelative(relative) || parts.first == '..' || parts.first == '.') { 160 if (!p.isRelative(relative) || parts.first == '..' || parts.first == '.') {
161 throw new ArgumentError('Path "$path" is not inside "$root".'); 161 throw new ArgumentError('Path "$path" is not inside "$root".');
162 } 162 }
163 return p.join(root, relative); 163 return p.join(root, relative);
164 } 164 }
165 165
166 /// Returns the segments of [path] beneath [root]. 166 /// Returns the segments of [path] beneath [root].
167 List<String> _split(String path) => p.split(p.relative(path, from: root)); 167 List<String> _split(String path) => p.split(p.relative(path, from: root));
168 } 168 }
OLDNEW
« no previous file with comments | « packages/watcher/lib/src/file_watcher/polling.dart ('k') | packages/watcher/lib/src/resubscribable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698