Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions lib/src/comment_references/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ class CommentReferenceParser {
if (prefixResult.type == _PrefixResultType.endOfFile) {
return [];
}
if (prefixResult.type == _PrefixResultType.parsedConstructorHint) {
children.add(prefixResult.node!);
}
// [_PrefixResultType.junk] and [_PrefixResultType.missing] we can skip.

// <commentReference>
Expand Down Expand Up @@ -370,7 +367,6 @@ enum _PrefixResultType {
endOfFile, // Found end of file instead of a prefix.
junk, // Found some recognized junk that can be ignored.
missing, // There is no prefix here.
parsedConstructorHint, // Parsed a [ConstructorHintStartNode].
}

/// The result of attempting to parse a prefix to a comment reference.
Expand Down
2 changes: 1 addition & 1 deletion test/comment_referable/parser_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:test/test.dart';

void main() {
void expectParseEquivalent(String codeRef, List<String> parts,
{bool constructorHint = false, bool callableHint = false}) {
{bool callableHint = false}) {
var result = CommentReferenceParser(codeRef).parse();
var hasCallableHint =
result.isNotEmpty && result.last is CallableHintEndNode;
Expand Down
Loading