We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 393da45 commit 4f13ae3Copy full SHA for 4f13ae3
rust/ql/lib/codeql/rust/elements/internal/VariantImpl.qll
@@ -36,6 +36,7 @@ module Impl {
36
pragma[nomagic]
37
TupleField getTupleField(int i) { result = this.getFieldList().(TupleFieldList).getField(i) }
38
39
+ /** Gets the number of fields of this variant. */
40
int getNumberOfFields() {
41
not this.hasFieldList() and
42
result = 0
0 commit comments