|
| 1 | +class Element extends @element { |
| 2 | + string toString() { none() } |
| 3 | +} |
| 4 | + |
| 5 | +class Expr extends @expr { |
| 6 | + string toString() { none() } |
| 7 | +} |
| 8 | + |
| 9 | +class Decl extends @decl { |
| 10 | + string toString() { none() } |
| 11 | +} |
| 12 | + |
| 13 | +class DeclOrNone extends @decl_or_none { |
| 14 | + string toString() { none() } |
| 15 | +} |
| 16 | + |
| 17 | +class ModuleOrNone extends @module_decl_or_none { |
| 18 | + string toString() { none() } |
| 19 | +} |
| 20 | + |
| 21 | +class Type extends @type { |
| 22 | + string toString() { none() } |
| 23 | +} |
| 24 | + |
| 25 | +class TypeOrNone extends @type_or_none { |
| 26 | + string toString() { none() } |
| 27 | +} |
| 28 | + |
| 29 | +query predicate new_decls(Decl decl, ModuleOrNone moduleOrNone) { |
| 30 | + decls(decl, moduleOrNone) and not using_decls(decl) |
| 31 | +} |
| 32 | + |
| 33 | +query predicate new_decl_members(Decl decl, int index, DeclOrNone declOrNone) { |
| 34 | + decl_members(decl, index, declOrNone) and not using_decls(decl) |
| 35 | +} |
| 36 | + |
| 37 | +query predicate new_expr_types(Expr id, TypeOrNone typeOrNone) { |
| 38 | + expr_types(id, typeOrNone) and not unsafe_exprs(id) |
| 39 | +} |
| 40 | + |
| 41 | +query predicate new_types(Type id, string name, TypeOrNone typeOrNone) { |
| 42 | + types(id, name, typeOrNone) and not inline_array_types(id, _, _) |
| 43 | +} |
| 44 | + |
| 45 | +query predicate new_unspecified_elements(Element id, string property, string error) { |
| 46 | + unspecified_elements(id, property, error) |
| 47 | + or |
| 48 | + using_decls(id) and |
| 49 | + property = "" and |
| 50 | + error = "UsingDecl removed during database downgrade. Please update your CodeQL." |
| 51 | + or |
| 52 | + unsafe_exprs(id) and |
| 53 | + property = "" and |
| 54 | + error = "UnsafeExpr removed during database downgrade. Please update your CodeQL." |
| 55 | + or |
| 56 | + inline_array_types(id, _, _) and |
| 57 | + property = "" and |
| 58 | + error = "InlineArrayType removed during database downgrade. Please update your CodeQL." |
| 59 | +} |
0 commit comments