Skip to content

Commit 09b4ec7

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer: Fix 40 broken comment references
Change-Id: I91c6ae9473cc6cdde1b5131a349c2701e51a1aaf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/392800 Reviewed-by: Phil Quitslund <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent 6012588 commit 09b4ec7

25 files changed

+99
-91
lines changed

pkg/analyzer/lib/src/analysis_options/error/option_codes.g.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
// Instead modify 'pkg/analyzer/messages.yaml' and run
88
// 'dart run pkg/analyzer/tool/messages/generate.dart' to update.
99

10-
// We allow some snake_case and SCREAMING_SNAKE_CASE identifiers in generated
11-
// code, as they match names declared in the source configuration files.
12-
// ignore_for_file: constant_identifier_names
13-
1410
// While transitioning `HintCodes` to `WarningCodes`, we refer to deprecated
1511
// codes here.
1612
// ignore_for_file: deprecated_member_use_from_same_package
1713
//
1814
// Generated comments don't quite align with flutter style.
1915
// ignore_for_file: flutter_style_todos
2016

17+
/// @docImport 'package:analyzer/src/dart/error/syntactic_errors.g.dart';
18+
/// @docImport 'package:analyzer/src/task/inference_error.dart';
19+
library;
20+
2121
import "package:analyzer/error/error.dart";
2222

2323
class AnalysisOptionsErrorCode extends ErrorCode {

pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ class LibraryAnalyzer {
504504
verifier.generateDuplicateExportWarnings(errorReporter);
505505
verifier.generateDuplicateImportWarnings(errorReporter);
506506
verifier.generateDuplicateShownHiddenNameWarnings(errorReporter);
507-
verifier.generateUnusedImportHints(errorReporter);
507+
verifier.generateUnusedImportWarnings(errorReporter);
508508
verifier.generateUnusedShownNameHints(errorReporter);
509509
verifier.generateUnnecessaryImportHints(errorReporter);
510510
}

pkg/analyzer/lib/src/dart/analysis/library_context.dart

Lines changed: 3 additions & 0 deletions
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:analyzer/src/generated/engine.dart';
6+
library;
7+
58
import 'dart:collection';
69
import 'dart:typed_data';
710

pkg/analyzer/lib/src/dart/error/ffi_code.g.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
// Instead modify 'pkg/analyzer/messages.yaml' and run
88
// 'dart run pkg/analyzer/tool/messages/generate.dart' to update.
99

10-
// We allow some snake_case and SCREAMING_SNAKE_CASE identifiers in generated
11-
// code, as they match names declared in the source configuration files.
12-
// ignore_for_file: constant_identifier_names
13-
1410
// While transitioning `HintCodes` to `WarningCodes`, we refer to deprecated
1511
// codes here.
1612
// ignore_for_file: deprecated_member_use_from_same_package
1713
//
1814
// Generated comments don't quite align with flutter style.
1915
// ignore_for_file: flutter_style_todos
2016

17+
/// @docImport 'package:analyzer/src/dart/error/syntactic_errors.g.dart';
18+
/// @docImport 'package:analyzer/src/task/inference_error.dart';
19+
library;
20+
2121
import "package:analyzer/error/error.dart";
2222
import "package:analyzer/src/error/analyzer_error_code.dart";
2323

pkg/analyzer/lib/src/dart/error/hint_codes.g.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
// Instead modify 'pkg/analyzer/messages.yaml' and run
88
// 'dart run pkg/analyzer/tool/messages/generate.dart' to update.
99

10-
// We allow some snake_case and SCREAMING_SNAKE_CASE identifiers in generated
11-
// code, as they match names declared in the source configuration files.
12-
// ignore_for_file: constant_identifier_names
13-
1410
// While transitioning `HintCodes` to `WarningCodes`, we refer to deprecated
1511
// codes here.
1612
// ignore_for_file: deprecated_member_use_from_same_package
1713
//
1814
// Generated comments don't quite align with flutter style.
1915
// ignore_for_file: flutter_style_todos
2016

17+
/// @docImport 'package:analyzer/src/dart/error/syntactic_errors.g.dart';
18+
/// @docImport 'package:analyzer/src/task/inference_error.dart';
19+
library;
20+
2121
import "package:analyzer/error/error.dart";
2222
import "package:analyzer/src/error/analyzer_error_code.dart";
2323

pkg/analyzer/lib/src/dart/error/syntactic_errors.g.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
// Instead modify 'pkg/analyzer/messages.yaml' and run
88
// 'dart run pkg/analyzer/tool/messages/generate.dart' to update.
99

10-
// We allow some snake_case and SCREAMING_SNAKE_CASE identifiers in generated
11-
// code, as they match names declared in the source configuration files.
12-
// ignore_for_file: constant_identifier_names
13-
1410
// While transitioning `HintCodes` to `WarningCodes`, we refer to deprecated
1511
// codes here.
1612
// ignore_for_file: deprecated_member_use_from_same_package
1713
//
1814
// Generated comments don't quite align with flutter style.
1915
// ignore_for_file: flutter_style_todos
2016

17+
/// @docImport 'package:analyzer/src/dart/error/syntactic_errors.g.dart';
18+
/// @docImport 'package:analyzer/src/task/inference_error.dart';
19+
library;
20+
2121
import "package:analyzer/error/error.dart";
2222

2323
final fastaAnalyzerErrorCodes = <ErrorCode?>[

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,8 @@ class ExitDetector extends GeneralizingAstVisitor<bool> {
645645
@override
646646
bool visitYieldStatement(YieldStatement node) => _nodeExits(node.expression);
647647

648-
/// If the given [expression] has a known Boolean value, return the known
649-
/// value, otherwise return `null`.
648+
/// If the given [conditionExpression] has a known Boolean value, return the
649+
/// known value, otherwise return `null`.
650650
bool? _knownConditionValue(Expression conditionExpression) {
651651
// TODO(jwren): Do we want to take all constant expressions into account?
652652
if (conditionExpression is BooleanLiteral) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class NamespaceBuilder {
185185
}
186186

187187
/// Create a namespace representing the import namespace of the given
188-
/// [element].
188+
/// [importedLibrary].
189189
Namespace createImportNamespaceForDirective({
190190
required LibraryElement importedLibrary,
191191
required List<NamespaceCombinator> combinators,

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ class ThisLookup {
1414
assert(false, 'Do not construct instances of LexicalLookup');
1515
}
1616

17-
/// Attempts to resolve an identifier with name [id] via implicit `this.`,
18-
/// assuming we are trying to look up a getter. If a matching element is
19-
/// found, a [LexicalLookupResult] is returned. Otherwise `null` is returned.
17+
/// Attempts to resolve an identifier with name, `node.name`, via implicit
18+
/// `this.`, assuming we are trying to look up a getter.
19+
///
20+
/// If a matching element is found, a [LexicalLookupResult] is returned.
21+
/// Otherwise `null` is returned.
2022
static LexicalLookupResult? lookupGetter(
2123
ResolverVisitor resolver, SimpleIdentifier node) {
2224
var id = node.name;
@@ -55,9 +57,11 @@ class ThisLookup {
5557
}
5658
}
5759

58-
/// Attempts to resolve an identifier with name [id] via implicit `this.`,
59-
/// assuming we are trying to look up a setter. If a matching element is
60-
/// found, a [LexicalLookupResult] is returned. Otherwise `null` is returned.
60+
/// Attempts to resolve an identifier with name, `node.name`, via implicit
61+
/// `this.`, assuming we are trying to look up a setter.
62+
///
63+
/// If a matching element is found, a [LexicalLookupResult] is returned.
64+
/// Otherwise `null` is returned.
6165
static LexicalLookupResult? lookupSetter(
6266
ResolverVisitor resolver, SimpleIdentifier node) {
6367
var id = node.name;

pkg/analyzer/lib/src/dart/sdk/sdk.dart

Lines changed: 3 additions & 0 deletions
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:analyzer/src/context/builder.dart';
6+
library;
7+
58
import 'dart:collection';
69
import 'dart:io' as io;
710

0 commit comments

Comments
 (0)