529 references to System_Void
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
67type.SpecialType is SpecialType.System_Object or SpecialType.System_Void ||
ILLink.RoslynAnalyzer (1)
TrimAnalysis\MethodProxy.cs (1)
55 internal partial bool ReturnsVoid () => Method.ReturnType.SpecialType == SpecialType.System_Void;
Microsoft.CodeAnalysis (244)
MetadataReader\MetadataTypeCodeExtensions.cs (2)
22return SpecialType.System_Void; 107case SpecialType.System_Void:
Operations\ControlFlowGraphBuilder.cs (1)
4195return new AwaitOperation(invocation, semanticModel: null, value.Syntax, _compilation.GetSpecialType(SpecialType.System_Void), isImplicit: true);
PEWriter\Types.cs (1)
23SystemVoid = CodeAnalysis.SpecialType.System_Void,
SpecialMembers.cs (25)
24(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 315(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 323(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 331(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 339(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 347(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 355(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 363(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 751(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 850(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 881(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 958(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 983(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 1006(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 1031(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 1083(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 1149(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1156(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1164(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1201(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1209(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1224(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1257(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1266(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1305(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type
SpecialTypeExtensions.cs (1)
67case SpecialType.System_Void:
SpecialTypes.cs (2)
108s_typeIdToTypeCodeMap[(int)SpecialType.System_Void] = Microsoft.Cci.PrimitiveTypeCode.Void; 132s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Void] = SpecialType.System_Void;
Symbols\INamedTypeSymbolInternal.cs (1)
45case SpecialType.System_Void:
WellKnownMembers.cs (211)
306(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 314(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 321(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 360(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 368(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 466(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 488(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 495(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 502(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 510(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 517(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 532(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 539(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 546(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 554(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 561(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 593(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 601(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 609(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 617(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 625(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 634(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 643(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 652(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 661(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 669(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 677(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 685(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 693(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 701(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 717(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 724(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 733(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 741(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 749(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 757(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 818(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 826(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 843(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 854(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 866(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 874(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 886(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 898(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 905(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 912(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 920(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 928(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 942(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 949(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 958(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 965(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1009(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1034(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1074(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1081(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1094(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1144(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1152(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1161(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2009(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2022(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2047(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2057(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2069(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2076(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2089(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2100(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2107(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2151(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2159(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2168(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2175(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2205(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2299(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2306(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2321(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2329(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2336(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2345(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2354(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2362(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2377(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2385(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2392(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2401(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2410(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2418(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2440(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2448(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2456(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2465(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2474(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2482(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2500(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2508(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2564(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2573(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2590(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2605(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2835(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2843(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2852(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2862(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2873(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2885(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2898(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2912(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2928(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2996(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3010(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3019(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3028(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3037(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3046(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3055(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3064(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3073(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3082(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3091(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3100(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3101(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Value 3109(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3110(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Value address 3119(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3128(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3137(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3146(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3155(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3164(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3173(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3182(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3191(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3200(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3209(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3218(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3219(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Value 3227(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3228(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Value address 3237(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3246(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3255(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3263(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3271(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3280(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3288(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3295(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3302(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3309(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3316(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3325(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3326(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3334(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3342(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3377(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3378(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3386(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3394(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3404(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3439(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3502(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3519(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3565(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3625(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3639(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3646(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3654(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3685(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3699(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3715(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3729(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3741(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3749(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3765(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3772(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3781(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3790(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3813(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3821(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3828(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3835(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3851(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3874(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type, 3881(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3889(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3896(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3928(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3942(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3949(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3956(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3963(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4012(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4020(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4027(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 4034(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 4041(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4050(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4079(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4118(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4141(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4150(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4158(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4166(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 4173(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4181(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4204(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4250(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4287(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4298(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4328(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 4339(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
177value.Type.SpecialType == SpecialType.System_Void)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (1)
67case SpecialType.System_Void:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (2)
59=> symbol?.SpecialType == SpecialType.System_Void; 379case SpecialType.System_Void:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
15PredefinedType.Void => SpecialType.System_Void,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
15SpecialType.System_Void => PredefinedType.Void,
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
75returnType: semanticModel.Compilation.GetSpecialType(SpecialType.System_Void),
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
65if (typeParameters.Length == 0 && returnType.SpecialType != SpecialType.System_Void)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
450inferredType = inferredType.SpecialType == SpecialType.System_Void
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (1)
80=> this.ReturnType == null || this.ReturnType.SpecialType == SpecialType.System_Void;
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder.ValueChecks.cs (3)
703if ((expr.ConstantValueOpt != null) || (expr.Type.GetSpecialTypeSafe() == SpecialType.System_Void)) 3330if (expr.Type?.GetSpecialTypeSafe() == SpecialType.System_Void) 3646if (expr.Type?.GetSpecialTypeSafe() == SpecialType.System_Void)
Binder\Binder_Deconstruct.cs (2)
126var voidType = GetSpecialType(SpecialType.System_Void, diagnostics, node); 693if (deconstructMethod.ReturnType.GetSpecialTypeSafe() != SpecialType.System_Void)
Binder\Binder_Expressions.cs (3)
1037if (boundArgument.Type?.SpecialType == SpecialType.System_Void) 6432type: GetSpecialType(SpecialType.System_Void, diagnostics, elementInitializer), 11020accessType = GetSpecialType(SpecialType.System_Void, diagnostics, node);
Binder\Binder_InterpolatedString.cs (2)
986if (!methodReturnsBool && returnType.SpecialType != SpecialType.System_Void) 998var expected = builderPatternExpectsBool == true ? Compilation.GetSpecialType(SpecialType.System_Boolean) : Compilation.GetSpecialType(SpecialType.System_Void);
Binder\Binder_Operators.cs (2)
289type = this.GetSpecialType(SpecialType.System_Void, diagnostics, node); //we know the return type would have been void 322type = this.GetSpecialType(SpecialType.System_Void, diagnostics, node);
Binder\Binder_Statements.cs (2)
1517type = this.GetSpecialType(SpecialType.System_Void, diagnostics, node); 3515else if (expression.Type?.SpecialType == SpecialType.System_Void)
Binder\Semantics\Conversions\ConversionsBase.cs (3)
250var sourceIsVoid = source?.SpecialType == SpecialType.System_Void; 251var destIsVoid = destination.SpecialType == SpecialType.System_Void; 3373return source.IsPointerOrFunctionPointer() && destination is PointerTypeSymbol { PointedAtType: { SpecialType: SpecialType.System_Void } };
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
582var voidPointerType = new PointerTypeSymbol(TypeWithAnnotations.Create(Compilation.GetSpecialType(SpecialType.System_Void)));
Binder\Semantics\Operators\OperatorFacts.cs (1)
56case SpecialType.System_Void:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
1393if (!returnType.HasType || returnType.SpecialType == SpecialType.System_Void) 1448if (!sourceReturnType.HasType || sourceReturnType.SpecialType == SpecialType.System_Void)
BoundTree\UnboundLambda.cs (3)
761returnType = TypeWithAnnotations.Create(Binder.Compilation.GetSpecialType(SpecialType.System_Void)); 964? TypeWithAnnotations.Create(this.Binder.Compilation.GetSpecialType(SpecialType.System_Void)) 1212? this.Binder.Compilation.GetSpecialType(SpecialType.System_Void)
Compilation\CSharpCompilation.cs (3)
805return info.ConvertedType?.SpecialType != SpecialType.System_Void; 4369csharpLeftType is PointerTypeSymbol { PointedAtType.SpecialType: SpecialType.System_Void } && 4370csharpRightType is PointerTypeSymbol { PointedAtType.SpecialType: SpecialType.System_Void })
Emitter\Model\PEModuleBuilder.cs (4)
1487return new SynthesizedPrivateImplementationDetailsStaticConstructor(GetPrivateImplClass(syntaxOpt, diagnostics), GetUntranslatedSpecialType(SpecialType.System_Void, syntaxOpt, diagnostics)).GetCciAdapter(); 1825TypeSymbol returnType = factory.SpecialType(SpecialType.System_Void); 1872TypeSymbol returnType = factory.SpecialType(SpecialType.System_Void); 1892TypeSymbol returnType = factory.SpecialType(SpecialType.System_Void);
FlowAnalysis\NullableWalker.cs (1)
4506if (property.Type.SpecialType != SpecialType.System_Void)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (3)
136resultType: F.SpecialType(SpecialType.System_Void), 169resultType: F.SpecialType(SpecialType.System_Void), 241resultType: F.SpecialType(SpecialType.System_Void),
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
565if (invocation.Type.SpecialType != SpecialType.System_Void)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
147get { return TypeWithAnnotations.Create(ContainingAssembly.GetSpecialType(SpecialType.System_Void)); }
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
374var operandType = new PointerTypeSymbol(TypeWithAnnotations.Create(_factory.SpecialType(SpecialType.System_Void)));
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (2)
216resultType = _factory.SpecialType(SpecialType.System_Void); 309resultType = _factory.SpecialType(SpecialType.System_Void);
Lowering\SyntheticBoundNodeFactory.cs (1)
1370=> new BoundThrowIfModuleCancellationRequested(Syntax, SpecialType(CodeAnalysis.SpecialType.System_Void)) { WasCompilerGenerated = true };
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
639case SpecialType.System_Void:
Symbols\AnonymousTypes\AnonymousTypeManager.SymbolCollection.cs (1)
116get { return Compilation.GetSpecialType(SpecialType.System_Void); }
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (2)
179returnsVoid ? Compilation.GetSpecialType(SpecialType.System_Void) : null, 475returnsVoid ? Compilation.GetSpecialType(SpecialType.System_Void) : null,
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1914case SpecialType.System_Void:
Symbols\Source\SourceConstructorSymbolBase.cs (1)
58_lazyReturnType = TypeWithAnnotations.Create(bodyBinder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax));
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
59var voidType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax));
Symbols\Source\SourceDestructorSymbol.cs (1)
85_lazyReturnType = TypeWithAnnotations.Create(bodyBinder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax));
Symbols\Source\SourceEventAccessorSymbol.cs (2)
131TypeSymbol voidType = compilation.GetSpecialType(SpecialType.System_Void); 142TypeSymbol voidType = compilation.GetSpecialType(SpecialType.System_Void);
Symbols\Source\SourceMemberContainerSymbol.cs (3)
4299TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Void)), 4316if (deconstruct.ReturnType.SpecialType != SpecialType.System_Void && !deconstruct.ReturnType.IsErrorType()) 4347TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Void)),
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
387var type = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Void, diagnostics, this.GetSyntax()));
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
35return (ReturnType: TypeWithAnnotations.Create(Binder.GetSpecialType(compilation, SpecialType.System_Void, location, diagnostics)),
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
43var systemVoid = Binder.GetSpecialType(compilation, SpecialType.System_Void, DummySyntax(), diagnostics);
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
156get { return TypeWithAnnotations.Create(ContainingAssembly.GetSpecialType(SpecialType.System_Void)); }
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
45_returnType = Binder.GetSpecialType(compilation, SpecialType.System_Void, NoLocation.Singleton, diagnostics);
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
139return TypeWithAnnotations.Create(ContainingAssembly.GetSpecialType(SpecialType.System_Void));
Symbols\TypeSymbolExtensions.cs (1)
107return type.SpecialType == SpecialType.System_Void;
Syntax\SyntaxKindExtensions.cs (1)
16return SpecialType.System_Void;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
102if (previousReturnType.SpecialType is SpecialType.System_Void ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\InternalExtensions.cs (1)
36if (typeInfo.Type != null && typeInfo.Type.SpecialType == SpecialType.System_Void)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
226if (symbol.SpecialType == SpecialType.System_Void)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
1228return CreateResult(SpecialType.System_Void); 1962return types.Select(t => t.InferredType.SpecialType == SpecialType.System_Void ? new TypeInferenceInfo(task) : new TypeInferenceInfo(taskOfT.Construct(t.InferredType))); 1998return this.Compilation.GetSpecialType(SpecialType.System_Void);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\DestructorTests.cs (1)
834Assert.Equal(SpecialType.System_Void, destructor.ReturnType.SpecialType);
Emit\EmitMetadataTests.cs (1)
455Assert.Same(module.GetCorLibType(SpecialType.System_Void), m4.ReturnType);
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
92if (type.SpecialType == SpecialType.System_Void)
Snippets\CSharpConsoleSnippetProvider.cs (1)
42if (lambdaSymbol is IMethodSymbol { ReturnType: { SpecialType: SpecialType.System_Void } or { TypeKind: TypeKind.Error } })
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
102if (previousReturnType.SpecialType is SpecialType.System_Void ||
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\FunctionPointerOperations.cs (1)
211Assert.Equal(SpecialType.System_Void, signature.ReturnType.SpecialType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\DeconstructionTests.cs (8)
5988Assert.Equal(SpecialType.System_Void, type.Type.SpecialType); 5989Assert.Equal(SpecialType.System_Void, type.ConvertedType.SpecialType); 6031Assert.Equal(SpecialType.System_Void, type.Type.SpecialType); 6032Assert.Equal(SpecialType.System_Void, type.ConvertedType.SpecialType); 6071Assert.Equal(SpecialType.System_Void, type.Type.SpecialType); 6072Assert.Equal(SpecialType.System_Void, type.ConvertedType.SpecialType); 6153Assert.Equal(SpecialType.System_Void, type.Type.SpecialType); 6154Assert.Equal(SpecialType.System_Void, type.ConvertedType.SpecialType);
Semantics\FunctionPointerTests.cs (1)
211Assert.True(typeInfo.ConvertedType is IPointerTypeSymbol { PointedAtType: { SpecialType: SpecialType.System_Void } });
Semantics\InterpolationTests.cs (1)
4455comp.MakeTypeMissing(SpecialType.System_Void);
Semantics\OperatorTests.cs (2)
8282compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Void)), 8283compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Void)),
Semantics\RawInterpolationTests_Handler.cs (1)
2731comp.MakeTypeMissing(SpecialType.System_Void);
Semantics\UnsafeTests.cs (7)
7882Assert.Equal(SpecialType.System_Void, callSummary.Type.SpecialType); 7883Assert.Equal(SpecialType.System_Void, callSummary.ConvertedType.SpecialType); 7945Assert.Equal(SpecialType.System_Void, callSummary.Type.SpecialType); 8388Assert.NotEqual(SpecialType.System_Void, ((IPointerTypeSymbol)type).PointedAtType.SpecialType); 8392Assert.Equal(SpecialType.System_Void, ((IPointerTypeSymbol)convertedType).PointedAtType.SpecialType); 10293var voidSymbol = compilation.GetSpecialType(SpecialType.System_Void); 11312Assert.Equal(SpecialType.System_Void, ((IPointerTypeSymbol)stackAllocSummary.ConvertedType).PointedAtType.SpecialType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Compilation\GetSemanticInfoTests.cs (3)
1325Assert.Equal(SpecialType.System_Void, bindInfo.Type.SpecialType); 1352Assert.Equal(SpecialType.System_Void, bindInfo.Type.SpecialType); 1380Assert.Equal(SpecialType.System_Void, bindInfo.Type.SpecialType);
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
6090Assert.Equal(SpecialType.System_Void, semanticInfo.Type.SpecialType);
Symbols\ExtensionMethodTests.cs (2)
4094var systemVoidType = compilation.GetSpecialType(SpecialType.System_Void); 4095Assert.Equal(SpecialType.System_Void, systemVoidType.SpecialType);
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1597var @void = comp.GetSpecialType(SpecialType.System_Void);
Symbols\InterfaceImplementationTests.cs (1)
1864Assert.Equal(SpecialType.System_Void, returnType.SpecialType);
Symbols\Metadata\PE\DynamicTransformsTests.cs (1)
318Assert.Equal(SpecialType.System_Void, prop2.SetMethod.ReturnType.SpecialType);
Symbols\Metadata\PE\LoadingEvents.cs (1)
115Assert.Equal(SpecialType.System_Void, accessor.ReturnType.SpecialType);
Symbols\Metadata\PE\LoadingIndexers.cs (1)
1086Assert.Equal(SpecialType.System_Void, accessor.ReturnType.SpecialType);
Symbols\Source\ClsComplianceTests.cs (1)
3163case SpecialType.System_Void:
Symbols\Source\MethodTests.cs (2)
1907Assert.Equal(SpecialType.System_Void, staticConstructor.ReturnType.SpecialType); 1931Assert.Equal(SpecialType.System_Void, staticConstructor.ReturnType.SpecialType);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (2)
577Assert.Equal(SpecialType.System_Void, accessor.ReturnType.SpecialType); 587Assert.Equal(SpecialType.System_Void, accessor.ReturnType.SpecialType);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (3)
CodeGen\WinMdEventTests.cs (1)
673Assert.Equal(SpecialType.System_Void, type.Type.SpecialType);
Metadata\WinMdEventTests.cs (2)
3576var voidType = compilation.GetSpecialType(SpecialType.System_Void); 3607var voidType = compilation.GetSpecialType(SpecialType.System_Void);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
56SpecialType.System_Void => SyntaxKind.VoidKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\InternalExtensions.cs (1)
36if (typeInfo.Type != null && typeInfo.Type.SpecialType == SpecialType.System_Void)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
226if (symbol.SpecialType == SpecialType.System_Void)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
1228return CreateResult(SpecialType.System_Void); 1962return types.Select(t => t.InferredType.SpecialType == SpecialType.System_Void ? new TypeInferenceInfo(task) : new TypeInferenceInfo(taskOfT.Construct(t.InferredType))); 1998return this.Compilation.GetSpecialType(SpecialType.System_Void);
Microsoft.CodeAnalysis.Features (21)
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (1)
71if (type.SpecialType == SpecialType.System_Void)
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
63var inferredTypes = context.InferredTypes.Where(t => t.SpecialType != SpecialType.System_Void).ToSet();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
869model.Compilation.GetSpecialType(SpecialType.System_Void),
ExtractMethod\MethodExtractor.Analyzer.cs (3)
246returnType = model.Compilation.GetSpecialType(SpecialType.System_Void); 267if (taskType is object && returnType.Equals(model.Compilation.GetSpecialType(SpecialType.System_Void))) 316: compilation.GetSpecialType(SpecialType.System_Void);
ExtractMethod\MethodExtractor.AnalyzerResult.cs (1)
103return ReturnType.SpecialType != SpecialType.System_Void && !AwaitTaskReturn;
ExtractMethod\MethodExtractor.CodeGenerator.cs (1)
213if (type != null && type.SpecialType != SpecialType.System_Void)
ExtractMethod\MethodExtractor.cs (1)
268if (type.SpecialType == SpecialType.System_Void)
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (1)
75return _state.Compilation.GetSpecialType(SpecialType.System_Void);
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
46type.SpecialType == SpecialType.System_Void)
IntroduceVariable\AbstractIntroduceVariableService.State_Block.cs (1)
33if (type == null || type.SpecialType == SpecialType.System_Void)
IntroduceVariable\AbstractIntroduceVariableService.State_Query.cs (1)
32if (info.Type == null || info.Type.SpecialType == SpecialType.System_Void)
QuickInfo\QuickInfoUtilities.cs (1)
45if (symbol is INamedTypeSymbol { SpecialType: SpecialType.System_Void })
RQName\RQNodeBuilder.cs (2)
70if (type != type.ConstructedFrom || type.SpecialType == SpecialType.System_Void) 265if (symbol.SpecialType == SpecialType.System_Void)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
177value.Type.SpecialType == SpecialType.System_Void)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
75returnType: semanticModel.Compilation.GetSpecialType(SpecialType.System_Void),
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
65if (typeParameters.Length == 0 && returnType.SpecialType != SpecialType.System_Void)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
450inferredType = inferredType.SpecialType == SpecialType.System_Void
ValueTracking\ValueTracker.cs (1)
246return methodSymbol.ReturnType.SpecialType != SpecialType.System_Void;
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
110case SpecialType.System_Void:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
362return SpecialType.System_Void;
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
48Assert.Equal(SpecialType.System_Void, SpecialTypes.GetTypeFromMetadataName(Cci.PrimitiveTypeCode.Void));
Microsoft.CodeAnalysis.VisualBasic (84)
Analysis\FlowAnalysis\AbstractFlowPass.vb (2)
334Case SpecialType.System_Void, 830Debug.Assert(node.ValueOpt IsNot Nothing OrElse node.HasErrors OrElse node.Type.SpecialType = SpecialType.System_Void)
Analysis\InitializerRewriter.vb (2)
213If expr.Type.SpecialType <> SpecialType.System_Void Then 227Debug.Assert(submissionResult.Type.SpecialType <> SpecialType.System_Void)
Binding\Binder_Expressions.vb (2)
693If typeSym.IsArrayType AndAlso DirectCast(typeSym, ArrayTypeSymbol).ElementType.SpecialType = SpecialType.System_Void Then 1258(exprType IsNot Nothing AndAlso exprType.SpecialType = SpecialType.System_Void) Then
Binding\Binder_Initializers.vb (1)
214If expression.Type Is Nothing OrElse expression.Type.SpecialType <> SpecialType.System_Void Then
Binding\Binder_Lambda.vb (6)
73returnType = GetSpecialType(SpecialType.System_Void, node.SubOrFunctionHeader, diagnostics) 172If target.ReturnType.SpecialType <> SpecialType.System_Void AndAlso 205Compilation.GetSpecialType(SpecialType.System_Void), ' No need to report use-site error. 289If source.ReturnType Is Nothing AndAlso target.ReturnType.SpecialType <> SpecialType.System_Void Then 773Dim targetSignature As New UnboundLambda.TargetSignature(ImmutableArray(Of ParameterSymbol).Empty, Compilation.GetSpecialType(SpecialType.System_Void), returnsByRef:=False) 863Compilation.GetSpecialType(SpecialType.System_Void),
Binding\Binder_Lookup.vb (1)
1928If container IsNot Nothing And container.SpecialType = SpecialType.System_Void Then
Binding\Binder_Statements.vb (6)
2264Compilation.GetSpecialType(SpecialType.System_Void), 2751GetSpecialType(SpecialType.System_Void, conditionalAccess.Syntax, diagnostics)) 4979Return Compilation.GetSpecialType(SpecialType.System_Void) 4983Return Compilation.GetSpecialType(SpecialType.System_Void) 5017If retType.SpecialType = SpecialType.System_Void Then 5023If(isAsync AndAlso Not methodReturnType.SpecialType = SpecialType.System_Void, ERRID.ERR_ReturnFromNonGenericTaskAsync, ERRID.ERR_ReturnFromNonFunction)))
Binding\Binder_Symbols.vb (1)
64If type.SpecialType = SpecialType.System_Void Then
BoundTree\BoundAssignmentOperator.vb (2)
42left.GetPropertyOrXmlProperty().ContainingAssembly.GetSpecialType(SpecialType.System_Void), 44left.Type.ContainingAssembly.GetSpecialType(SpecialType.System_Void),
BoundTree\BoundSequence.vb (1)
16Debug.Assert(Me.ValueOpt IsNot Nothing OrElse Me.HasErrors OrElse Me.Type.SpecialType = SpecialType.System_Void)
CodeGen\EmitExpression.vb (1)
523Debug.Assert(sequence.ValueOpt IsNot Nothing OrElse sequence.Type.SpecialType = SpecialType.System_Void)
Compilation\ClsComplianceChecker.vb (1)
440Debug.Assert(symbol.DelegateReturnType.SpecialType = SpecialType.System_Void)
Compilation\MethodCompiler.vb (1)
2080Dim voidType As NamedTypeSymbol = constructor.ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Compilation\VisualBasicCompilation.vb (2)
847Return info.Type.SpecialType <> SpecialType.System_Void 852Return info.Type.SpecialType <> SpecialType.System_Void
Emit\PEModuleBuilder.vb (1)
757Return New SynthesizedPrivateImplementationDetailsSharedConstructor(SourceModule, GetPrivateImplClass(syntaxOpt, diagnostics), GetUntranslatedSpecialType(SpecialType.System_Void, syntaxOpt, diagnostics)).GetCciAdapter()
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (1)
93If rewrittenType.SpecialType <> SpecialType.System_Void Then
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
479Case SpecialType.System_Void,
Lowering\AsyncRewriter\AsyncRewriter.vb (3)
53Me._resultType = Me.F.SpecialType(SpecialType.System_Void) 57Me._resultType = Me.F.SpecialType(SpecialType.System_Void) 312EnsureSpecialType(SpecialType.System_Void, bag)
Lowering\LocalRewriter\LocalRewriter.vb (1)
772If type.SpecialType = SpecialType.System_Void Then
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (1)
724Dim voidType = GetSpecialTypeWithUseSiteDiagnostics(SpecialType.System_Void, syntaxNode)
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (6)
398Me.GetSpecialType(SpecialType.System_Void)) 457Me.GetSpecialType(SpecialType.System_Void)) 531Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(memberAccess), Nothing, Me.GetSpecialType(SpecialType.System_Void)) 536Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(memberAccess), Nothing, Me.GetSpecialType(SpecialType.System_Void)) 610Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(invocation), Nothing, Me.GetSpecialType(SpecialType.System_Void)) 615Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(invocation), Nothing, Me.GetSpecialType(SpecialType.System_Void))
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
333sequenceType = GetSpecialType(SpecialType.System_Void)
Lowering\LocalRewriter\LocalRewriter_RedimClause.vb (1)
95Compilation.GetSpecialType(SpecialType.System_Void)))
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (1)
485Debug.Assert(node.ValueOpt IsNot Nothing OrElse node.HasErrors OrElse node.Type.SpecialType = SpecialType.System_Void)
Semantics\Conversions.vb (4)
2330If source.SpecialType = SpecialType.System_Void OrElse destination.SpecialType = SpecialType.System_Void Then 3385If source.SpecialType = SpecialType.System_Void OrElse destination.SpecialType = SpecialType.System_Void Then
Semantics\TypeInference\TypeArgumentInference.vb (2)
2134Dim inferenceSignature As New UnboundLambda.TargetSignature(delegateParams, unboundLambda.Binder.Compilation.GetSpecialType(SpecialType.System_Void), returnsByRef:=False) 2204unboundLambda.Binder.Compilation.GetSpecialType(SpecialType.System_Void),
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (1)
165Return Compilation.GetSpecialType(SpecialType.System_Void)
Symbols\ErrorMethodSymbol.vb (1)
170Return _returnType.SpecialType = SpecialType.System_Void
Symbols\EventSymbol.vb (1)
160Return ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
870Return Me.ReturnType.SpecialType = SpecialType.System_Void
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1141Case SpecialType.System_Void,
Symbols\MethodSymbol.vb (1)
540If returnType.SpecialType <> SpecialType.System_Int32 AndAlso returnType.SpecialType <> SpecialType.System_Void Then
Symbols\SignatureOnlyMethodSymbol.vb (1)
144Return ReturnType.SpecialType = SpecialType.System_Void
Symbols\Source\SourceDelegateMethodSymbol.vb (4)
81Dim voidType = binder.GetSpecialType(SpecialType.System_Void, syntax, diagnostics) 123Return binder.GetSpecialType(SpecialType.System_Void, syntax, diagnostics) 258If(returnType.SpecialType = SpecialType.System_Void, SourceMemberFlags.MethodIsSub, Nothing), 331If(invoke.ReturnType.SpecialType = SpecialType.System_Void, SourceMemberFlags.MethodIsSub, Nothing),
Symbols\Source\SourceMethodSymbol.vb (3)
2259Return binder.GetSpecialType(SpecialType.System_Void, Syntax, diagBag) 2265binder.GetSpecialType(SpecialType.System_Void, Syntax, diagBag)) 2280retType = binder.GetSpecialType(SpecialType.System_Void, Syntax, diagBag)
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
242Return binder.GetSpecialType(SpecialType.System_Void, Me.DeclarationSyntax, diagBag)
Symbols\Source\SourcePropertySymbol.vb (1)
281bodyBinder.GetSpecialType(SpecialType.System_Void, identifier, diagnostics),
Symbols\Source\SynthesizedEntryPointSymbol.vb (3)
42compilation.GetSpecialType(SpecialType.System_Void), 70Return _returnType.SpecialType = SpecialType.System_Void 229Debug.Assert(returnType.SpecialType = SpecialType.System_Void)
Symbols\Source\SynthesizedEventAccessorSymbol.vb (1)
82type = compilation.GetSpecialType(SpecialType.System_Void)
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
95Return _returnType.SpecialType = SpecialType.System_Void
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
44Return ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (1)
213Return ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Symbols\SpecialTypeExtensions.vb (3)
186Case SpecialType.System_Void 269Case SpecialType.System_Void 369Case SpecialType.System_Void
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (2)
47m_voidType = binder.GetSpecialType(SpecialType.System_Void, syntaxReference.GetSyntax(), diagnostics) 52m_voidType = ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (1)
253Return _returnType.SpecialType = SpecialType.System_Void
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (1)
96Dim type = ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Symbols\TypeSymbolExtensions.vb (1)
351Return this.SpecialType = SpecialType.System_Void
Utilities\TypeUnification.vb (1)
151If t2.Type.SpecialType = SpecialType.System_Void Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
111If typeInfo.Type IsNot Nothing AndAlso typeInfo.Type.SpecialType = SpecialType.System_Void Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\MethodGenerator.vb (1)
70Dim isSub = method.ReturnType.SpecialType = SpecialType.System_Void
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
486Return types.Select(Function(t) New TypeInferenceInfo(If(t.InferredType.SpecialType = SpecialType.System_Void, task, taskOfT.Construct(t.InferredType)))) 648Return CreateResult(SpecialType.System_Void)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (1)
232returnType:=compilation.GetSpecialType(SpecialType.System_Void),
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
CodeGen\CodeGenTuples.vb (1)
16410Assert.False(m1ToString.ReturnType.SpecialType = SpecialType.System_Void)
Emit\EmitMetadata.vb (1)
518Assert.Same([Module].GetCorLibType(SpecialType.System_Void), m4.ReturnType)
Emit\NoPiaEmbedTypes.vb (1)
1308Assert.Equal(SpecialType.System_Void, paramInfo(0).Type.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (3)
CompilationContext.vb (2)
95_voidType = Me.Compilation.GetSpecialType(SpecialType.System_Void) 517Case SpecialType.System_Void
Symbols\EEMethodSymbol.vb (1)
263Return ReturnType.SpecialType = SpecialType.System_Void
Microsoft.CodeAnalysis.VisualBasic.Features (3)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (3)
143returnType:=semanticModel.Compilation.GetSpecialType(SpecialType.System_Void), 285semanticModel.Compilation.GetSpecialType(SpecialType.System_Void)) 392returnType:=semanticModel.Compilation.GetSpecialType(SpecialType.System_Void),
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Semantics\Conversions.vb (1)
1923Dim void = c1.GetSpecialType(System_Void)
Semantics\GetExtendedSemanticInfoTests.vb (2)
1960Assert.Equal(SpecialType.System_Void, semanticInfo.Type.SpecialType) 1961Assert.Equal(SpecialType.System_Void, semanticInfo.ConvertedType.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (5)
SymbolsTests\ExtensionMethods\ExtensionMethodTests.vb (1)
2563Dim reducedMethodOnVoid = extensionMethod.ReduceExtensionMethod(compilation.GetSpecialType(SpecialType.System_Void))
SymbolsTests\Metadata\PE\LoadingEvents.vb (1)
122Assert.Equal(SpecialType.System_Void, accessor.ReturnType.SpecialType)
SymbolsTests\Metadata\WinMdEventTest.vb (2)
1605Dim voidType = compilation.GetSpecialType(SpecialType.System_Void) 1632Dim voidType = compilation.GetSpecialType(SpecialType.System_Void)
SymbolsTests\Source\ClsComplianceTests.vb (1)
2564Case SpecialType.None, SpecialType.System_Void, SpecialType.System_Runtime_CompilerServices_IsVolatile
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
111If typeInfo.Type IsNot Nothing AndAlso typeInfo.Type.SpecialType = SpecialType.System_Void Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\MethodGenerator.vb (1)
70Dim isSub = method.ReturnType.SpecialType = SpecialType.System_Void
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
486Return types.Select(Function(t) New TypeInferenceInfo(If(t.InferredType.SpecialType = SpecialType.System_Void, task, taskOfT.Construct(t.InferredType)))) 648Return CreateResult(SpecialType.System_Void)
Microsoft.CodeAnalysis.Workspaces (7)
Recommendations\AbstractRecommendationService.cs (1)
79if (namedType.SpecialType == SpecialType.System_Void)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (1)
67case SpecialType.System_Void:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (2)
59=> symbol?.SpecialType == SpecialType.System_Void; 379case SpecialType.System_Void:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
15PredefinedType.Void => SpecialType.System_Void,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
15SpecialType.System_Void => PredefinedType.Void,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationMethodSymbol.cs (1)
80=> this.ReturnType == null || this.ReturnType.SpecialType == SpecialType.System_Void;
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSManagedTypeInfo.cs (2)
19case { SpecialType: SpecialType.System_Void }: 65case IPointerTypeSymbol { PointedAtType.SpecialType: SpecialType.System_Void }:
Microsoft.Interop.SourceGeneration (5)
ManagedToNativeStubGenerator.cs (1)
88HasForwardedTypes |= generator.IsForwarder() && generator is { TypeInfo.ManagedType: not SpecialTypeInfo { SpecialType: Microsoft.CodeAnalysis.SpecialType.System_Void } };
ManagedTypeInfo.cs (1)
88public static readonly SpecialTypeInfo Void = new("void", "void", SpecialType.System_Void);
Marshalling\MarshalAsMarshallingGeneratorResolver.cs (1)
91case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Void } }:
MarshallingAttributeInfo.cs (1)
131SpecialType.System_Void => CreateWellKnownComExceptionMarshallingData(TypeNames.ExceptionAsVoidMarshaller, unmanagedReturnType),
TypeSymbolExtensions.cs (1)
191return type is SpecialType.System_Void
Microsoft.VisualStudio.LanguageServices (3)
ChangeSignature\AddParameterDialogViewModel.cs (1)
205if (TypeSymbol is { SpecialType: SpecialType.System_Void })
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
92typeSymbol.SpecialType == SpecialType.System_Void)
Venus\ContainedLanguageCodeSupport.cs (1)
194returnType: targetDocument.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetSpecialType(SpecialType.System_Void),
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
713case SpecialType.System_Void:
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.vb (1)
753If typeSymbol.SpecialType = SpecialType.System_Void Then
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
98Not methodSymbol.ReturnType.SpecialType = SpecialType.System_Void Then