Skip to content

Commit 571b598

Browse files
pqCommit Queue
authored andcommitted
[element model] migrate conditional_uri_does_not_exist
Bug: https://github.com/dart-lang/linter/issues/5099 Change-Id: I4ca4d335370729768f8bd08f537f9616a824d592 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/389180 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]> Auto-Submit: Phil Quitslund <[email protected]>
1 parent 91cce5d commit 571b598

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

pkg/linter/analyzer_use_new_elements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ lib/src/rules/cast_nullable_to_non_nullable.dart
3939
lib/src/rules/close_sinks.dart
4040
lib/src/rules/combinators_ordering.dart
4141
lib/src/rules/comment_references.dart
42+
lib/src/rules/conditional_uri_does_not_exist.dart
4243
lib/src/rules/constant_identifier_names.dart
4344
lib/src/rules/control_flow_in_finally.dart
4445
lib/src/rules/curly_braces_in_flow_control_structures.dart
@@ -138,6 +139,7 @@ lib/src/rules/unnecessary_breaks.dart
138139
lib/src/rules/unnecessary_const.dart
139140
lib/src/rules/unnecessary_constructor_name.dart
140141
lib/src/rules/unnecessary_final.dart
142+
lib/src/rules/unnecessary_getters_setters.dart
141143
lib/src/rules/unnecessary_late.dart
142144
lib/src/rules/unnecessary_library_directive.dart
143145
lib/src/rules/unnecessary_library_name.dart

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ bool _isOldModelElement(Element2? element) {
2525
if (const {
2626
'DirectiveUri',
2727
'DirectiveUriWithRelativeUri',
28+
'DirectiveUriWithRelativeUriString',
29+
'DirectiveUriWithSource',
2830
'ElementAnnotation',
2931
'ElementKind',
3032
}.contains(firstFragment.name)) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import 'package:analyzer/dart/ast/ast.dart';
66
import 'package:analyzer/dart/ast/visitor.dart';
7-
import 'package:analyzer/dart/element/element.dart';
7+
import 'package:analyzer/dart/element/element2.dart';
88

99
import '../analyzer.dart';
1010
import '../linter_lint_codes.dart';

0 commit comments

Comments
 (0)