Skip to content

Commit 89fcc17

Browse files
authored
Merge pull request github#11594 from michaelnebel/csharp/listpattern
C#: Support List and Slice patterns.
2 parents fd63348 + f8b1fb4 commit 89fcc17

File tree

18 files changed

+8450
-1
lines changed

18 files changed

+8450
-1
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

0 commit comments

Comments
 (0)