mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
34 lines
1.3 KiB
Plaintext
Generated
34 lines
1.3 KiB
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
query predicate instances(PathSegment x) { toBeTested(x) and not x.isUnknown() }
|
|
|
|
query predicate getGenericArgList(PathSegment x, GenericArgList getGenericArgList) {
|
|
toBeTested(x) and not x.isUnknown() and getGenericArgList = x.getGenericArgList()
|
|
}
|
|
|
|
query predicate getIdentifier(PathSegment x, NameRef getIdentifier) {
|
|
toBeTested(x) and not x.isUnknown() and getIdentifier = x.getIdentifier()
|
|
}
|
|
|
|
query predicate getParenthesizedArgList(PathSegment x, ParenthesizedArgList getParenthesizedArgList) {
|
|
toBeTested(x) and not x.isUnknown() and getParenthesizedArgList = x.getParenthesizedArgList()
|
|
}
|
|
|
|
query predicate getRetType(PathSegment x, RetTypeRepr getRetType) {
|
|
toBeTested(x) and not x.isUnknown() and getRetType = x.getRetType()
|
|
}
|
|
|
|
query predicate getReturnTypeSyntax(PathSegment x, ReturnTypeSyntax getReturnTypeSyntax) {
|
|
toBeTested(x) and not x.isUnknown() and getReturnTypeSyntax = x.getReturnTypeSyntax()
|
|
}
|
|
|
|
query predicate getTypeRepr(PathSegment x, TypeRepr getTypeRepr) {
|
|
toBeTested(x) and not x.isUnknown() and getTypeRepr = x.getTypeRepr()
|
|
}
|
|
|
|
query predicate getTraitTypeRepr(PathSegment x, PathTypeRepr getTraitTypeRepr) {
|
|
toBeTested(x) and not x.isUnknown() and getTraitTypeRepr = x.getTraitTypeRepr()
|
|
}
|