Skip to content

Rank parent class method higher than its overrides in search suggestions #1308

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

Conversation

astashov
Copy link
Contributor

We do that by saving overriddenDepth to index.json (which is just
how many overridden elements in the inheritance chain that element has),
and then reducing weight of elements in the suggestions according to
overriddenDepth.

Also, fixed grind update-test-package-docs, it didn't know where to
find examples for @examples directives.

Fixes #896

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Dec 27, 2016
We do that by saving `overriddenDepth` to index.json (which is just
how many overridden elements in the inheritance chain that element has),
and then reducing weight of elements in the suggestions according to
`overriddenDepth`.

Also, fixed `grind update-test-package-docs`, it didn't know where to
find examples for `@examples` directives.

Fixes dart-lang#896
@astashov astashov force-pushed the rank-base-classes-higher-in-suggestions branch from 6241b0b to 7fb34c8 Compare December 27, 2016 05:06
@devoncarew
Copy link
Member

Thanks! Looks great.

@devoncarew devoncarew merged commit 61797bc into dart-lang:master Dec 27, 2016
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.

rank parent class method higher than its overrides
3 participants