mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
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>
This commit is contained in:
parent
0ab30d074d
commit
685a0782b6
1 changed files with 3 additions and 3 deletions
|
@ -426,7 +426,7 @@ class MigrationResolutionHooksImpl
|
|||
node,
|
||||
() => node.elements,
|
||||
() => _collectionElements[node] ??=
|
||||
_transformCollectionElements(node.elements, node.typeArguments));
|
||||
_transformCollectionElements(node.elements));
|
||||
|
||||
@override
|
||||
List<CollectionElement> getSetOrMapElements(SetOrMapLiteral node) =>
|
||||
|
@ -434,7 +434,7 @@ class MigrationResolutionHooksImpl
|
|||
node,
|
||||
() => node.elements,
|
||||
() => _collectionElements[node] ??=
|
||||
_transformCollectionElements(node.elements, node.typeArguments));
|
||||
_transformCollectionElements(node.elements));
|
||||
|
||||
@override
|
||||
DartType getTypeParameterBound(TypeParameterElementImpl element) {
|
||||
|
@ -808,7 +808,7 @@ class MigrationResolutionHooksImpl
|
|||
}
|
||||
|
||||
List<CollectionElement> _transformCollectionElements(
|
||||
NodeList<CollectionElement> elements, TypeArgumentList typeArguments) {
|
||||
NodeList<CollectionElement> elements) {
|
||||
return elements
|
||||
.map(_transformCollectionElement)
|
||||
.where((e) => e != null)
|
||||
|
|
Loading…
Reference in a new issue