You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing Comment in childEntries for some AnnotatedNodes #60423
Some time ago, I was working on #59724 and noticed something weird about extensions and typedefs not triggering comments suggestions. Today I found out what was actually wrong.
Although https://dart-review.googlesource.com/c/sdk/+/411380 makes some suggestions show up, it doesn't work well with PrefixedIdentifiers. The problem is that even though both are AnnotatedNodes, they never add the corresponding Comment on the childEntries.
See:
Variable:
Typedef:
This makes some completions work weirdly, see on classes:
On typedefs:
This is a problem because at DartCompletionManager.computeCandidateSuggestions we call CompilationUnitImpl.select, which uses AstNodeExtension.nodeCovering internally for identifying the node.
We should probably think of a smart test to guarantee that any new AnnotatedNode also contains Comment on the childEntries.
Activity
FMorschel commentedon Apr 1, 2025
Here is the CL for this https://dart-review.googlesource.com/c/sdk/+/419422
[DAS] Better docs auto-complete with extensions and typedefs