mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Downgrade script should convert list- and slice pattern to unknown expression kind.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user