Skip to content

Cannot link to operator[] #1285

Open
Open
@lrhn

Description

@lrhn

If I write [[]] it acts like a code quote, but it doesn't actually link to the operator [].

This is used an several places, e.g., https://api.dartlang.org/stable/1.20.1/dart-collection/LinkedHashMap/LinkedHashMap.html.

From testing, I can't refer to a type imported with a prefix. If I write [prefix.AClass] it does not link to that class.

Also, I can't find a good way to refer to the unary- operator. I tried [unary-] and it didn't link. Using [-] links to the binary minus operator.

Here's an example of things that could/should work: https://gist.github.com/lrhn/32617fc179ed1b4d53e443d56a21343b

(I'm not sure the [setter=] syntax needs to work, but it would be convenient and consistent that the actual name of the member can be used).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work ontype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions