Skip to content

[analysis_server] HoverInformation.containingClassDescription usage #60864

Closed
@kallentu

Description

@kallentu

Brian and I have been discussing adding a Declared in: line to the hovers for dot shorthands in this CL: https://dart-review.googlesource.com/c/sdk/+/431944

We noticed that HoverInformation.containingClassDescription contains the information we would want, and it seems to be populated here when we find an ExecutableElement with the given node.

However, we don't seem to use it in the handler to add to the hover content, even though we compute the information.

Is there a historical reason for this? Was it too noisy?
Would it be reasonable add it to the hover now?
@DanTup do you have any insight on this?

cc. @bwilkerson @DanTup

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-hoverIssues related to hovers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions