Skip to content

Members of top-level classes in Flutter's documentation don't get indexed correctly #66

@Hixie

Description

@Hixie

We received the following issue (flutter/flutter#47553):

Flutter's Dash docset does not properly index members of top-level elements (classes, enums).

To demonstrate, we can look at how Dash indexes dart:core through its native Dartdoc support.

I bring up Dash, type RegExp., and see that the class and its members are enumerated:

Screen Shot 2019-12-20 at 2 06 54 PM

Now, the same with the Flutter docset (which also indexes RegExp):

Screen Shot 2019-12-20 at 2 08 12 PM

No members found.

But the type is indexed, here's what we see when we remove the trailing .:

Screen Shot 2019-12-20 at 2 09 52 PM

Class and constructor descriptions.

We aren't seeing the members because Flutter's SQLite index is malformed. Instead of including a fully-qualified name of each member, it includes a simple identifier.

Compare:

Screen Shot 2019-12-20 at 2 14 45 PM

with Dash's native dartdoc support:

Screen Shot 2019-12-20 at 2 12 37 PM

We're not sure whether we're holding dashing incorrectly or if it's something dashing doesn't support. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions