Skip to content

Commit cb48ed0

Browse files
committed
Address comments.
1 parent 93ca670 commit cb48ed0

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

pkgs/path/lib/src/context.dart

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -415,31 +415,31 @@ class Context {
415415
// Empty paths are normalized to ".".
416416
if (path.isEmpty) return true;
417417

418-
/// At start, no previous separator.
418+
// At start, no previous separator.
419419
const stateStart = 0;
420420

421-
/// Previous character was a separator.
421+
// Previous character was a separator.
422422
const stateSeparator = 1;
423423

424-
/// Added to state for each `.` seen.
424+
// Added to state for each `.` seen.
425425
const stateDotCount = 2;
426426

427-
/// Path segment that contains anything other than nothing, `.` or `..`.
428-
///
429-
/// Includes any value at or above this one.
427+
// Path segment that contains anything other than nothing, `.` or `..`.
428+
//
429+
// Includes any value at or above this one.
430430
const stateNotDots = 6;
431431

432-
/// Current state of the last few characters.
433-
///
434-
/// Seeing a separator resets to [stateSeparator].
435-
/// Seeing a `.` adds [stateDotCount].
436-
/// Seeing any non-separator or more than two dots will
437-
/// bring the value above [stateNotDots].
438-
/// (The separator may be optional at the start, seeing one is fine,
439-
/// and seeing dots will start counting.)
440-
/// (That is, `/` has value 1, `/.` value 3, ``/..` value 5, and anything
441-
/// else is 6 or above, except at the very start where empty path, `.`
442-
/// and `..` have values 0, 2 and 4.)
432+
// Current state of the last few characters.
433+
//
434+
// Seeing a separator resets to [stateSeparator].
435+
// Seeing a `.` adds [stateDotCount].
436+
// Seeing any non-separator or more than two dots will
437+
// bring the value above [stateNotDots].
438+
// (The separator may be optional at the start, seeing one is fine,
439+
// and seeing dots will start counting.)
440+
// (That is, `/` has value 1, `/.` value 3, ``/..` value 5, and anything
441+
// else is 6 or above, except at the very start where empty path, `.`
442+
// and `..` have values 0, 2 and 4.)
443443
var state = stateStart;
444444

445445
// Skip past the root before we start looking for snippets that need

pkgs/path/lib/src/parsed_path.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ParsedPath {
3737
/// one.
3838
String extension([int level = 1]) => _splitExtension(level)[1];
3939

40-
/// `true` if this is an absolute path.
40+
/// Whether this is an absolute path.
4141
bool get isAbsolute => root != null;
4242

4343
factory ParsedPath.parse(String path, InternalStyle style) {

pkgs/path/lib/src/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ bool isNumeric(int char) => char ^ chars.zero <= 9;
1616
bool isDriveLetter(String path, int index) =>
1717
driveLetterEnd(path, index) != index;
1818

19-
/// Index after drive letter starting at [index], or [index] if none.path
19+
/// Index after drive letter starting at [index], or [index] if none.
2020
///
2121
/// The [path] is a URI-formed path.
2222
/// A valid drive letter must be followed by a colon and then either a `/`,

0 commit comments

Comments
 (0)