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

Side by Side Diff: packages/path/lib/src/parsed_path.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
« no previous file with comments | « packages/path/lib/src/internal_style.dart ('k') | packages/path/lib/src/path_exception.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 path.parsed_path; 5 library path.parsed_path;
6 6
7 import 'internal_style.dart'; 7 import 'internal_style.dart';
8 import 'style.dart'; 8 import 'style.dart';
9 9
10 class ParsedPath { 10 class ParsedPath {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // If there is no dot, or it's the first character, like '.bashrc', it 174 // If there is no dot, or it's the first character, like '.bashrc', it
175 // doesn't count. 175 // doesn't count.
176 if (lastDot <= 0) return [file, '']; 176 if (lastDot <= 0) return [file, ''];
177 177
178 return [file.substring(0, lastDot), file.substring(lastDot)]; 178 return [file.substring(0, lastDot), file.substring(lastDot)];
179 } 179 }
180 180
181 ParsedPath clone() => new ParsedPath._(style, root, isRootRelative, 181 ParsedPath clone() => new ParsedPath._(style, root, isRootRelative,
182 new List.from(parts), new List.from(separators)); 182 new List.from(parts), new List.from(separators));
183 } 183 }
OLDNEW
« no previous file with comments | « packages/path/lib/src/internal_style.dart ('k') | packages/path/lib/src/path_exception.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698