Skip to content

Commit 4eada5b

Browse files
committed
Stop supporting '[this]' as a comment reference.
The analyzer does not support it and does not intend to, so this change aligns with that effort. It makes analyzing the gap between analyzer and dartdoc easier as well. Fixes dart-lang#3761
1 parent 24658cc commit 4eada5b

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lib/src/model/container.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ abstract class Container extends ModelElement
242242
.addEntriesIfAbsent(modelElement.parameters.generateEntries());
243243
}
244244
}
245-
referenceChildren['this'] = this;
246245
return referenceChildren;
247246
}();
248247

test/end2end/model_test.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2805,9 +2805,6 @@ void main() async {
28052805
doAwesomeStuff, 'BaseForDocComments.aNonDefaultConstructor'),
28062806
equals(MatchingLinkResult(aNonDefaultConstructor)));
28072807

2808-
expect(referenceLookup(doAwesomeStuff, 'this'),
2809-
equals(MatchingLinkResult(baseForDocComments)));
2810-
28112808
expect(referenceLookup(doAwesomeStuff, 'value'),
28122809
equals(MatchingLinkResult(doAwesomeStuffParam)));
28132810

0 commit comments

Comments
 (0)