mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Add upgrade and downgrade folders
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
class Modifier extends @modifier {
|
||||||
|
string toString() { none() }
|
||||||
|
}
|
||||||
|
|
||||||
|
class TypeVariable extends @typevariable {
|
||||||
|
string toString() { none() }
|
||||||
|
}
|
||||||
|
|
||||||
|
class Modified extends @modifiable {
|
||||||
|
Modified() { hasModifier(this, _) }
|
||||||
|
|
||||||
|
string toString() { none() }
|
||||||
|
}
|
||||||
|
|
||||||
|
from Modified m1, Modifier m2
|
||||||
|
where
|
||||||
|
hasModifier(m1, m2) and
|
||||||
|
not m1 instanceof TypeVariable
|
||||||
|
select m1, m2
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
class Modifier extends @modifier {
|
||||||
|
string toString() { none() }
|
||||||
|
|
||||||
|
string getName() { modifiers(this, result) }
|
||||||
|
}
|
||||||
|
|
||||||
|
from Modifier m, string s
|
||||||
|
where
|
||||||
|
s = m.getName() and
|
||||||
|
not s in ["in", "out", "reified"]
|
||||||
|
select m, m.getName()
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,4 @@
|
|||||||
|
description: Remove type parameters from modifiable entities
|
||||||
|
compatibility: backwards
|
||||||
|
hasModifier.rel: run hasModifier.qlo
|
||||||
|
modifiers.rel: run modifiers.qlo
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
|||||||
|
description: Make type parameters modifiable
|
||||||
|
compatibility: backwards
|
||||||
Reference in New Issue
Block a user