dashing icon indicating copy to clipboard operation
dashing copied to clipboard

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

Open Hixie opened this issue 2 years ago • 0 comments

We received the following issue (https://github.com/flutter/flutter/issues/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?

Hixie avatar Oct 31 '23 22:10 Hixie