Skip to content

Make modelType/ElementType usage more consistent #2573

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

Merged
merged 10 commits into from
Mar 15, 2021

Conversation

jcollins-g
Copy link
Contributor

@jcollins-g jcollins-g commented Mar 12, 2021

Fixes #2226.

BREAKING CHANGE : this removes the linkedReturnType accessor which previously accessed not only function return types, but types of constants and other non-callables. This cleans things up so that if you're looking for a return type, you ask for one, and if you don't want a return type, you don't ask for one. A side effect is that some of the errant span classes claiming return types were parameters are now fixed as well.

With this cleanup it should be possible to deconstruct ModelElement.modelType and implement the relevant pieces in subclasses.

@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Mar 12, 2021
@coveralls
Copy link

coveralls commented Mar 12, 2021

Coverage Status

Coverage decreased (-0.1%) to 91.677% when pulling af002a1 on jcollins-g:consistent-element-type into 2a97d3c on dart-lang:master.

@jcollins-g jcollins-g requested a review from srawlins March 13, 2021 00:56
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 nice; lots of deleted code; consistent changes to templates; nice tests.

@jcollins-g jcollins-g merged commit f049730 into dart-lang:master Mar 15, 2021
@jcollins-g jcollins-g deleted the consistent-element-type branch March 15, 2021 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setter-only combos have wrong span class for linkedReturnType
3 participants