Skip to content

Mustachio: fix getter override order, and bounds bug #2523

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 2 commits into from
Feb 16, 2021

Conversation

srawlins
Copy link
Member

@srawlins srawlins commented Feb 16, 2021

There aren't any new test cases, but the existing tests would fail with the changes to foo.dart, without the other changes to the codegen.

The main fix here is to apply local getters after inherited getters, in the property map, so that they override any inherited getters.

But in creating the test situation in foo.dart, I saw we had a bug with type parameter bounds as well. This is important for real cases like ClassTemplateData<T extends Class> extends TemplateData<T>.

@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Feb 16, 2021
@srawlins srawlins requested a review from jcollins-g February 16, 2021 17:34
@srawlins
Copy link
Member Author

Single failure is... unrelated? Can't tell what went wrong.

@jcollins-g
Copy link
Contributor

Yes that is... very strange looking. I would have expected the vm-service flag to cause problems for all the tests, not just one of them. I have pressed the retry everything button to see if it can be reproduced.

@coveralls
Copy link

coveralls commented Feb 16, 2021

Coverage Status

Coverage remained the same at 91.632% when pulling adc37e9 on srawlins:mustachio-n into ed2d52b on dart-lang:master.

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.

Maybe a different problem, but should we consider expanding timeouts here: https://github.com/dart-lang/dartdoc/pull/2523/checks?check_run_id=1912657126? Might help make tests less flaky on CI.

@srawlins
Copy link
Member Author

Yay tests pass.

@srawlins srawlins merged commit 527073f into dart-lang:master Feb 16, 2021
@srawlins srawlins deleted the mustachio-n branch February 16, 2021 19:23
srawlins added a commit to srawlins/dartdoc that referenced this pull request Mar 9, 2021
Mustachio: fix getter override order, and bounds bug

Fix indentation in category.html (dart-lang#2521)

WIP: flip to mustachio
srawlins added a commit to srawlins/dartdoc that referenced this pull request Mar 11, 2021
Mustachio: fix getter override order, and bounds bug

Fix indentation in category.html (dart-lang#2521)

WIP: flip to mustachio
srawlins added a commit to srawlins/dartdoc that referenced this pull request Mar 12, 2021
Mustachio: fix getter override order, and bounds bug

Fix indentation in category.html (dart-lang#2521)

WIP: flip to mustachio
srawlins added a commit to srawlins/dartdoc that referenced this pull request Mar 12, 2021
Mustachio: fix getter override order, and bounds bug

Fix indentation in category.html (dart-lang#2521)

WIP: flip to mustachio
srawlins added a commit to srawlins/dartdoc that referenced this pull request Mar 17, 2021
Mustachio: fix getter override order, and bounds bug

Fix indentation in category.html (dart-lang#2521)

WIP: flip to mustachio
srawlins added a commit to srawlins/dartdoc that referenced this pull request Mar 18, 2021
Mustachio: fix getter override order, and bounds bug

Fix indentation in category.html (dart-lang#2521)

WIP: flip to mustachio
srawlins added a commit to srawlins/dartdoc that referenced this pull request Mar 28, 2021
Mustachio: fix getter override order, and bounds bug

Fix indentation in category.html (dart-lang#2521)

WIP: flip to mustachio
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