C#: Include the void type in value types

This commit is contained in:
Tamas Vajk
2023-10-11 10:26:24 +02:00
parent 304d7a4395
commit 267fd23b26
8 changed files with 8314 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
description: Exclude @void_type from @value_type
compatibility: full

View File

@@ -397,7 +397,7 @@ class NonNestedType extends ValueOrRefType {
/**
* The `void` type.
*/
class VoidType extends DotNet::ValueOrRefType, Type, @void_type {
class VoidType extends ValueOrRefType, @void_type {
override predicate hasQualifiedName(string qualifier, string name) {
qualifier = "System" and
name = "Void"

View File

@@ -456,7 +456,7 @@ case @type.kind of
@unsigned_integral_type = @byte_type | @ushort_type | @uint_type | @ulong_type;
@floating_point_type = @float_type | @double_type;
@value_type = @simple_type | @enum_type | @struct_type | @nullable_type | @int_ptr_type
| @uint_ptr_type | @tuple_type;
| @uint_ptr_type | @tuple_type | @void_type;
@ref_type = @class_type | @interface_type | @array_type | @delegate_type | @null_type
| @dynamic_type;
@value_or_ref_type = @value_type | @ref_type;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
description: Include @void_type in @value_type
compatibility: full