Skip to content

Commit f8b1fb4

Browse files
committed
C#: Downgrade script should convert list- and slice pattern to unknown expression kind.
1 parent 352ae79 commit f8b1fb4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Expression extends @expr {
2+
string toString() { none() }
3+
}
4+
5+
class TypeOrRef extends @type_or_ref {
6+
string toString() { none() }
7+
}
8+
9+
from Expression e, int k, int kind, TypeOrRef t
10+
where
11+
expressions(e, k, t) and
12+
if k = [131, 132] then kind = 106 else kind = k
13+
select e, kind, t
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
description: Remove list- and slice pattern expression kinds.
22
compatibility: backwards
3+
expressions.rel: run expressions.qlo

0 commit comments

Comments
 (0)