Skip to content

Introduce TemplateDataWithLibrary and TemplateDataWithContainer. #2525

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 1 commit into from
Feb 22, 2021

Conversation

srawlins
Copy link
Member

These two interfaces are necessary in order to render certain TemplateData
subtypes into _sidebar_for_library.html and _sidebar_for_container.html,
respectively.

Since _sidebar_for_library.html references {{#library}}, the static type
rendered into this template needs a library getter. Same for the other
sidebar.

Additionally, _sidebar_for_container.html accesses hasPublicConstructors and
publicConstructorsSorted on Container, so that type needs those getters.

These two interfaces are necessary in order to render certain TemplateData
subtypes into _sidebar_for_library.html and _sidebar_for_container.html,
respectively.

Since _sidebar_for_library.html references `{{#library}}`, the static type
rendered into this template needs a `library` getter. Same for the other
sidebar.

Additionally, _sidebar_for_container.html accesses `hasPublicConstructors` and
`publicConstructorsSorted` on Container, so that type needs those getters.
@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Feb 18, 2021
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 91.597% when pulling 764cddc on srawlins:types-for-templates into d3ec290 on dart-lang:master.

@srawlins srawlins requested a review from jcollins-g February 18, 2021 04:09
Copy link
Contributor

@jcollins-g jcollins-g left a comment

Choose a reason for hiding this comment

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

Ah yes. Types are a thing, and mirrors are much more forgiving here.

@srawlins
Copy link
Member Author

Hahaha yes. Alas.

@srawlins srawlins merged commit 951bfc2 into dart-lang:master Feb 22, 2021
@srawlins srawlins deleted the types-for-templates branch February 22, 2021 19:48
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.

3 participants