Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a reexport case for comment reference linking to extension methods #3393

Merged

Conversation

jcollins-g
Copy link
Contributor

@jcollins-g jcollins-g commented Apr 21, 2023

Fixes #3325.

Also introduces a new test helper for reflective tests that should make it easier to test canonicalization edge cases. There were some shortcuts in the code here that I do not think actually needed to be there given the current implementation -- they may have been parts of older extension method code that missed a cleanup pass.

Copy link
Member

@srawlins srawlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool, cool test setup

@@ -11,6 +11,16 @@ import 'package:meta/meta.dart';
import 'src/test_descriptor_utils.dart' as d;
import 'src/utils.dart';

/// Exception thrown for invalid use of [DartdocTestBase]'s api/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should that end with a period?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

@jcollins-g jcollins-g merged commit f92ae00 into dart-lang:master Apr 24, 2023
@jcollins-g jcollins-g deleted the canonicalization-problem-reset branch April 24, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

canonicalization is sometimes failing to return any results for links to extension methods
2 participants