Skip to content

Extension methods should appear on extended type #2073

Closed
@Hixie

Description

@Hixie

It would be neat if specialized extensions appeared on the extended type as well. For example, consider dart:ffi's Pointer:

https://api.dartlang.org/stable/2.6.1/dart-ffi/Pointer-class.html

It doesn't list any extensions, but it would be useful for it to explicitly list DoublePointer et al. Currently there doesn't seem to be any way to discover those extensions.

In addition, it would be even better if it could actually list the extension members themselves. For example, Pointer could include the various value, operator [], etc, members that are defined on each extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions