Skip to content

Commit ce78520

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 6b2ee57 commit ce78520

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
@@ -2742,9 +2742,6 @@ void main() async {
27422742
doAwesomeStuff, 'BaseForDocComments.aNonDefaultConstructor'),
27432743
equals(MatchingLinkResult(aNonDefaultConstructor)));
27442744

2745-
expect(referenceLookup(doAwesomeStuff, 'this'),
2746-
equals(MatchingLinkResult(baseForDocComments)));
2747-
27482745
expect(referenceLookup(doAwesomeStuff, 'value'),
27492746
equals(MatchingLinkResult(doAwesomeStuffParam)));
27502747

0 commit comments

Comments
 (0)