@@ -1253,7 +1253,7 @@ class EquivalenceVisitor implements Visitor1<bool, Node> {
12531253 /// If run in a checking state, the [propertyName] is used for registering
12541254 /// inequivalences.
12551255 bool checkLists <E >(
1256- List <E >? a, List <E >? b, bool Function (E ? , E ? , String ) equivalentValues,
1256+ List <E >? a, List <E >? b, bool Function (E , E , String ) equivalentValues,
12571257 [String propertyName = '' ]) {
12581258 if (identical (a, b)) return true ;
12591259 if (a == null || b == null ) return false ;
@@ -1276,8 +1276,8 @@ class EquivalenceVisitor implements Visitor1<bool, Node> {
12761276 ///
12771277 /// If run in a checking state, the [propertyName] is used for registering
12781278 /// inequivalences.
1279- bool checkSets <E >(Set <E >? a, Set <E >? b, bool Function (E ? , E ? ) matchingValues,
1280- bool Function (E ? , E ? , String ) equivalentValues,
1279+ bool checkSets <E >(Set <E >? a, Set <E >? b, bool Function (E , E ) matchingValues,
1280+ bool Function (E , E , String ) equivalentValues,
12811281 [String propertyName = '' ]) {
12821282 if (identical (a, b)) return true ;
12831283 if (a == null || b == null ) return false ;
@@ -1325,9 +1325,9 @@ class EquivalenceVisitor implements Visitor1<bool, Node> {
13251325 bool checkMaps <K , V >(
13261326 Map <K , V >? a,
13271327 Map <K , V >? b,
1328- bool Function (K ? , K ? ) matchingKeys,
1329- bool Function (K ? , K ? , String ) equivalentKeys,
1330- bool Function (V ? , V ? , String ) equivalentValues,
1328+ bool Function (K , K ) matchingKeys,
1329+ bool Function (K , K , String ) equivalentKeys,
1330+ bool Function (V , V , String ) equivalentValues,
13311331 [String propertyName = '' ]) {
13321332 if (identical (a, b)) return true ;
13331333 if (a == null || b == null ) return false ;
@@ -1355,7 +1355,7 @@ class EquivalenceVisitor implements Visitor1<bool, Node> {
13551355 if (hasFoundKey) {
13561356 bKeys.remove (foundKey);
13571357 if (! equivalentValues (
1358- a[aKey], b[foundKey], '${propertyName }[${aKey }]' )) {
1358+ a[aKey]! , b[foundKey]! , '${propertyName }[${aKey }]' )) {
13591359 return false ;
13601360 }
13611361 } else {
@@ -5716,8 +5716,6 @@ class EquivalenceStrategy {
57165716 EquivalenceVisitor visitor, MapConstant node, MapConstant other) {
57175717 return visitor.checkLists (node.entries, other.entries, (a, b, _) {
57185718 if (identical (a, b)) return true ;
5719- if (a is ! ConstantMapEntry ) return false ;
5720- if (b is ! ConstantMapEntry ) return false ;
57215719 return checkConstantMapEntry (visitor, a, b);
57225720 }, 'entries' );
57235721 }
@@ -5902,8 +5900,6 @@ class EquivalenceStrategy {
59025900 return visitor.checkMaps (node.uriToSource, other.uriToSource,
59035901 visitor.matchValues, visitor.checkValues, (a, b, _) {
59045902 if (identical (a, b)) return true ;
5905- if (a is ! Source ) return false ;
5906- if (b is ! Source ) return false ;
59075903 return checkSource (visitor, a, b);
59085904 }, 'uriToSource' );
59095905 }
@@ -5914,8 +5910,6 @@ class EquivalenceStrategy {
59145910 node.metadata, other.metadata, visitor.matchValues, visitor.checkValues,
59155911 (a, b, _) {
59165912 if (identical (a, b)) return true ;
5917- if (a is ! MetadataRepository ) return false ;
5918- if (b is ! MetadataRepository ) return false ;
59195913 return checkMetadataRepository (visitor, a, b);
59205914 }, 'metadata' );
59215915 }
@@ -6089,8 +6083,6 @@ class EquivalenceStrategy {
60896083 return visitor.checkLists (node.memberDescriptors, other.memberDescriptors,
60906084 (a, b, _) {
60916085 if (identical (a, b)) return true ;
6092- if (a is ! ExtensionMemberDescriptor ) return false ;
6093- if (b is ! ExtensionMemberDescriptor ) return false ;
60946086 return checkExtensionMemberDescriptor (visitor, a, b);
60956087 }, 'memberDescriptors' );
60966088 }
@@ -6192,8 +6184,6 @@ class EquivalenceStrategy {
61926184 return visitor.checkLists (node.memberDescriptors, other.memberDescriptors,
61936185 (a, b, _) {
61946186 if (identical (a, b)) return true ;
6195- if (a is ! ExtensionTypeMemberDescriptor ) return false ;
6196- if (b is ! ExtensionTypeMemberDescriptor ) return false ;
61976187 return checkExtensionTypeMemberDescriptor (visitor, a, b);
61986188 }, 'memberDescriptors' );
61996189 }
0 commit comments