Skip to content

Commit 50c1d9e

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer: Fix remaining comment reference issues
Change-Id: I345c8d25e9f27dedffc596a2040cd89e059eb46e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/408880 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent 014cda4 commit 50c1d9e

19 files changed

+59
-62
lines changed

pkg/analyzer/lib/dart/analysis/results.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ abstract class FileResult implements SomeFileResult, AnalysisResult {
105105
/// Whether the file is a library.
106106
///
107107
/// A file can't be both a library and a part, so when this getter returns
108-
/// `true`, the getters [isPart] and [isMacroPart] return `false`.
108+
/// `true`, the getter [isPart] returns `false`.
109109
bool get isLibrary;
110110

111111
/// Whether the file is a part.

pkg/analyzer/lib/src/dart/resolver/resolution_result.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import 'package:analyzer/src/dart/element/type.dart';
88

99
/// The result of attempting to resolve an identifier to elements.
1010
class ResolutionResult extends SimpleResolutionResult {
11-
/// If `true`, then the [getter] is `null`, and this is an error that has
11+
/// If `true`, then the [getter2] is `null`, and this is an error that has
1212
/// not yet been reported, and the client should report it.
1313
///
14-
/// If `false`, then the [getter] is valid. Usually this means that the
15-
/// correct target has been found. But the [getter] still might be `null`,
14+
/// If `false`, then the [getter2] is valid. Usually this means that the
15+
/// correct target has been found. But the [getter2] still might be `null`,
1616
/// when there was an error, and it has already been reported (e.g. when
1717
/// ambiguous extension); or when `null` is the only possible result (e.g.
1818
/// when `dynamicTarget.foo`, or `functionTyped.call`).
@@ -21,11 +21,11 @@ class ResolutionResult extends SimpleResolutionResult {
2121
/// If `true`, the result type must be invalid.
2222
final bool isGetterInvalid;
2323

24-
/// If `true`, then the [setter] is `null`, and this is an error that has
24+
/// If `true`, then the [setter2] is `null`, and this is an error that has
2525
/// not yet been reported, and the client should report it.
2626
///
27-
/// If `false`, then the [setter] is valid. Usually this means that the
28-
/// correct target has been found. But the [setter] still might be `null`,
27+
/// If `false`, then the [setter2] is valid. Usually this means that the
28+
/// correct target has been found. But the [setter2] still might be `null`,
2929
/// when there was an error, and it has already been reported (e.g. when
3030
/// ambiguous extension); or when `null` is the only possible result (e.g.
3131
/// when `dynamicTarget.foo`).

pkg/analyzer/lib/src/error/unused_local_elements_verifier.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,18 +1111,18 @@ class UnusedLocalElementsVerifier extends RecursiveAstVisitor<void> {
11111111
}
11121112
}
11131113

1114-
/// A container with sets of used [Element]s.
1114+
/// A container with sets of used [Element2]s.
11151115
/// All these elements are defined in a single compilation unit or a library.
11161116
class UsedLocalElements {
11171117
/// Resolved, locally defined elements that are used or potentially can be
11181118
/// used.
11191119
final HashSet<Element2> elements = HashSet<Element2>();
11201120

1121-
/// [LocalVariableElement]s that represent exceptions in [CatchClause]s.
1121+
/// [LocalVariableElement2]s that represent exceptions in [CatchClause]s.
11221122
final HashSet<LocalVariableElement2> catchExceptionElements =
11231123
HashSet<LocalVariableElement2>();
11241124

1125-
/// [LocalVariableElement]s that represent stack traces in [CatchClause]s.
1125+
/// [LocalVariableElement2]s that represent stack traces in [CatchClause]s.
11261126
final HashSet<LocalVariableElement2> catchStackTraceElements =
11271127
HashSet<LocalVariableElement2>();
11281128

pkg/analyzer/lib/src/test_utilities/mock_sdk.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ final List<MockSdkLibrary> _LIBRARIES = [
16681668
_LIB_WASM,
16691669
];
16701670

1671-
/// Create a reduced approximation of Dart SDK in the [path].
1671+
/// Creates a reduced approximation of Dart SDK in the [root].
16721672
///
16731673
/// It has enough libraries to run analyzer and analysis server tests,
16741674
/// but some libraries, classes, and methods are missing.

pkg/analyzer/lib/src/utilities/cancellation.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ class NotCancelableToken extends CancellationToken {
3939
/// A cancellable wrapper over another cancellation token.
4040
///
4141
/// This token will be considered cancelled if either it is itself cancelled,
42-
/// or if [child] is cancelled.
42+
/// or if [_child] is cancelled.
4343
///
44-
/// Cancelling this token will also cancel [child] if it is a cancelable
44+
/// Cancelling this token will also cancel [_child] if it is a cancelable
4545
/// token.
4646
class _WrappedCancelableToken extends CancelableToken {
4747
final CancellationToken _child;

pkg/analyzer/lib/src/utilities/completion_matcher.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
/// @docImport 'package:analysis_server/src/services/completion/dart/completion_manager.dart';
6+
library;
7+
58
/// A matcher that is used in completion to filter out suggestions. The criteria
69
/// used to filter is specified in the implementations of the matchers.
710
abstract class CompletionMatcher {
@@ -12,7 +15,7 @@ abstract class CompletionMatcher {
1215
}
1316

1417
/// A [NoPrefixMatcher] will be used when there is no prefix specified in the
15-
/// [CompletionRequest].
18+
/// [DartCompletionRequest].
1619
final class NoPrefixMatcher extends CompletionMatcher {
1720
@override
1821
double score(String candidate) {

pkg/analyzer/lib/src/utilities/extensions/flutter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ extension AstNodeExtension on AstNode? {
126126
return null;
127127
}
128128

129-
/// Whether the given [node] is the Flutter class `Widget`, or its subtype.
129+
/// Whether this [AstNode] is the Flutter class `Widget`, or its subtype.
130130
bool get isWidgetExpression {
131131
return switch (this) {
132132
null => false,

pkg/analyzer/lib/src/wolf/ir/scope_analyzer.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ base class ScopeAnalyzerEventListener {
5858
/// This call back is invoked before more specific callbacks like [onAlloc].
5959
void onInstruction(int address) {}
6060

61-
/// Called when [scopeAnalyzer] is about to process a "begin" instruction.
61+
/// Called when [_scopeAnalyzer] is about to process a "begin" instruction.
6262
void onPushScope({required int address, required int scope}) {}
6363

6464
/// Records that the value of a state variable was potentially affected.
@@ -110,7 +110,7 @@ class Scopes {
110110
/// Computes the innermost ancestor of [scope] (or [scope] itself), whose
111111
/// [endAddress] is greater than or equal to [address].
112112
///
113-
/// This method may be used in conjunction with [lastScopeBefore] to find the
113+
/// This method may be used in conjunction with `lastScopeBefore` to find the
114114
/// innermost scope containing an instruction, according to the formula:
115115
///
116116
/// var scope = ancestorContainingAddress(

pkg/analyzer/lib/src/workspace/blaze_watcher.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class BlazeFilePoller {
9292
/// Tries polling all the possible paths.
9393
///
9494
/// Will set [_validPath] and return its modified time if a file is found.
95-
/// Returns [null] if nothing is found.
95+
/// Returns `null` if nothing is found.
9696
FileInfo? _pollAll() {
9797
assert(_validPath == null);
9898
for (var path in _candidates) {
@@ -267,9 +267,7 @@ class BlazeFileWatcherIsolate {
267267
/// instantiating [BlazeFileWatcherService] is very cheap.
268268
///
269269
/// The protocol when communicating with the isolate:
270-
/// 1. The watcher isolate sends to the main one a [BlazeWatcherIsolateStarted]
271-
/// and expects a [BlazeWatcherInitializeIsolate] to be sent from the main
272-
/// isolate as a reply.
270+
/// 1. The watcher isolate sends to the main one a [BlazeWatcherIsolateStarted].
273271
/// 2. The main isolate can request to start watching a file by sending
274272
/// [BlazeWatcherStartWatching] request. There is no response expected.
275273
/// 3. The watcher isolate will send a [BlazeWatcherEvents] notification when

pkg/analyzer/lib/src/workspace/pub.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ class PackageConfigFileUriResolver extends ResourceUriResolver {
9696
}
9797
}
9898

99-
/// The [UriResolver] that can resolve `package` URIs in
100-
/// [PackageBuildWorkspace].
99+
/// The [UriResolver] that can resolve `package` URIs in a
100+
/// [PackageConfigWorkspace].
101101
class PackageConfigPackageUriResolver extends UriResolver {
102102
final PackageConfigWorkspace _workspace;
103103
final UriResolver _normalUriResolver;

0 commit comments

Comments
 (0)