Skip to content

Commit 87f8016

Browse files
authored
Fix some broken comment references. (#9037)
1 parent 51c6bfd commit 87f8016

File tree

20 files changed

+50
-31
lines changed

20 files changed

+50
-31
lines changed

packages/devtools_app/lib/src/screens/performance/performance_controller.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
44

5+
/// @docImport 'tabbed_performance_view.dart';
6+
library;
7+
58
import 'dart:async';
69

710
import 'package:devtools_app_shared/service.dart';

packages/devtools_app/lib/src/screens/vm_developer/vm_service_private_extensions.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
// ignore_for_file: constant_identifier_names
66

7+
/// @docImport '../../shared/preferences/preferences.dart';
8+
library;
9+
710
import 'package:flutter/widgets.dart';
811
import 'package:vm_service/vm_service.dart';
912

packages/devtools_app/lib/src/service/service_extension_widgets.dart

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
44

5+
/// @docImport 'package:vm_service/vm_service.dart';
6+
library;
7+
58
import 'dart:async';
69
import 'dart:math' as math;
710

@@ -408,7 +411,7 @@ class StructuredErrorsToggle extends StatelessWidget {
408411

409412
/// [Switch] that stays synced with the value of a service extension.
410413
///
411-
/// Service extensions can be found in [service_extensions.dart].
414+
/// Service extensions can be found in `service_extensions.dart`.
412415
class _ServiceExtensionToggle extends ServiceExtensionWidget {
413416
const _ServiceExtensionToggle({
414417
required this.service,
@@ -492,7 +495,7 @@ class _ServiceExtensionToggleState extends State<_ServiceExtensionToggle>
492495

493496
/// [Checkbox] that stays synced with the value of a service extension.
494497
///
495-
/// Service extensions can be found in [service_extensions.dart].
498+
/// Service extensions can be found in `service_extensions.dart`.
496499
class ServiceExtensionCheckbox extends ServiceExtensionWidget {
497500
ServiceExtensionCheckbox({
498501
super.key,
@@ -927,12 +930,12 @@ abstract class ServiceExtensionWidget extends StatefulWidget {
927930

928931
/// The text to show when the action is completed.
929932
///
930-
/// This will be shown in a [SnackBar], replacing the [inProgressText].
933+
/// This will be shown in a [SnackBar], replacing the `inProgressText`.
931934
final String? completedText;
932935

933936
/// Callback that describes any error that occurs.
934937
///
935-
/// This will replace the [inProgressText] in a [SnackBar].
938+
/// This will replace the `inProgressText` in a [SnackBar].
936939
final String Function(Object? error) describeError;
937940

938941
@override

packages/devtools_app/lib/src/service/vm_service_wrapper.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
// Code needs to match API from VmService.
66
// ignore_for_file: avoid-dynamic
77

8+
/// @docImport '../shared/preferences/preferences.dart';
9+
library;
10+
811
import 'dart:async';
912
import 'dart:convert';
1013

packages/devtools_app/lib/src/shared/analytics/analytics_common.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
// Code in this file should be able to be imported by both web and dart:io
66
// dependent libraries.
77

8+
/// @docImport '_analytics_web.dart';
9+
library;
10+
811
import 'package:collection/collection.dart';
912
import 'package:flutter/widgets.dart';
1013
import 'package:stack_trace/stack_trace.dart' as stack_trace;
@@ -35,10 +38,10 @@ const ga4ParamValueCharacterLimit = 100;
3538

3639
/// Returns a stack trace as a [Map] for consumption by GA4 analytics.
3740
///
38-
/// The returned [Map] is indexed into [stackTraceChunksLimit] chunks, where
41+
/// The returned [Map] is indexed into `stackTraceChunksLimit` chunks, where
3942
/// each chunk is a substring of length [ga4ParamValueCharacterLimit]. Each
4043
/// substring contains information for ~1 stack frame, so including
41-
/// [stackTraceChunksLimit] chunks should give us enough information to
44+
/// `stackTraceChunksLimit` chunks should give us enough information to
4245
/// understand the source of the exception.
4346
///
4447
/// This method uses a heuristic to attempt to include a minimal amount of

packages/devtools_app/lib/src/shared/analytics/constants.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
44

5+
/// @docImport '../../extensions/extension_screen_controls.dart';
6+
library;
7+
58
import 'package:devtools_shared/devtools_extensions.dart';
69

710
import '../framework/screen.dart';

packages/devtools_app/lib/src/shared/analytics/constants/_extension_constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ enum DevToolsExtensionEvents {
2020
/// an extension has been enabled.
2121
embeddedExtension;
2222

23-
/// Event sent via [ga.screen] when an extension screen is opened.
23+
/// Event sent via `ga.screen` when an extension screen is opened.
2424
static String extensionScreenName(DevToolsExtensionConfig ext) =>
2525
'extension-${ext.analyticsSafeName}';
2626

packages/devtools_app/lib/src/shared/analytics/metrics.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
44

5+
/// @docImport '../../screens/inspector/inspector_tree_controller.dart';
6+
/// @docImport '../../screens/performance/panes/flutter_frames/flutter_frame_model.dart';
7+
library;
8+
59
import 'analytics_common.dart';
610

711
class MemoryScreenMetrics extends ScreenAnalyticsMetrics {

packages/devtools_app/lib/src/shared/charts/flame_chart.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ class FlameChartRow<T extends FlameChartDataMixin<T>> {
10031003

10041004
final int index;
10051005

1006-
/// Adds a node to [nodes] and assigns [this] to the nodes [row] property.
1006+
/// Adds a node to [nodes] and assigns `this` to the node's `row` property.
10071007
///
10081008
/// If [index] is specified and in range of the list, [node] will be added at
10091009
/// [index]. Otherwise, [node] will be added to the end of [nodes]

packages/devtools_app/lib/src/shared/charts/treemap.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ class TreemapNode extends TreeNode<TreemapNode> {
755755
return '$plusSign${prettyPrintBytes(byteSize, includeUnit: true)}';
756756
}
757757

758-
/// Returns a list of [TreemapNode] in the path from root node to [this].
758+
/// Returns a list of [TreemapNode] in the path from root node to `this`.
759759
List<TreemapNode> pathFromRoot() {
760760
TreemapNode? node = this;
761761
final path = <TreemapNode>[];

0 commit comments

Comments
 (0)