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
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.onPressedis not clickable, but:/// The callback [ButtonStyleButton.onPressed] will be called when the button is pressed.is clickable.
ButtonStyleButtonis the superclass forTextButton.I think this is because the
TextButtonclass inherits its attribute from the parent via thesuper.onPressedargument in the constructor, but I can't be sure.Version info