Skip to content

Commit 685a078

Browse files
stereotype441commit-bot@chromium.org
authored and
commit-bot@chromium.org
committed
Remove unused argument typeArguments from MigrationResolutionHooksImpl._transformCollectionElements.
Change-Id: I6c66b118d24419cae63cf0c6ad93d395c89b52cd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204300 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>
1 parent 0ab30d0 commit 685a078

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/nnbd_migration/lib/src/fix_builder.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,15 +426,15 @@ class MigrationResolutionHooksImpl
426426
node,
427427
() => node.elements,
428428
() => _collectionElements[node] ??=
429-
_transformCollectionElements(node.elements, node.typeArguments));
429+
_transformCollectionElements(node.elements));
430430

431431
@override
432432
List<CollectionElement> getSetOrMapElements(SetOrMapLiteral node) =>
433433
_wrapExceptions(
434434
node,
435435
() => node.elements,
436436
() => _collectionElements[node] ??=
437-
_transformCollectionElements(node.elements, node.typeArguments));
437+
_transformCollectionElements(node.elements));
438438

439439
@override
440440
DartType getTypeParameterBound(TypeParameterElementImpl element) {
@@ -808,7 +808,7 @@ class MigrationResolutionHooksImpl
808808
}
809809

810810
List<CollectionElement> _transformCollectionElements(
811-
NodeList<CollectionElement> elements, TypeArgumentList typeArguments) {
811+
NodeList<CollectionElement> elements) {
812812
return elements
813813
.map(_transformCollectionElement)
814814
.where((e) => e != null)

0 commit comments

Comments
 (0)