Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14147a1

Browse files
committed
C#: DB upgrade script and stats
1 parent a1e58ce commit 14147a1

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

csharp/ql/src/semmlecode.csharp.dbscheme.stats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@
392392
<v>4841</v>
393393
</e>
394394
<e>
395-
<k>@case</k>
395+
<k>@case_stmt</k>
396396
<v>52011</v>
397397
</e>
398398
<e>

csharp/upgrades/57331d90231fc8247d5a5197f4ac45d502708c6a/semmlecode.csharp.dbscheme

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ compiler_generated(unique int id: @modifiable_direct ref);
542542

543543
@member = @method | @constructor | @destructor | @field | @property | @event | @operator | @indexer | @type;
544544

545-
@named_exprorstmt = @goto_stmt | @labeled_stmt | @literal_expr;
545+
@named_exprorstmt = @goto_stmt | @labeled_stmt | @expr;
546546

547547
@virtualizable = @method | @property | @indexer | @event;
548548

@@ -806,7 +806,7 @@ case @stmt.kind of
806806
| 26 = @fixed_stmt
807807
| 27 = @label_stmt
808808
| 28 = @catch
809-
| 29 = @case
809+
| 29 = @case_stmt
810810
| 30 = @local_function_stmt
811811
;
812812

@@ -985,6 +985,10 @@ case @expr.kind of
985985
| 118 = @switch_case_expr
986986
;
987987

988+
@switch = @switch_stmt | @switch_expr;
989+
@case = @case_stmt | @switch_case_expr;
990+
@pattern_match = @case | @is_expr;
991+
988992
@integer_literal_expr = @int_literal_expr | @long_literal_expr | @uint_literal_expr | @ulong_literal_expr;
989993
@real_literal_expr = @float_literal_expr | @double_literal_expr | @decimal_literal_expr;
990994
@literal_expr = @bool_literal_expr | @char_literal_expr | @integer_literal_expr | @real_literal_expr
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
description: Add C#8 expression types
2-
compatibility: backwards
1+
description: Add C#8 expression and union types supporting ranges, recursive patterns and switch expressions.
2+
compatibility: backwards

0 commit comments

Comments
 (0)