54 references to IsVoid
ILCompiler.Compiler (29)
Compiler\BodySubstitution.cs (1)
43
Debug.Assert(method.Signature.ReturnType.
IsVoid
);
Compiler\BodySubstitutionParser.cs (1)
78
if (method.Signature.ReturnType.
IsVoid
)
Compiler\Dataflow\MethodBodyScanner.cs (3)
754
if (!signature.ReturnType.
IsVoid
)
798
bool ilHasReturnValue = !methodIL.OwningMethod.Signature.ReturnType.
IsVoid
;
1304
if (isNewObj || !calledMethod.Signature.ReturnType.
IsVoid
)
Compiler\DependencyAnalysis\ReflectionInvokeMapNode.cs (1)
96
if (type.IsPrimitive || type.
IsVoid
)
Compiler\TypePreinit.cs (2)
343
bool returnsVoid = methodIL.OwningMethod.Signature.ReturnType.
IsVoid
;
546
if (!methodSig.ReturnType.
IsVoid
)
IL\ILImporter.Scanner.cs (2)
1626
if (elementType.
IsVoid
)
2055
if (returnType.
IsVoid
)
IL\RvaIntrinsicPatternAnalyzer.cs (2)
284
if ((!elementType.IsPrimitive || elementType.
IsVoid
)
330
&& signature.ReturnType.
IsVoid
IL\Stubs\StartupCode\StartupCodeMainMethod.cs (2)
152
if (!_mainMethod.Signature.ReturnType.
IsVoid
)
164
if (_mainMethod.Signature.ReturnType.
IsVoid
)
parent\parent\Common\Compiler\AsyncMethodVariant.cs (1)
89
Debug.Assert(!asyncVariant.Signature.ReturnType.
IsVoid
);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (2)
47
&& !asyncVariant.Signature.ReturnType.
IsVoid
)
244
Debug.Assert(!asyncVariantMethod.Signature.ReturnType.
IsVoid
);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (2)
302
if (parameterType.
IsVoid
)
379
|| typeArg.
IsVoid
)
parent\parent\Common\Compiler\Dataflow\MethodProxy.cs (1)
75
internal partial bool ReturnsVoid() => Method.Signature.ReturnType.
IsVoid
;
parent\parent\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (1)
239
if (!method.Signature.ReturnType.
IsVoid
)
parent\parent\Common\JitInterface\WasmLowering.cs (1)
703
else if (loweredReturnType.
IsVoid
)
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (1)
100
bool returnsVoid = _targetMethod.Signature.ReturnType.
IsVoid
;
parent\parent\Common\TypeSystem\IL\Stubs\DelegateThunks.cs (2)
321
if (!Signature.ReturnType.
IsVoid
)
529
bool hasReturnValue = !Signature.ReturnType.
IsVoid
;
parent\parent\Common\TypeSystem\IL\Stubs\DynamicInvokeMethodThunk.cs (1)
175
if (!returnType.
IsVoid
)
parent\parent\Common\TypeSystem\IL\Stubs\PInvokeILEmitter.cs (3)
102
if (!flags.PreserveSig && !parameterType.
IsVoid
)
268
bool isHRSwappedRetVal = !_flags.PreserveSig && !_targetMethod.Signature.ReturnType.
IsVoid
;
396
bool isHRSwappedRetVal = !_flags.PreserveSig && !_targetMethod.Signature.ReturnType.
IsVoid
;
ILCompiler.ReadyToRun (16)
Compiler\ExternalReferenceTokenManager.cs (1)
153
if (type.IsPrimitive || type.
IsVoid
|| type.IsObject || type.IsString || type.IsTypedReference)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (1)
827
if (type.IsPrimitive || type.
IsVoid
|| type.IsObject || type.IsString || type.IsTypedReference)
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
2727
if (typeDefinition.IsPrimitive || typeDefinition.
IsVoid
|| typeDefinition.IsString || typeDefinition.IsObject
parent\parent\Common\Compiler\AsyncMethodVariant.cs (1)
89
Debug.Assert(!asyncVariant.Signature.ReturnType.
IsVoid
);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (2)
47
&& !asyncVariant.Signature.ReturnType.
IsVoid
)
244
Debug.Assert(!asyncVariantMethod.Signature.ReturnType.
IsVoid
);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (2)
302
if (parameterType.
IsVoid
)
379
|| typeArg.
IsVoid
)
parent\parent\Common\Compiler\Dataflow\MethodProxy.cs (1)
75
internal partial bool ReturnsVoid() => Method.Signature.ReturnType.
IsVoid
;
parent\parent\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (1)
239
if (!method.Signature.ReturnType.
IsVoid
)
parent\parent\Common\JitInterface\CorInfoImpl.cs (2)
2100
if (type.
IsVoid
)
3716
if (returnType.
IsVoid
)
parent\parent\Common\JitInterface\WasmLowering.cs (1)
703
else if (loweredReturnType.
IsVoid
)
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (1)
100
bool returnsVoid = _targetMethod.Signature.ReturnType.
IsVoid
;
PortableCallHelpers\InteropSignature.cs (1)
55
if (type.
IsVoid
)
PortableCallHelpers\PInvokeCollector.cs (1)
64
IsVoid = ReturnType.
IsVoid
;
ILCompiler.RyuJit (2)
parent\parent\Common\JitInterface\CorInfoImpl.cs (2)
2100
if (type.
IsVoid
)
3716
if (returnType.
IsVoid
)
ILCompiler.TypeSystem (7)
parent\parent\Common\TypeSystem\Common\TypeSystemConstraintsHelpers.cs (1)
178
if (arg.IsPointer || arg.IsByRef || arg.IsGenericParameter || arg.
IsVoid
)
parent\parent\Common\TypeSystem\IL\ILStackHelper.cs (2)
267
if (!sig.ReturnType.
IsVoid
)
278
bool hasReturnValue = !methodIL.OwningMethod.Signature.ReturnType.
IsVoid
;
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (4)
72
if (retType.
IsVoid
|| retType.IsByRef || !string.IsNullOrEmpty(name))
122
if (context.DeclarationSignature.Length != 1 || retType.
IsVoid
)
350
if (!maybeSig.ReturnType.
IsVoid
)
536
return initialType is PointerType { ParameterType.
IsVoid
: true };