@@ -297,7 +297,6 @@ private module Cached {
297
297
TFieldContent ( FieldDecl f ) or
298
298
TTupleContent ( int index ) { exists ( any ( TupleExpr te ) .getElement ( index ) ) } or
299
299
TEnumContent ( ParamDecl f ) { exists ( EnumElementDecl d | d .getAParam ( ) = f ) } or
300
- TArrayContent ( ) or
301
300
TCollectionContent ( )
302
301
}
303
302
@@ -842,7 +841,7 @@ predicate storeStep(Node node1, ContentSet c, Node node2) {
842
841
exists ( ArrayExpr arr |
843
842
node1 .asExpr ( ) = arr .getAnElement ( ) and
844
843
node2 .asExpr ( ) = arr and
845
- c .isSingleton ( any ( Content:: ArrayContent ac ) )
844
+ c .isSingleton ( any ( Content:: CollectionContent ac ) )
846
845
)
847
846
or
848
847
// array assignment `a[n] = x`
@@ -851,7 +850,7 @@ predicate storeStep(Node node1, ContentSet c, Node node2) {
851
850
node2 .( PostUpdateNode ) .getPreUpdateNode ( ) .asExpr ( ) = subscript .getBase ( ) and
852
851
subscript = assign .getDest ( ) and
853
852
subscript .getBase ( ) .getType ( ) instanceof ArrayType and
854
- c .isSingleton ( any ( Content:: ArrayContent ac ) )
853
+ c .isSingleton ( any ( Content:: CollectionContent ac ) )
855
854
)
856
855
or
857
856
// creation of an optional via implicit wrapping keypath component
@@ -948,7 +947,7 @@ predicate readStep(Node node1, ContentSet c, Node node2) {
948
947
(
949
948
c .isSingleton ( any ( Content:: FieldContent ct | ct .getField ( ) = component .getDeclRef ( ) ) )
950
949
or
951
- c .isSingleton ( any ( Content:: ArrayContent ac ) ) and
950
+ c .isSingleton ( any ( Content:: CollectionContent ac ) ) and
952
951
component .isSubscript ( )
953
952
or
954
953
c instanceof OptionalSomeContentSet and
@@ -971,12 +970,7 @@ predicate readStep(Node node1, ContentSet c, Node node2) {
971
970
exists ( SubscriptExpr subscript |
972
971
subscript .getBase ( ) = node1 .asExpr ( ) and
973
972
subscript = node2 .asExpr ( ) and
974
- (
975
- subscript .getBase ( ) .getType ( ) instanceof ArrayType and
976
- c .isSingleton ( any ( Content:: ArrayContent ac ) )
977
- or
978
973
c .isSingleton ( any ( Content:: CollectionContent ac ) )
979
- )
980
974
)
981
975
or
982
976
// read of a dictionary value via subscript operator
@@ -1099,7 +1093,7 @@ class DataFlowExpr = Expr;
1099
1093
* precision. This disables adaptive access path precision for such access paths.
1100
1094
*/
1101
1095
predicate forceHighPrecision ( Content c ) {
1102
- c instanceof Content:: ArrayContent or c instanceof Content :: CollectionContent
1096
+ c instanceof Content:: CollectionContent
1103
1097
}
1104
1098
1105
1099
/**
0 commit comments