Skip to content

Commit cb826e2

Browse files
committed
review comments
1 parent b57c778 commit cb826e2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/src/comment_references/parser.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CommentReferenceParser {
4343
if (prefixResult.type == _PrefixResultType.parsedConstructorHint) {
4444
children.add(prefixResult.node);
4545
}
46-
// junk / missing we can skip.
46+
// [_PrefixResultType.junk] and [_PrefixResultType.missing] we can skip.
4747

4848
// <commentReference>
4949
while (!_atEnd) {
@@ -74,7 +74,7 @@ class CommentReferenceParser {
7474
children.add(suffixResult.node);
7575
}
7676

77-
// missing or junk we can skip.
77+
// [_SuffixResultType.junk] or [_SuffixResultType.missing] we can skip.
7878
return children;
7979
}
8080

@@ -176,7 +176,6 @@ class CommentReferenceParser {
176176
return _SuffixParseResult.junk;
177177
}
178178

179-
// TODO(jcollins-g): implement junk suffixes if necessary
180179
return _SuffixParseResult.notSuffix;
181180
}
182181

@@ -219,9 +218,9 @@ class CommentReferenceParser {
219218
return;
220219
}
221220

222-
/// Returns true if we started with startChar and ended with endChar
221+
/// Returns `true` if we started with [startChar] and ended with [endChar]
223222
/// with a matching number of braces.
224-
/// Returns _index to start if returning false.
223+
/// Restores [_index] to state when called if returning `false`.
225224
bool _matchBraces(int startChar, int endChar) {
226225
var braceCount = 0;
227226
if (_thisChar != startChar) return false;

0 commit comments

Comments
 (0)