Skip to content

Commit

Permalink
Stop supporting '[this]' as a comment reference.
Browse files Browse the repository at this point in the history
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 #3761
  • Loading branch information
srawlins committed Apr 30, 2024
1 parent d16bedc commit 9f465cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/src/model/container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ abstract class Container extends ModelElement
.addEntriesIfAbsent(modelElement.parameters.generateEntries());
}
}
referenceChildren['this'] = this;
return referenceChildren;
}();

Expand Down
3 changes: 0 additions & 3 deletions test/end2end/model_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2805,9 +2805,6 @@ void main() async {
doAwesomeStuff, 'BaseForDocComments.aNonDefaultConstructor'),
equals(MatchingLinkResult(aNonDefaultConstructor)));

expect(referenceLookup(doAwesomeStuff, 'this'),
equals(MatchingLinkResult(baseForDocComments)));

expect(referenceLookup(doAwesomeStuff, 'value'),
equals(MatchingLinkResult(doAwesomeStuffParam)));

Expand Down

0 comments on commit 9f465cf

Please sign in to comment.