Skip to content

Some Operator References in Doc Comments #60948

Open
@RohitSaily

Description

@RohitSaily

I seem to be able to reference a lot of operators such as Object.== or int.+ in doc comments and they work just fine, the appropriate implementation is linked to. However, references to [] or []= are not recognized in VSCode eg List.[] or List.[]=. I expected it to work for Set, Map, or any type which defines them.

Also related, I have had a case where I wanted to use != and have it reference to the corresponding == because it was just more concise eg /// Throws error if [a] [CustomValueType.!=] [b]. I find it useful to concisely emphasize that it is an overridden comparison instead of having additional wording just to remind the reader/myself of that

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.dart-cli-doc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions