Skip to content

Cosmetic cleanups for type parameters #1558

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 3 commits into from
Dec 6, 2017
Merged

Cosmetic cleanups for type parameters #1558

merged 3 commits into from
Dec 6, 2017

Conversation

jcollins-g
Copy link
Contributor

@jcollins-g jcollins-g commented Dec 5, 2017

Now that dartdoc gets these right, listing and linking them consistently in a few more places seems like the right thing to do. Additionally, insure that the correct span class is in place for type parameters even where they're embedded as part of another name.

This reveals a more general problem that we're mixing assembling complex things likes name + generic types + parameters via templates and via method calls, but IMO that's a refactor for a different day.

We can now link the bound classes in navigation when the user is viewing the class page.
Compare page for LinkedListEntry, old:
old-lle

New:
new-lle

The overall appearance change is subtle, just making type parameters the same throughout as other parameters to things.

Compare page for DoubleLinkedQueue, old:
old-double-linked-queue

New:
new-double-linked-queue

And finally, we have type parameters with bindings on library pages. This is more consistent with how top level functions are displayed in library pages (we show their parameters).

Compare dart:collection's page, old:

old-collection

New:

new-collection

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Dec 5, 2017
jcollins-g added a commit that referenced this pull request Dec 5, 2017
@jcollins-g jcollins-g mentioned this pull request Dec 5, 2017
@jcollins-g jcollins-g requested a review from pq December 6, 2017 17:31
Copy link
Member

@pq pq left a comment

Choose a reason for hiding this comment

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

Nice!

@jcollins-g jcollins-g merged commit f43815c into master Dec 6, 2017
jcollins-g added a commit that referenced this pull request Dec 7, 2017
* Upgrade to 0.15.0

* One more change..

* Fine-tune changelog and assume #1558 will make it

* Changelog tweak to move breaking changes to the top
@jcollins-g jcollins-g deleted the types-in-classes branch December 7, 2017 17:59
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.

4 participants