Skip to content

Dartdoc bracketed references don't work for inherited members #4114

@gspencergoog

Description

@gspencergoog

Description

Bracketed references in dartdoc comments don't get highlighted if the field referred to is a superclass parameter.

For instance, if I have:

/// The callback [TextButton.onPressed] will be called when the button is pressed.

Then the bracketed reference to TextButton.onPressed is not clickable, but:

/// The callback [ButtonStyleButton.onPressed] will be called when the button is pressed.

is clickable. ButtonStyleButton is the superclass for TextButton.

I think this is because the TextButton class inherits its attribute from the parent via the super.onPressed argument in the constructor, but I can't be sure.

Version info

  • Operating System and version:
    • Debian GNU/Linux rodete 5.17.11-1rodete2-amd64
  • VS Code version:
    • Version: 1.70.2
    • Commit: e4503b30fc78200f846c62cf8091b76ff5547662
    • Date: 2022-08-16T05:36:25.715Z
    • Electron: 18.3.5
    • Chromium: 100.0.4896.160
    • Node.js: 16.13.2
    • V8: 10.0.139.17-electron.0
    • OS: Linux x64 5.17.11-1rodete2-amd64
  • Dart extension version: v3.46.1
  • Flutter extension version: v3.46.0
  • Dart/Flutter SDK version:
    • [!] Flutter (Channel menu_bar_iv, 3.1.0-0.0.pre.2427, on Debian GNU/Linux rodete 5.17.11-1rodete2-amd64, locale en_US.UTF-8)
    • Flutter version 3.1.0-0.0.pre.2427 on channel menu_bar_iv at /usr/local/google/home/gspencer/code/flutter
    • ! Upstream repository git@github.com:gspencergoog/flutter.git is not a standard remote.
    • Set environment variable "FLUTTER_GIT_URL" to git@github.com:gspencergoog/flutter.git to dismiss this error.
    • Framework revision 0dab4324ab (2 hours ago), 2022-08-22 13:21:00 -0700
    • Engine revision 0d182ddb0d
    • Dart version 2.19.0 (build 2.19.0-122.0.dev)
    • DevTools version 2.16.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions