Skip to content

Commit 49fc272

Browse files
authored
Remove "parsedConstructorHint" from "PrefixResultType" (#4104)
1 parent efff7c1 commit 49fc272

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/src/comment_references/parser.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ class CommentReferenceParser {
110110
if (prefixResult.type == _PrefixResultType.endOfFile) {
111111
return [];
112112
}
113-
if (prefixResult.type == _PrefixResultType.parsedConstructorHint) {
114-
children.add(prefixResult.node!);
115-
}
116113
// [_PrefixResultType.junk] and [_PrefixResultType.missing] we can skip.
117114

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

376372
/// The result of attempting to parse a prefix to a comment reference.

test/comment_referable/parser_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:test/test.dart';
77

88
void main() {
99
void expectParseEquivalent(String codeRef, List<String> parts,
10-
{bool constructorHint = false, bool callableHint = false}) {
10+
{bool callableHint = false}) {
1111
var result = CommentReferenceParser(codeRef).parse();
1212
var hasCallableHint =
1313
result.isNotEmpty && result.last is CallableHintEndNode;

0 commit comments

Comments
 (0)