Skip to content

Commit c5af880

Browse files
committed
C#: Add extension types to the db scheme.
1 parent 95e08a8 commit c5af880

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

csharp/ql/lib/semmlecode.csharp.dbscheme

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ overlayChangedFiles(
222222
| @using_directive | @type_parameter_constraints | @externalDataElement
223223
| @xmllocatable | @asp_element | @namespace | @preprocessor_directive;
224224

225-
@declaration = @callable | @generic | @assignable | @namespace;
225+
@declaration = @callable | @generic | @assignable | @namespace | @extension_type;
226226

227227
@named_element = @namespace | @declaration;
228228

@@ -492,6 +492,7 @@ case @type.kind of
492492
| 32 = @tuple_type
493493
| 33 = @function_pointer_type
494494
| 34 = @inline_array_type
495+
| 35 = @extension_type
495496
;
496497

497498
@simple_type = @bool_type | @char_type | @integral_type | @floating_point_type | @decimal_type;
@@ -502,7 +503,7 @@ case @type.kind of
502503
@value_type = @simple_type | @enum_type | @struct_type | @nullable_type | @int_ptr_type
503504
| @uint_ptr_type | @tuple_type | @void_type | @inline_array_type;
504505
@ref_type = @class_type | @interface_type | @array_type | @delegate_type | @null_type
505-
| @dynamic_type;
506+
| @dynamic_type | @extension_type;
506507
@value_or_ref_type = @value_type | @ref_type;
507508

508509
typerefs(
@@ -903,7 +904,7 @@ localvar_location(
903904
unique int id: @local_variable ref,
904905
int loc: @location ref);
905906

906-
@parameterizable = @callable | @delegate_type | @indexer | @function_pointer_type;
907+
@parameterizable = @callable | @delegate_type | @indexer | @function_pointer_type | @extension_type;
907908

908909
#keyset[name, parent_id]
909910
#keyset[index, parent_id]

0 commit comments

Comments
 (0)