Skip to content

Commit 4f13ae3

Browse files
committed
Rust: Add qldoc
1 parent 393da45 commit 4f13ae3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/ql/lib/codeql/rust/elements/internal/VariantImpl.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module Impl {
3636
pragma[nomagic]
3737
TupleField getTupleField(int i) { result = this.getFieldList().(TupleFieldList).getField(i) }
3838

39+
/** Gets the number of fields of this variant. */
3940
int getNumberOfFields() {
4041
not this.hasFieldList() and
4142
result = 0

0 commit comments

Comments
 (0)