Add upgrade and downgrade folders

This commit is contained in:
Tamas Vajk
2022-10-04 15:16:44 +02:00
parent 9eea6d4193
commit 524dac551b
8 changed files with 4996 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,4 @@
description: Remove type parameters from modifiable entities
compatibility: backwards
hasModifier.rel: run hasModifier.qlo
modifiers.rel: run modifiers.qlo