Skip to content

Commit 8de9fa9

Browse files
authored
Remove doc comment references to GTK C types (flutter#192977)
`GObject`, `GtkWidget`, `GdkVisual` and similar are GTK C types, not Dart elements, so the references in square brackets never resolved. Written as plain text, matching the class doc comments directly above them. These classes are private and not exported, so the generated documentation is unaffected. Removes 7 `comment_references` reports. Towards flutter#192870
1 parent 3ea50fa commit 8de9fa9

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎packages/flutter/lib/src/widgets/_window_linux.dart‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,10 +1062,10 @@ String? _nativeToString(ffi.Pointer<ffi.Uint8> value) {
10621062

10631063
/// Wraps GObject.
10641064
class _GObject {
1065-
/// Creates a wrapper to an existing [GObject] in [instance].
1065+
/// Creates a wrapper to an existing GObject in [instance].
10661066
const _GObject(this.instance);
10671067

1068-
/// The pointer to the underlying [GObject].
1068+
/// The pointer to the underlying GObject.
10691069
final ffi.Pointer<ffi.NativeType> instance;
10701070

10711071
/// Drop reference to this object.
@@ -1079,7 +1079,7 @@ class _GObject {
10791079

10801080
/// Wraps GtkContainer.
10811081
class _GtkContainer extends _GtkWidget {
1082-
/// Creates a wrapper to an existing [GtkContainer] in [instance].
1082+
/// Creates a wrapper to an existing GtkContainer in [instance].
10831083
const _GtkContainer(super.instance);
10841084

10851085
/// Adds [child] widget to this container.
@@ -1098,7 +1098,7 @@ class _GtkContainer extends _GtkWidget {
10981098

10991099
/// Wraps GtkWidget.
11001100
class _GtkWidget extends _GObject {
1101-
/// Creates a wrapper to an existing [GtkWidget] in [instance].
1101+
/// Creates a wrapper to an existing GtkWidget in [instance].
11021102
const _GtkWidget(super.instance);
11031103

11041104
/// Creates the GDK resources associated with a widget.
@@ -1224,13 +1224,13 @@ class _GtkWidget extends _GObject {
12241224

12251225
/// Wraps GdkVisual.
12261226
class _GdkVisual extends _GObject {
1227-
/// Creates a wrapper to an existing [GdkVisual] in [instance].
1227+
/// Creates a wrapper to an existing GdkVisual in [instance].
12281228
const _GdkVisual(super.instance);
12291229
}
12301230

12311231
/// Wraps GdkScreen.
12321232
class _GdkScreen extends _GObject {
1233-
/// Creates a wrapper to an existing [GdkScreen] in [instance].
1233+
/// Creates a wrapper to an existing GdkScreen in [instance].
12341234
const _GdkScreen(super.instance);
12351235

12361236
/// Gets the visual that supports translucent windows, or null if this screen
@@ -1261,7 +1261,7 @@ class _GdkScreen extends _GObject {
12611261

12621262
/// Wraps GdkWindow.
12631263
class _GdkWindow extends _GObject {
1264-
/// Creates a wrapper to an existing [GdkWindow] in [instance].
1264+
/// Creates a wrapper to an existing GdkWindow in [instance].
12651265
const _GdkWindow(super.instance);
12661266

12671267
/// Gets the window state.

0 commit comments

Comments
 (0)