C#: Downgrade script should convert list- and slice pattern to unknown expression kind.

This commit is contained in:
Michael Nebel
2022-12-13 14:43:36 +01:00
parent 352ae7919b
commit f8b1fb465b
2 changed files with 14 additions and 0 deletions

View File

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

View File

@@ -1,2 +1,3 @@
description: Remove list- and slice pattern expression kinds.
compatibility: backwards
expressions.rel: run expressions.qlo