496 references to System_Void
Microsoft.CodeAnalysis (215)
MetadataReader\MetadataTypeCodeExtensions.cs (2)
22return SpecialType.System_Void; 107case SpecialType.System_Void:
Operations\ControlFlowGraphBuilder.cs (1)
4165return 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 (17)
24(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 226(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 234(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 242(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 250(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 258(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 266(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 274(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 662(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 761(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 792(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 869(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 894(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 917(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 942(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 986(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 1046(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type
SpecialTypeExtensions.cs (1)
66case SpecialType.System_Void:
SpecialTypes.cs (2)
102s_typeIdToTypeCodeMap[(int)SpecialType.System_Void] = Microsoft.Cci.PrimitiveTypeCode.Void; 126s_typeCodeToTypeIdMap[(int)Microsoft.Cci.PrimitiveTypeCode.Void] = SpecialType.System_Void;
WellKnownMembers.cs (191)
326(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 334(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 341(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 380(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 388(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 507(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 529(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 536(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 543(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 551(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 558(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 573(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 580(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 587(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 595(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 602(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 634(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 642(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 650(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 658(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 666(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 675(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 684(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 693(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 702(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 710(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 718(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 726(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 734(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 742(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 758(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 765(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 774(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 782(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 790(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 798(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 835(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 843(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 860(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 871(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 883(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 891(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 903(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 915(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 922(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 929(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 937(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 945(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 959(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 966(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 975(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 982(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1026(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1051(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1066(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1073(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1086(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1136(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1144(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 1153(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2001(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2014(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2039(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2049(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2061(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2068(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2081(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2092(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2099(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2143(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2151(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2160(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2167(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2197(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2291(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2298(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2313(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2321(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2328(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2337(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2346(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2354(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2369(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2377(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2384(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2393(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2402(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2410(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2432(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 2457(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2466(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2474(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2492(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2500(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2556(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2565(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2582(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2597(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2827(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2835(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2844(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2854(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2865(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2877(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2890(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2904(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2920(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 2998(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3012(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3021(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3030(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3039(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3048(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3057(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3066(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3075(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3084(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3093(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3102(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3103(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Value 3111(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3112(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Value address 3121(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3130(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3139(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3148(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3157(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3166(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3175(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3184(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3193(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3202(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3211(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3220(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3221(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Value 3229(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3230(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Value address 3239(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3248(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3257(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3265(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3273(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3282(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3290(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3297(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3304(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3311(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3320(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3321(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3329(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3352(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3353(byte)SignatureTypeCode.Pointer, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3361(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3369(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3394(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3457(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3474(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3520(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3580(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3594(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3601(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3609(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3640(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3654(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3670(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3684(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3696(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3704(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3720(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3727(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3736(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3745(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3768(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3775(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3783(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3790(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3822(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type, 3829(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3837(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3844(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3876(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3890(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3897(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3904(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3911(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3960(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3968(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type 3975(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, 3982(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Void, // Return Type
Microsoft.CodeAnalysis.CodeStyle (6)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
144value.Type.SpecialType == SpecialType.System_Void)
ITypeSymbolExtensions.cs (2)
57=> symbol?.SpecialType == SpecialType.System_Void; 377case SpecialType.System_Void:
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
66case SpecialType.System_Void:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
15SpecialType.System_Void => PredefinedType.Void,
PredefinedTypeExtensions.cs (1)
15PredefinedType.Void => SpecialType.System_Void,
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationMethodSymbol.cs (1)
80=> this.ReturnType == null || this.ReturnType.SpecialType == SpecialType.System_Void;
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder.ValueChecks.cs (3)
556if ((expr.ConstantValueOpt != null) || (expr.Type.GetSpecialTypeSafe() == SpecialType.System_Void)) 2921if (expr.Type?.GetSpecialTypeSafe() == SpecialType.System_Void) 3165if (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)
1001if (boundArgument.Type?.SpecialType == SpecialType.System_Void) 5513type: GetSpecialType(SpecialType.System_Void, diagnostics, elementInitializer), 9412accessType = GetSpecialType(SpecialType.System_Void, diagnostics, node);
Binder\Binder_InterpolatedString.cs (2)
818if (!methodReturnsBool && returnType.SpecialType != SpecialType.System_Void) 830var 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)
1524type = this.GetSpecialType(SpecialType.System_Void, diagnostics, node); 3414else if (expression.Type?.SpecialType == SpecialType.System_Void)
Binder\Semantics\Conversions\ConversionsBase.cs (3)
241var sourceIsVoid = source?.SpecialType == SpecialType.System_Void; 242var destIsVoid = destination.SpecialType == SpecialType.System_Void; 3144return source.IsPointerOrFunctionPointer() && destination is PointerTypeSymbol { PointedAtType: { SpecialType: SpecialType.System_Void } };
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
583var 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)
1302if (!returnType.HasType || returnType.SpecialType == SpecialType.System_Void) 1357if (!sourceReturnType.HasType || sourceReturnType.SpecialType == SpecialType.System_Void)
BoundTree\UnboundLambda.cs (3)
723returnType = TypeWithAnnotations.Create(Binder.Compilation.GetSpecialType(SpecialType.System_Void)); 924? TypeWithAnnotations.Create(this.Binder.Compilation.GetSpecialType(SpecialType.System_Void)) 1172? this.Binder.Compilation.GetSpecialType(SpecialType.System_Void)
Compilation\CSharpCompilation.cs (3)
788return info.ConvertedType?.SpecialType != SpecialType.System_Void; 4075csharpLeftType is PointerTypeSymbol { PointedAtType.SpecialType: SpecialType.System_Void } && 4076csharpRightType is PointerTypeSymbol { PointedAtType.SpecialType: SpecialType.System_Void })
Emitter\Model\PEModuleBuilder.cs (5)
1544return new SynthesizedPrivateImplementationDetailsStaticConstructor(SourceModule, details, GetUntranslatedSpecialType(SpecialType.System_Void, syntaxOpt, diagnostics)).GetCciAdapter(); 1839TypeSymbol returnType = factory.SpecialType(SpecialType.System_Void); 1869TypeSymbol returnType = factory.SpecialType(SpecialType.System_Void); 1890TypeSymbol returnType = factory.SpecialType(SpecialType.System_Void); 1915TypeSymbol returnType = factory.SpecialType(SpecialType.System_Void);
FlowAnalysis\NullableWalker.cs (1)
4099if (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)
567if (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);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
633case SpecialType.System_Void:
Symbols\AnonymousTypes\AnonymousTypeManager.SymbolCollection.cs (1)
116get { return Compilation.GetSpecialType(SpecialType.System_Void); }
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (2)
178returnsVoid ? Compilation.GetSpecialType(SpecialType.System_Void) : null, 469returnsVoid ? Compilation.GetSpecialType(SpecialType.System_Void) : null,
Symbols\BaseTypeAnalysis.cs (1)
255case SpecialType.System_Void:
Symbols\Source\SourceConstructorSymbolBase.cs (1)
60_lazyReturnType = TypeWithAnnotations.Create(bodyBinder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax));
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
56var voidType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax));
Symbols\Source\SourceDestructorSymbol.cs (1)
73_lazyReturnType = TypeWithAnnotations.Create(bodyBinder.GetSpecialType(SpecialType.System_Void, diagnostics, syntax));
Symbols\Source\SourceEventAccessorSymbol.cs (2)
131TypeSymbol voidType = compilation.GetSpecialType(SpecialType.System_Void); 145TypeSymbol voidType = compilation.GetSpecialType(SpecialType.System_Void);
Symbols\Source\SourceMemberContainerSymbol.cs (3)
4035TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Void)), 4052if (deconstruct.ReturnType.SpecialType != SpecialType.System_Void && !deconstruct.ReturnType.IsErrorType()) 4082TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Void)),
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
388var type = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Void, diagnostics, this.GetSyntax()));
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
42return (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)
44_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)
99return type.SpecialType == SpecialType.System_Void;
Syntax\SyntaxKindExtensions.cs (1)
16return SpecialType.System_Void;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
CSharpFixReturnTypeCodeFixProvider.cs (1)
107if (previousReturnType.SpecialType is SpecialType.System_Void ||
CSharpTypeInferenceService.TypeInferrer.cs (3)
1260return CreateResult(SpecialType.System_Void); 2019return types.Select(t => t.InferredType.SpecialType == SpecialType.System_Void ? new TypeInferenceInfo(task) : new TypeInferenceInfo(taskOfT.Construct(t.InferredType))); 2057return this.Compilation.GetSpecialType(SpecialType.System_Void);
InternalExtensions.cs (1)
36if (typeInfo.Type != null && typeInfo.Type.SpecialType == SpecialType.System_Void)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
221if (symbol.SpecialType == SpecialType.System_Void)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
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);
Emit\NoPiaEmbedTypes.cs (1)
1480Assert.Equal(SpecialType.System_Void, paramInfo[0].Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (4)
CompilationContext.cs (1)
724else if (expressionType.SpecialType == SpecialType.System_Void)
Symbols\EEMethodSymbol.cs (3)
316get { return this.ReturnType.SpecialType == SpecialType.System_Void; } 734return compilation.GetSpecialType(SpecialType.System_Void); 744return compilation.GetSpecialType(SpecialType.System_Void);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
ExpressionCompilerTests.cs (1)
1668Assert.Equal(SpecialType.System_Void, method.ReturnType.SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
96if (type.SpecialType == SpecialType.System_Void)
CSharpFixReturnTypeCodeFixProvider.cs (1)
107if (previousReturnType.SpecialType is SpecialType.System_Void ||
ExtractMethod\CSharpMethodExtractor.cs (1)
177if (type.SpecialType == 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)
5991Assert.Equal(SpecialType.System_Void, type.Type.SpecialType); 5992Assert.Equal(SpecialType.System_Void, type.ConvertedType.SpecialType); 6034Assert.Equal(SpecialType.System_Void, type.Type.SpecialType); 6035Assert.Equal(SpecialType.System_Void, type.ConvertedType.SpecialType); 6074Assert.Equal(SpecialType.System_Void, type.Type.SpecialType); 6075Assert.Equal(SpecialType.System_Void, type.ConvertedType.SpecialType); 6156Assert.Equal(SpecialType.System_Void, type.Type.SpecialType); 6157Assert.Equal(SpecialType.System_Void, type.ConvertedType.SpecialType);
Semantics\FunctionPointerTests.cs (1)
189Assert.True(typeInfo.ConvertedType is IPointerTypeSymbol { PointedAtType: { SpecialType: SpecialType.System_Void } });
Semantics\InterpolationTests.cs (1)
4428comp.MakeTypeMissing(SpecialType.System_Void);
Semantics\OperatorTests.cs (2)
8281compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Void)), 8282compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Void)),
Semantics\RawInterpolationTests_Handler.cs (1)
2730comp.MakeTypeMissing(SpecialType.System_Void);
Semantics\UnsafeTests.cs (7)
5044Assert.Equal(SpecialType.System_Void, callSummary.Type.SpecialType); 5045Assert.Equal(SpecialType.System_Void, callSummary.ConvertedType.SpecialType); 5107Assert.Equal(SpecialType.System_Void, callSummary.Type.SpecialType); 5550Assert.NotEqual(SpecialType.System_Void, ((IPointerTypeSymbol)type).PointedAtType.SpecialType); 5554Assert.Equal(SpecialType.System_Void, ((IPointerTypeSymbol)convertedType).PointedAtType.SpecialType); 7455var voidSymbol = compilation.GetSpecialType(SpecialType.System_Void); 8460Assert.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)
4100var systemVoidType = compilation.GetSpecialType(SpecialType.System_Void); 4101Assert.Equal(SpecialType.System_Void, systemVoidType.SpecialType);
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1603var @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)
116Assert.Equal(SpecialType.System_Void, accessor.ReturnType.SpecialType);
Symbols\Metadata\PE\LoadingIndexers.cs (1)
1076Assert.Equal(SpecialType.System_Void, accessor.ReturnType.SpecialType);
Symbols\Source\ClsComplianceTests.cs (1)
3164case 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)
537Assert.Equal(SpecialType.System_Void, accessor.ReturnType.SpecialType); 547Assert.Equal(SpecialType.System_Void, accessor.ReturnType.SpecialType);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (3)
CodeGen\WinMdEventTests.cs (1)
672Assert.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)
CSharpTypeInferenceService.TypeInferrer.cs (3)
1260return CreateResult(SpecialType.System_Void); 2019return types.Select(t => t.InferredType.SpecialType == SpecialType.System_Void ? new TypeInferenceInfo(task) : new TypeInferenceInfo(taskOfT.Construct(t.InferredType))); 2057return this.Compilation.GetSpecialType(SpecialType.System_Void);
InternalExtensions.cs (1)
36if (typeInfo.Type != null && typeInfo.Type.SpecialType == SpecialType.System_Void)
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
221if (symbol.SpecialType == SpecialType.System_Void)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
58SpecialType.System_Void => SyntaxKind.VoidKeyword,
Microsoft.CodeAnalysis.Features (20)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
144value.Type.SpecialType == SpecialType.System_Void)
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (1)
71if (type.SpecialType == SpecialType.System_Void)
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
58var inferredTypes = context.InferredTypes.Where(t => t.SpecialType != SpecialType.System_Void).ToSet();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
861model.Compilation.GetSpecialType(SpecialType.System_Void),
ExtractMethod\MethodExtractor.Analyzer.cs (3)
187returnType = model.Compilation.GetSpecialType(SpecialType.System_Void); 208if (taskType is object && returnType.Equals(model.Compilation.GetSpecialType(SpecialType.System_Void))) 256: compilation.GetSpecialType(SpecialType.System_Void);
ExtractMethod\MethodExtractor.AnalyzerResult.cs (1)
144return ReturnType.SpecialType != SpecialType.System_Void && !AwaitTaskReturn;
ExtractMethod\MethodExtractor.CodeGenerator.cs (1)
207if (type != null && type.SpecialType != SpecialType.System_Void)
GenerateMember\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
80returnType: semanticModel.Compilation.GetSpecialType(SpecialType.System_Void),
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
65if (typeParameters.Length == 0 && returnType.SpecialType != SpecialType.System_Void)
GenerateMember\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
450inferredType = inferredType.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)
47if (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)
ValueTracking\ValueTracker.cs (1)
247return 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 (85)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
821Debug.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 (3)
672If typeSym.IsArrayType AndAlso DirectCast(typeSym, ArrayTypeSymbol).ElementType.SpecialType = SpecialType.System_Void Then 1237(exprType IsNot Nothing AndAlso exprType.SpecialType = SpecialType.System_Void) Then 4898resultType = GetSpecialType(SpecialType.System_Void, node, diagnostics)
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)
2235Compilation.GetSpecialType(SpecialType.System_Void), 2722GetSpecialType(SpecialType.System_Void, conditionalAccess.Syntax, diagnostics)) 4948Return Compilation.GetSpecialType(SpecialType.System_Void) 4952Return Compilation.GetSpecialType(SpecialType.System_Void) 4986If retType.SpecialType = SpecialType.System_Void Then 4992If(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\BoundAwaitOperator.vb (1)
15Debug.Assert(Type.Equals(GetResult.Type) OrElse Type.SpecialType = 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)
518Debug.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)
2030Dim voidType As NamedTypeSymbol = constructor.ContainingAssembly.GetSpecialType(SpecialType.System_Void)
Compilation\VisualBasicCompilation.vb (2)
846Return info.Type.SpecialType <> SpecialType.System_Void 851Return info.Type.SpecialType <> SpecialType.System_Void
Emit\PEModuleBuilder.vb (1)
751Return New SynthesizedPrivateImplementationDetailsSharedConstructor(SourceModule, details, 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)
453Case 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)
402Me.GetSpecialType(SpecialType.System_Void)) 461Me.GetSpecialType(SpecialType.System_Void)) 535Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(memberAccess), Nothing, Me.GetSpecialType(SpecialType.System_Void)) 540Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(memberAccess), Nothing, Me.GetSpecialType(SpecialType.System_Void)) 614Return New BoundSequence(syntax, ImmutableArray(Of LocalSymbol).Empty, ImmutableArray.Create(Of BoundExpression)(invocation), Nothing, Me.GetSpecialType(SpecialType.System_Void)) 619Return 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)
Lowering\SyntheticBoundNodeFactory.vb (1)
1103Me.SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Void),
Semantics\Conversions.vb (4)
2325If source.SpecialType = SpecialType.System_Void OrElse destination.SpecialType = SpecialType.System_Void Then 3380If source.SpecialType = SpecialType.System_Void OrElse destination.SpecialType = SpecialType.System_Void Then
Semantics\TypeInference\TypeArgumentInference.vb (2)
2143Dim inferenceSignature As New UnboundLambda.TargetSignature(delegateParams, unboundLambda.Binder.Compilation.GetSpecialType(SpecialType.System_Void), returnsByRef:=False) 2225unboundLambda.Binder.Compilation.GetSpecialType(SpecialType.System_Void),
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (1)
178Return 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)
847Return Me.ReturnType.SpecialType = SpecialType.System_Void
Symbols\MethodSymbol.vb (1)
523If 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)
2249Return binder.GetSpecialType(SpecialType.System_Void, Syntax, diagBag) 2255binder.GetSpecialType(SpecialType.System_Void, Syntax, diagBag)) 2270retType = binder.GetSpecialType(SpecialType.System_Void, Syntax, diagBag)
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
240Return binder.GetSpecialType(SpecialType.System_Void, Me.DeclarationSyntax, diagBag)
Symbols\Source\SourcePropertySymbol.vb (1)
279bodyBinder.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)
212Return 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)
ExpressionSyntaxExtensions.vb (1)
111If typeInfo.Type IsNot Nothing AndAlso typeInfo.Type.SpecialType = SpecialType.System_Void Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
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)
239returnType:=compilation.GetSpecialType(SpecialType.System_Void),
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
CodeGen\CodeGenTuples.vb (1)
16411Assert.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.ExpressionEvaluator.ExpressionCompiler (3)
CompilationContext.vb (2)
95_voidType = Me.Compilation.GetSpecialType(SpecialType.System_Void) 514Case SpecialType.System_Void
Symbols\EEMethodSymbol.vb (1)
263Return ReturnType.SpecialType = SpecialType.System_Void
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
ExpressionCompilerTests.vb (1)
1708Assert.Equal(SpecialType.System_Void, method.ReturnType.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Features (4)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (3)
144returnType:=semanticModel.Compilation.GetSpecialType(SpecialType.System_Void), 286semanticModel.Compilation.GetSpecialType(SpecialType.System_Void)) 393returnType:=semanticModel.Compilation.GetSpecialType(SpecialType.System_Void),
ExtractMethod\VisualBasicMethodExtractor.vb (1)
91If type.SpecialType = SpecialType.System_Void Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Semantics\Conversions.vb (1)
1905Dim 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)
123Assert.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)
CodeGeneration\MethodGenerator.vb (1)
70Dim isSub = method.ReturnType.SpecialType = SpecialType.System_Void
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb\ExpressionSyntaxExtensions.vb (1)
111If typeInfo.Type IsNot Nothing AndAlso typeInfo.Type.SpecialType = SpecialType.System_Void Then
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)
CodeGenerationMethodSymbol.cs (1)
80=> this.ReturnType == null || this.ReturnType.SpecialType == SpecialType.System_Void;
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
66case SpecialType.System_Void:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (2)
57=> symbol?.SpecialType == SpecialType.System_Void; 377case SpecialType.System_Void:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
15SpecialType.System_Void => PredefinedType.Void,
PredefinedTypeExtensions.cs (1)
15PredefinedType.Void => SpecialType.System_Void,
Recommendations\AbstractRecommendationService.cs (1)
79if (namedType.SpecialType == SpecialType.System_Void)
Microsoft.VisualStudio.LanguageServices (2)
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
94typeSymbol.SpecialType == SpecialType.System_Void)
Venus\ContainedLanguageCodeSupport.cs (1)
195returnType: targetDocument.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetSpecialType(SpecialType.System_Void),
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
716case SpecialType.System_Void:
Microsoft.VisualStudio.LanguageServices.Implementation (2)
CodeModel\AbstractCodeModelService.cs (1)
800EnvDTE.vsCMTypeRef.vsCMTypeRefVoid => SpecialType.System_Void,
CodeModel\FileCodeModel_CodeGen.cs (1)
316: semanticModel.Compilation.GetSpecialType(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