Skip to content

Commit 1ef8daf

Browse files
committed
C#: Add some more collection and spread element expression kinds to the dbscheme.
1 parent 863e6c8 commit 1ef8daf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ public enum ExprKind
130130
URSHIFT = 133,
131131
ASSIGN_URSHIFT = 134,
132132
UTF8_STRING_LITERAL = 135,
133+
COLLECTION = 136,
134+
SPREAD_ELEMENT = 137,
133135
DEFINE_SYMBOL = 999,
134136
}
135137
}

csharp/ql/lib/semmlecode.csharp.dbscheme

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,9 @@ case @expr.kind of
11481148
| 133 = @urshift_expr
11491149
| 134 = @assign_urshift_expr
11501150
| 135 = @utf8_string_literal_expr
1151+
/* C# 12.0 */
1152+
| 136 = @collection_expr
1153+
| 137 = @spread_element_expr
11511154
/* Preprocessor */
11521155
| 999 = @define_symbol_expr
11531156
;

0 commit comments

Comments
 (0)