Skip to content

Commit 5e692a8

Browse files
committed
C#: Update dbscheme with a typekind for inline arrays.
1 parent 8d64d71 commit 5e692a8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
namespace Semmle.Extraction.Kinds // lgtm[cs/similar-file]
1+
namespace Semmle.Extraction.Kinds
22
{
33
/// <summary>
44
/// This enum has been auto-generated from the C# DB scheme - do not edit.
5+
/// Auto-generate command: `genkindenum.pl type`
56
/// </summary>
67
public enum TypeKind
78
{
@@ -35,6 +36,7 @@ public enum TypeKind
3536
ARGLIST = 30,
3637
UNKNOWN = 31,
3738
TUPLE = 32,
38-
FUNCTION_POINTER = 33
39+
FUNCTION_POINTER = 33,
40+
INLINE_ARRAY = 34,
3941
}
4042
}

csharp/ql/lib/semmlecode.csharp.dbscheme

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ case @type.kind of
448448
| 31 = @unknown_type
449449
| 32 = @tuple_type
450450
| 33 = @function_pointer_type
451+
| 34 = @inline_array_type
451452
;
452453

453454
@simple_type = @bool_type | @char_type | @integral_type | @floating_point_type | @decimal_type;
@@ -456,7 +457,7 @@ case @type.kind of
456457
@unsigned_integral_type = @byte_type | @ushort_type | @uint_type | @ulong_type;
457458
@floating_point_type = @float_type | @double_type;
458459
@value_type = @simple_type | @enum_type | @struct_type | @nullable_type | @int_ptr_type
459-
| @uint_ptr_type | @tuple_type | @void_type;
460+
| @uint_ptr_type | @tuple_type | @void_type | @inline_array_type;
460461
@ref_type = @class_type | @interface_type | @array_type | @delegate_type | @null_type
461462
| @dynamic_type;
462463
@value_or_ref_type = @value_type | @ref_type;

0 commit comments

Comments
 (0)