зеркало из https://github.com/github/codeql.git
C#: Downgrade script should convert list- and slice pattern to unknown expression kind.
This commit is contained in:
Родитель
352ae7919b
Коммит
f8b1fb465b
|
@ -0,0 +1,13 @@
|
|||
class Expression extends @expr {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class TypeOrRef extends @type_or_ref {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
from Expression e, int k, int kind, TypeOrRef t
|
||||
where
|
||||
expressions(e, k, t) and
|
||||
if k = [131, 132] then kind = 106 else kind = k
|
||||
select e, kind, t
|
|
@ -1,2 +1,3 @@
|
|||
description: Remove list- and slice pattern expression kinds.
|
||||
compatibility: backwards
|
||||
expressions.rel: run expressions.qlo
|
Загрузка…
Ссылка в новой задаче