We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7401ae1 commit 34e09caCopy full SHA for 34e09ca
rust/ql/src/queries/summary/SummaryStats.ql
@@ -11,9 +11,21 @@ import codeql.rust.Concepts
11
import codeql.rust.Diagnostics
12
import Stats
13
14
+class CrateElement extends Element {
15
+ CrateElement() {
16
+ this instanceof ModuleContainer or
17
+ this instanceof Type or
18
+ this instanceof ValueItem or
19
+ this instanceof TypeItem or
20
+ this instanceof VariantData or
21
+ this instanceof EnumVariant
22
+ }
23
+}
24
+
25
from string key, int value
26
where
- key = "Elements extracted" and value = count(Element e | not e instanceof Unextracted)
27
+ key = "Elements extracted" and
28
+ value = count(Element e | not e instanceof Unextracted and not e instanceof CrateElement)
29
or
30
key = "Elements unextracted" and value = count(Unextracted e)
31
0 commit comments