Skip to content

Commit ad7b242

Browse files
scheglovCommit Queue
authored andcommitted
Remove analyzer_use_new_elements lint.
Change-Id: I32370c4c1092f945d2fc079ad92dff3b176c17e0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426980 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Paul Berry <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent c1366a4 commit ad7b242

File tree

5 files changed

+2
-223
lines changed

5 files changed

+2
-223
lines changed

pkg/analysis_server/lib/src/services/correction/error_fix_status.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,8 +1869,6 @@ LintCode.analyzer_public_api_exports_non_public_name:
18691869
status: noFix
18701870
LintCode.analyzer_public_api_impl_in_public_api:
18711871
status: noFix
1872-
LintCode.analyzer_use_new_elements:
1873-
status: noFix
18741872
LintCode.annotate_overrides:
18751873
status: hasFix
18761874
LintCode.annotate_redeclares:

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,6 @@ class AnalysisDriver {
18941894
signature.addUint32List(_saltForResolution);
18951895
if (file.workspacePackage case PubPackage pubPackage) {
18961896
signature.addString(pubPackage.pubspecContent ?? '');
1897-
signature.addString(pubPackage.analyzerUseNewElementsContent ?? '');
18981897
}
18991898
signature.addString(library.file.uriStr);
19001899
signature.addString(library.libraryCycle.apiSignature);

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

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,6 @@ class PubPackage extends WorkspacePackage {
416416

417417
final String? pubspecContent;
418418

419-
// TODO(scheglov): remove when we are done migrating
420-
final String? analyzerUseNewElementsContent;
421-
422419
final Pubspec? pubspec;
423420

424421
final File pubspecFile;
@@ -446,11 +443,6 @@ class PubPackage extends WorkspacePackage {
446443
pubspecFile,
447444
pubspec,
448445
packageName,
449-
analyzerUseNewElementsContent: _fileContentOrNull(
450-
pubspecFile.parent.getChildAssumingFile(
451-
'analyzer_use_new_elements.txt',
452-
),
453-
),
454446
);
455447
}
456448

@@ -460,9 +452,8 @@ class PubPackage extends WorkspacePackage {
460452
this.pubspecContent,
461453
this.pubspecFile,
462454
this.pubspec,
463-
this._name, {
464-
required this.analyzerUseNewElementsContent,
465-
});
455+
this._name,
456+
);
466457

467458
/// The version range for the SDK specified for this package , or `null` if
468459
/// it is ill-formatted or not set.

pkg/linter/lib/src/rules.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import 'rules/always_require_non_null_named_parameters.dart';
1212
import 'rules/always_specify_types.dart';
1313
import 'rules/always_use_package_imports.dart';
1414
import 'rules/analyzer_public_api.dart';
15-
import 'rules/analyzer_use_new_elements.dart';
1615
import 'rules/annotate_overrides.dart';
1716
import 'rules/annotate_redeclares.dart';
1817
import 'rules/avoid_annotating_with_dynamic.dart';
@@ -265,7 +264,6 @@ void registerLintRules() {
265264
..registerLintRule(AlwaysSpecifyTypes())
266265
..registerLintRule(AlwaysUsePackageImports())
267266
..registerLintRule(AnalyzerPublicApi())
268-
..registerLintRule(AnalyzerUseNewElements())
269267
..registerLintRule(AnnotateOverrides())
270268
..registerLintRule(AnnotateRedeclares())
271269
..registerLintRule(AvoidAnnotatingWithDynamic())

pkg/linter/lib/src/rules/analyzer_use_new_elements.dart

Lines changed: 0 additions & 207 deletions
This file was deleted.

0 commit comments

Comments
 (0)