Skip to content

Commit c846765

Browse files
pqCommit Queue
authored andcommitted
[element model] migrate literal_element_verifier
Change-Id: I86ca693e8f781d5e2affd204aa7a6ec2fbe09f4b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/399842 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
1 parent 7dbe18a commit c846765

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pkg/analyzer/analyzer_use_new_elements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ lib/src/error/deprecated_member_use_verifier.dart
103103
lib/src/error/duplicate_definition_verifier.dart
104104
lib/src/error/imports_verifier.dart
105105
lib/src/error/inheritance_override.dart
106-
lib/src/error/literal_element_verifier.dart
107106
lib/src/error/override_verifier.dart
108107
lib/src/error/required_parameters_verifier.dart
109108
lib/src/error/unused_local_elements_verifier.dart

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ class LiteralElementVerifier {
200200
return;
201201
}
202202

203-
var iterableType = expressionType.asInstanceOf(
204-
typeProvider.iterableElement,
203+
var iterableType = expressionType.asInstanceOf2(
204+
typeProvider.iterableElement2,
205205
);
206206

207207
if (iterableType == null) {
@@ -291,8 +291,8 @@ class LiteralElementVerifier {
291291
return;
292292
}
293293

294-
var mapType = expressionType.asInstanceOf(
295-
typeProvider.mapElement,
294+
var mapType = expressionType.asInstanceOf2(
295+
typeProvider.mapElement2,
296296
);
297297

298298
if (mapType == null) {

0 commit comments

Comments
 (0)