Skip to content

Commit 00354a2

Browse files
committed
C#: Add list- and slice pattern expression kinds and re-generate ExprKind.cs.
1 parent 99286fb commit 00354a2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Kinds/ExprKind.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ public enum ExprKind
125125
OR_PATTERN = 128,
126126
FUNCTION_POINTER_INVOCATION = 129,
127127
WITH = 130,
128-
DEFINE_SYMBOL = 999
128+
LIST_PATTERN = 131,
129+
SLICE_PATTERN = 132,
130+
DEFINE_SYMBOL = 999,
129131
}
130132
}

csharp/ql/lib/semmlecode.csharp.dbscheme

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,9 @@ case @expr.kind of
11341134
| 128 = @or_pattern_expr
11351135
| 129 = @function_pointer_invocation_expr
11361136
| 130 = @with_expr
1137+
/* C# 11.0 */
1138+
| 131 = @list_pattern_expr
1139+
| 132 = @slice_pattern_expr
11371140
/* Preprocessor */
11381141
| 999 = @define_symbol_expr
11391142
;

0 commit comments

Comments
 (0)