@@ -766,8 +766,8 @@ final class ReferenceContent extends Content, TReferenceContent {
766766 *
767767 * Examples include the elements of a set, array, vector, or stack.
768768 */
769- final class CollectionContent extends Content , TArrayElement {
770- CollectionContent ( ) { this = TArrayElement ( ) }
769+ final class ElementContent extends Content , TElementContent {
770+ ElementContent ( ) { this = TElementContent ( ) }
771771
772772 override string toString ( ) { result = "element" }
773773}
@@ -1091,19 +1091,19 @@ module RustDataFlow implements InputSig<Location> {
10911091 )
10921092 or
10931093 exists ( IndexExprCfgNode arr |
1094- c instanceof CollectionContent and
1094+ c instanceof ElementContent and
10951095 node1 .asExpr ( ) = arr .getBase ( ) and
10961096 node2 .asExpr ( ) = arr
10971097 )
10981098 or
10991099 exists ( ForExprCfgNode for |
1100- c instanceof CollectionContent and
1100+ c instanceof ElementContent and
11011101 node1 .asExpr ( ) = for .getIterable ( ) and
11021102 node2 .asPat ( ) = for .getPat ( )
11031103 )
11041104 or
11051105 exists ( SlicePatCfgNode pat |
1106- c instanceof CollectionContent and
1106+ c instanceof ElementContent and
11071107 node1 .asPat ( ) = pat and
11081108 node2 .asPat ( ) = pat .getAPat ( )
11091109 )
@@ -1183,7 +1183,7 @@ module RustDataFlow implements InputSig<Location> {
11831183 node2 .asExpr ( ) = tuple
11841184 )
11851185 or
1186- c instanceof CollectionContent and
1186+ c instanceof ElementContent and
11871187 node1 .asExpr ( ) =
11881188 [
11891189 node2 .asExpr ( ) .( ArrayRepeatExprCfgNode ) .getRepeatOperand ( ) ,
@@ -1193,7 +1193,7 @@ module RustDataFlow implements InputSig<Location> {
11931193 tupleAssignment ( node1 , node2 .( PostUpdateNode ) .getPreUpdateNode ( ) , c )
11941194 or
11951195 exists ( AssignmentExprCfgNode assignment , IndexExprCfgNode index |
1196- c instanceof CollectionContent and
1196+ c instanceof ElementContent and
11971197 assignment .getLhs ( ) = index and
11981198 node1 .asExpr ( ) = assignment .getRhs ( ) and
11991199 node2 .( PostUpdateNode ) .getPreUpdateNode ( ) .asExpr ( ) = index .getBase ( )
@@ -1566,7 +1566,7 @@ private module Cached {
15661566 TVariantFieldContent ( VariantCanonicalPath v , string field ) {
15671567 field = v .getVariant ( ) .getFieldList ( ) .( RecordFieldList ) .getAField ( ) .getName ( ) .getText ( )
15681568 } or
1569- TArrayElement ( ) or
1569+ TElementContent ( ) or
15701570 TTuplePositionContent ( int pos ) {
15711571 pos in [ 0 .. max ( [
15721572 any ( TuplePat pat ) .getNumberOfFields ( ) ,
0 commit comments