Skip to content

Commit 3dc126c

Browse files
committed
Rust: Add qldoc comments
1 parent a96a5fc commit 3dc126c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/ql/lib/codeql/rust/dataflow/internal/Content.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ class TupleFieldContent extends FieldContent, TTupleFieldContent {
3030

3131
TupleFieldContent() { this = TTupleFieldContent(field) }
3232

33+
/** Holds if this field belongs to an enum variant. */
3334
predicate isVariantField(Variant v, int pos) { field.isVariantField(v, pos) }
3435

36+
/** Holds if this field belongs to a struct. */
3537
predicate isStructField(Struct s, int pos) { field.isStructField(s, pos) }
3638

3739
override FieldExprCfgNode getAnAccess() { field = result.getFieldExpr().getTupleField() }
@@ -141,6 +143,7 @@ final class TuplePositionContent extends FieldContent, TTuplePositionContent {
141143

142144
TuplePositionContent() { this = TTuplePositionContent(pos) }
143145

146+
/** Gets the index of this tuple position. */
144147
int getPosition() { result = pos }
145148

146149
override FieldExprCfgNode getAnAccess() {

0 commit comments

Comments
 (0)