// generated by codegen, do not edit import codeql.rust.elements import TestUtils from StructPatField x, int getNumberOfAttrs, string hasNameRef, string hasPat where toBeTested(x) and not x.isUnknown() and getNumberOfAttrs = x.getNumberOfAttrs() and (if x.hasNameRef() then hasNameRef = "yes" else hasNameRef = "no") and if x.hasPat() then hasPat = "yes" else hasPat = "no" select x, "getNumberOfAttrs:", getNumberOfAttrs, "hasNameRef:", hasNameRef, "hasPat:", hasPat