mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
C#: Add extended_type to the DB scheme.
This commit is contained in:
@@ -38,5 +38,6 @@ namespace Semmle.Extraction.Kinds
|
||||
TUPLE = 32,
|
||||
FUNCTION_POINTER = 33,
|
||||
INLINE_ARRAY = 34,
|
||||
EXTENSION = 35
|
||||
}
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ overlayChangedFiles(
|
||||
| @using_directive | @type_parameter_constraints | @externalDataElement
|
||||
| @xmllocatable | @asp_element | @namespace | @preprocessor_directive;
|
||||
|
||||
@declaration = @callable | @generic | @assignable | @namespace;
|
||||
@declaration = @callable | @generic | @assignable | @namespace | @extension_type;
|
||||
|
||||
@named_element = @namespace | @declaration;
|
||||
|
||||
@@ -492,6 +492,7 @@ case @type.kind of
|
||||
| 32 = @tuple_type
|
||||
| 33 = @function_pointer_type
|
||||
| 34 = @inline_array_type
|
||||
| 35 = @extension_type
|
||||
;
|
||||
|
||||
@simple_type = @bool_type | @char_type | @integral_type | @floating_point_type | @decimal_type;
|
||||
@@ -502,7 +503,7 @@ case @type.kind of
|
||||
@value_type = @simple_type | @enum_type | @struct_type | @nullable_type | @int_ptr_type
|
||||
| @uint_ptr_type | @tuple_type | @void_type | @inline_array_type;
|
||||
@ref_type = @class_type | @interface_type | @array_type | @delegate_type | @null_type
|
||||
| @dynamic_type;
|
||||
| @dynamic_type | @extension_type;
|
||||
@value_or_ref_type = @value_type | @ref_type;
|
||||
|
||||
typerefs(
|
||||
@@ -541,6 +542,10 @@ function_pointer_return_type(
|
||||
unique int function_pointer_id: @function_pointer_type ref,
|
||||
int return_type_id: @type_or_ref ref);
|
||||
|
||||
extension_receiver_type(
|
||||
unique int extension: @extension_type ref,
|
||||
int receiver_type_id: @type_or_ref ref);
|
||||
|
||||
extend(
|
||||
int sub: @type ref,
|
||||
int super: @type_or_ref ref);
|
||||
@@ -903,7 +908,7 @@ localvar_location(
|
||||
unique int id: @local_variable ref,
|
||||
int loc: @location ref);
|
||||
|
||||
@parameterizable = @callable | @delegate_type | @indexer | @function_pointer_type;
|
||||
@parameterizable = @callable | @delegate_type | @indexer | @function_pointer_type | @extension_type;
|
||||
|
||||
#keyset[name, parent_id]
|
||||
#keyset[index, parent_id]
|
||||
|
||||
Reference in New Issue
Block a user