diff --git a/pkg/analyzer/lib/src/test_utilities/mock_sdk.dart b/pkg/analyzer/lib/src/test_utilities/mock_sdk.dart index 924d688e9a75..cea854888410 100644 --- a/pkg/analyzer/lib/src/test_utilities/mock_sdk.dart +++ b/pkg/analyzer/lib/src/test_utilities/mock_sdk.dart @@ -499,8 +499,10 @@ abstract class Map { void addAll(Map other); Map cast(); bool containsKey(Object? key); + bool containsValue(Object? value); void forEach(void action(K key, V value)); V putIfAbsent(K key, V ifAbsent()); + V? remove(Object? key); } class Null extends Object { @@ -595,8 +597,13 @@ abstract class Set implements Iterable { bool add(E value); void addAll(Iterable elements); - bool remove(Object? value); + bool containsAll(Iterable other); + Set difference(Set other); + Set intersection(Set other); E? lookup(Object? object); + bool remove(Object? value); + void removeAll(Iterable elements); + void retainAll(Iterable elements); static Set castFrom(Set source, {Set Function()? newSet}) => throw '';