@@ -297,7 +297,6 @@ private module Cached {
297297 TFieldContent ( FieldDecl f ) or
298298 TTupleContent ( int index ) { exists ( any ( TupleExpr te ) .getElement ( index ) ) } or
299299 TEnumContent ( ParamDecl f ) { exists ( EnumElementDecl d | d .getAParam ( ) = f ) } or
300- TArrayContent ( ) or
301300 TCollectionContent ( )
302301}
303302
@@ -842,7 +841,7 @@ predicate storeStep(Node node1, ContentSet c, Node node2) {
842841 exists ( ArrayExpr arr |
843842 node1 .asExpr ( ) = arr .getAnElement ( ) and
844843 node2 .asExpr ( ) = arr and
845- c .isSingleton ( any ( Content:: ArrayContent ac ) )
844+ c .isSingleton ( any ( Content:: CollectionContent ac ) )
846845 )
847846 or
848847 // array assignment `a[n] = x`
@@ -851,7 +850,7 @@ predicate storeStep(Node node1, ContentSet c, Node node2) {
851850 node2 .( PostUpdateNode ) .getPreUpdateNode ( ) .asExpr ( ) = subscript .getBase ( ) and
852851 subscript = assign .getDest ( ) and
853852 subscript .getBase ( ) .getType ( ) instanceof ArrayType and
854- c .isSingleton ( any ( Content:: ArrayContent ac ) )
853+ c .isSingleton ( any ( Content:: CollectionContent ac ) )
855854 )
856855 or
857856 // creation of an optional via implicit wrapping keypath component
@@ -948,7 +947,7 @@ predicate readStep(Node node1, ContentSet c, Node node2) {
948947 (
949948 c .isSingleton ( any ( Content:: FieldContent ct | ct .getField ( ) = component .getDeclRef ( ) ) )
950949 or
951- c .isSingleton ( any ( Content:: ArrayContent ac ) ) and
950+ c .isSingleton ( any ( Content:: CollectionContent ac ) ) and
952951 component .isSubscript ( )
953952 or
954953 c instanceof OptionalSomeContentSet and
@@ -971,12 +970,7 @@ predicate readStep(Node node1, ContentSet c, Node node2) {
971970 exists ( SubscriptExpr subscript |
972971 subscript .getBase ( ) = node1 .asExpr ( ) and
973972 subscript = node2 .asExpr ( ) and
974- (
975- subscript .getBase ( ) .getType ( ) instanceof ArrayType and
976- c .isSingleton ( any ( Content:: ArrayContent ac ) )
977- or
978973 c .isSingleton ( any ( Content:: CollectionContent ac ) )
979- )
980974 )
981975 or
982976 // read of a dictionary value via subscript operator
@@ -1099,7 +1093,7 @@ class DataFlowExpr = Expr;
10991093 * precision. This disables adaptive access path precision for such access paths.
11001094 */
11011095predicate forceHighPrecision ( Content c ) {
1102- c instanceof Content:: ArrayContent or c instanceof Content :: CollectionContent
1096+ c instanceof Content:: CollectionContent
11031097}
11041098
11051099/**
0 commit comments