169 references to ReturnType
ILCompiler.Compiler (81)
Compiler\BodySubstitution.cs (1)
43
Debug.Assert(method.Signature.
ReturnType
.IsVoid);
Compiler\BodySubstitutionParser.cs (2)
78
if (method.Signature.
ReturnType
.IsVoid)
82
object substitution = TryCreateSubstitution(method.Signature.
ReturnType
, GetAttribute(methodNav, "value"));
Compiler\Dataflow\FlowAnnotations.cs (2)
447
if (returnAnnotation != DynamicallyAccessedMemberTypes.None && !IsTypeInterestingForDataflow(signature.
ReturnType
))
736
LogValidationWarning((method.Signature.
ReturnType
, method), baseMethod, origin);
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\Dataflow\MethodReturnValue.cs (1)
24
StaticType = isNewObj ? method.OwningType : method.Signature.
ReturnType
;
Compiler\Dataflow\ReflectionMethodBodyScanner.cs (2)
490
aotUnsafeDelegate = IsAotUnsafeDelegate(calledMethod.Signature.
ReturnType
);
491
comDangerousMethod = IsComInterop(returnParamMetadata.MarshalAsDescriptor, calledMethod.Signature.
ReturnType
);
Compiler\DependencyAnalysis\CallingConventionConverterKey.cs (2)
24
typeNameFormatter.AppendName(nameBuilder, signature.
ReturnType
);
76
AppendName(sb, signature.
ReturnType
);
Compiler\DependencyAnalysis\EETypeNode.cs (1)
858
relatedTypeNode = factory.NecessaryTypeSymbol(((FunctionPointerType)_type).Signature.
ReturnType
);
Compiler\DependencyAnalysis\FunctionPointerMapNode.cs (1)
40
dependencies.Add(factory.NecessaryTypeSymbol(type.Signature.
ReturnType
), "Function pointer type composition");
Compiler\DependencyAnalysis\MethodMetadataNode.cs (2)
60
TypeMetadataNode.GetMetadataDependencies(ref dependencies, factory, sig.
ReturnType
, reason);
79
GenericArgumentDataFlow.ProcessGenericArgumentDataFlow(ref dependencies, factory, new MessageOrigin(_method), _method.Signature.
ReturnType
, _method);
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (1)
265
_returnTypeSig = factory.NativeLayout.TypeSignatureVertex(signature.
ReturnType
);
Compiler\DependencyAnalysis\NodeFactory.NativeLayout.cs (1)
180
foreach (var dependency in TemplateConstructableTypes(sig.
ReturnType
))
Compiler\DependencyAnalysis\ReflectionInvokeMapNode.cs (1)
55
AddSignatureDependency(ref dependencies, factory, method, signature.
ReturnType
, "Reflection invoke", isOut: true);
Compiler\DependencyAnalysis\TypeMetadataNode.cs (1)
136
GetMetadataDependencies(ref dependencies, nodeFactory, pointerType.Signature.
ReturnType
, reason);
Compiler\ILAssemblyGeneratingMethodDebugInfoProvider.cs (1)
70
_tw.Write(fmt.FormatName(owningMethod.Signature.
ReturnType
));
Compiler\LibraryRootProvider.cs (1)
92
CheckTypeCanBeUsedInSignature(signature.
ReturnType
);
Compiler\Logging\DocumentationSignatureParser.cs (1)
616
if (GetSignaturePart(method.Signature.
ReturnType
) != returnType)
Compiler\MetadataManager.cs (1)
1191
return IsReflectionBlocked(pointerSignature.
ReturnType
);
Compiler\SubstitutedILProvider.cs (1)
681
TypeFlags returnType = method.Signature.
ReturnType
.UnderlyingType.Category;
Compiler\SubstitutionProvider.cs (1)
52
if (!method.Signature.
ReturnType
.IsWellKnownType(WellKnownType.Boolean))
Compiler\TypePreinit.cs (4)
343
bool returnsVoid = methodIL.OwningMethod.Signature.
ReturnType
.IsVoid;
352
returnValue = stack.PopIntoLocation(methodIL.OwningMethod.Signature.
ReturnType
);
546
if (!methodSig.
ReturnType
.IsVoid)
547
stack.PushFromLocation(methodSig.
ReturnType
, retVal);
Compiler\UserDefinedTypeDescriptor.cs (1)
195
descriptor.ReturnType = GetVariableTypeIndex(DebuggerCanonicalize(signature.
ReturnType
));
IL\ILImporter.Scanner.cs (2)
2045
TypeDesc taskReturnType = taskReturningMethod.Signature.
ReturnType
;
2053
TypeDesc returnType = runtimeDeterminedCaller.Signature.
ReturnType
;
IL\RvaIntrinsicPatternAnalyzer.cs (1)
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 (2)
38
TypeDesc md = signature.
ReturnType
;
89
Debug.Assert(!asyncVariant.Signature.
ReturnType
.IsVoid);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (3)
46
if (!originalMethod.Signature.
ReturnType
.HasInstantiation
47
&& !asyncVariant.Signature.
ReturnType
.IsVoid)
244
Debug.Assert(!asyncVariantMethod.Signature.
ReturnType
.IsVoid);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (2)
228
EnsureLoadableType(sig.
ReturnType
);
312
((CompilerTypeSystemContext)type.Context).EnsureLoadableType(functionPointer.
ReturnType
);
parent\parent\Common\Compiler\Dataflow\MethodProxy.cs (1)
75
internal partial bool ReturnsVoid() => Method.Signature.
ReturnType
.IsVoid;
parent\parent\Common\Compiler\DisplayNameHelpers.cs (1)
189
AppendName(sb, signature.
ReturnType
, options);
parent\parent\Common\Compiler\MethodExtensions.cs (1)
159
TypeDesc ret = method.
ReturnType
;
parent\parent\Common\Compiler\NativeAotNameMangler.cs (2)
399
sb.Append(GetMangledTypeName(fnPtrType.Signature.
ReturnType
));
523
Utf8String sigRetTypeName = GetMangledTypeName(signature.
ReturnType
);
parent\parent\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (2)
239
if (!method.Signature.
ReturnType
.IsVoid)
241
output.Append(typeNameFormatter.FormatName(method.Signature.
ReturnType
));
parent\parent\Common\Compiler\ObjectWriter\TypeString.cs (1)
46
AppendName(sb, signature.
ReturnType
);
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (2)
534
formatter.AppendName(sb, meth.Signature.
ReturnType
);
608
AppendName(sb, type.Signature.
ReturnType
);
parent\parent\Common\JitInterface\WasmLowering.cs (3)
661
TypeDesc returnType = signature.
ReturnType
;
662
WasmValueType pointerType = (signature.
ReturnType
.Context.Target.PointerSize == 4) ? WasmValueType.I32 : WasmValueType.I64;
773
((CompilerTypeSystemContext)signature.
ReturnType
.Context).CacheEmptyStruct(paramType);
parent\parent\Common\TypeSystem\IL\DelegateInfo.cs (1)
199
TypeDesc returnType = signature.
ReturnType
;
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (3)
100
bool returnsVoid = _targetMethod.Signature.
ReturnType
.IsVoid;
104
resultLocal = ilEmitter.NewLocal(_targetMethod.Signature.
ReturnType
);
122
ilStream.Emit(ILOpcode.stobj, ilEmitter.NewToken(_targetMethod.Signature.
ReturnType
));
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (1)
26
TypeDesc returnType = sig.
ReturnType
;
parent\parent\Common\TypeSystem\IL\Stubs\CalliMarshallingMethodThunk.cs (1)
84
_targetSignature.
ReturnType
,
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMarshallingMethodThunk.cs (1)
176
TypeDesc nativeReturnType = GetNativeMethodParameterType(delegateSignature.
ReturnType
,
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMethodILEmitter.cs (1)
88
TypeDesc returnType = method.Signature.
ReturnType
.ReplaceTypesInConstructionOfType(typesToReplace, replacementTypes);
parent\parent\Common\TypeSystem\IL\Stubs\DelegateThunks.cs (6)
219
MethodSignature targetSignature = new MethodSignature(0, 0, Signature.
ReturnType
, parameters);
260
Signature.Flags | MethodSignatureFlags.Static, 0, Signature.
ReturnType
, targetMethodParameters);
321
if (!Signature.
ReturnType
.IsVoid)
323
returnValueLocal = emitter.NewLocal(Signature.
ReturnType
);
529
bool hasReturnValue = !Signature.
ReturnType
.IsVoid;
638
codeStream.Emit(ILOpcode.unbox_any, emitter.NewToken(Signature.
ReturnType
));
parent\parent\Common\TypeSystem\IL\Stubs\DynamicInvokeMethodThunk.cs (2)
54
return new MethodSignature(flags, 0, NormalizeType(sig.
ReturnType
), parameters);
172
var returnType = _targetSignature.
ReturnType
;
parent\parent\Common\TypeSystem\IL\Stubs\GetCanonTypeIntrinsic.cs (1)
25
Debug.Assert(target.Signature.
ReturnType
== runtimeTypeHandleType);
parent\parent\Common\TypeSystem\IL\Stubs\PInvokeILEmitter.cs (3)
101
parameterType = methodSig.
ReturnType
;
268
bool isHRSwappedRetVal = !_flags.PreserveSig && !_targetMethod.Signature.
ReturnType
.IsVoid;
396
bool isHRSwappedRetVal = !_flags.PreserveSig && !_targetMethod.Signature.
ReturnType
.IsVoid;
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
411
TypeDesc parameterType = (i == 0) ? methodSig.
ReturnType
: methodSig[i - 1]; //first item is the return type
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
698
EncodeType(signatureBuilder, sig.
ReturnType
, signatureDataEmitter);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (2)
143
foreach (var genParamType in GetGenericParameters(fptrType.Signature.
ReturnType
))
326
ProcessTypeReference(methodSig.
ReturnType
, typeContext, methodContext);
ILCompiler.MetadataTransform (2)
ILCompiler\Metadata\Transform.cs (1)
47
return IsBlocked(pointerSignature.
ReturnType
);
ILCompiler\Metadata\Transform.Method.cs (1)
167
ReturnType = HandleType(signature.
ReturnType
),
ILCompiler.ReadyToRun (50)
Compiler\DependencyAnalysis\ReadyToRun\GCRefMapBuilder.cs (1)
88
TypeHandle returnType = new TypeHandle(signature.
ReturnType
);
Compiler\DependencyAnalysis\ReadyToRun\SignatureBuilder.cs (1)
387
EmitTypeSignature(type.Signature.
ReturnType
, context);
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (2)
641
if (!await ValidateTypeHelper(functionPointerType.Signature.
ReturnType
))
690
if (!ValidateVarianceInType(associatedTypeInstantiation, signature.
ReturnType
, returnTypePosition))
Compiler\ReadyToRunCompilationModuleGroupBase.cs (1)
842
if (!VersionsWithTypeReference(ptrSignature.
ReturnType
))
Compiler\ReadyToRunLibraryRootProvider.cs (1)
96
CheckTypeCanBeUsedInSignature(signature.
ReturnType
);
Compiler\ReadyToRunTypeMapEncoding.cs (1)
40
if (!IsTypeDescEncodable(factory, sourceModule, signature.
ReturnType
))
Compiler\RuntimeDeterminedTypeHelper.cs (2)
108
!Equals(method1.Signature.
ReturnType
, method2.Signature.
ReturnType
))
JitInterface\CorInfoImpl.ReadyToRun.cs (3)
2707
if (!CanEncodeTypeInSignature(signature.
ReturnType
))
3753
ValidateSafetyOfUsingTypeEquivalenceOfType(signature.
ReturnType
);
3815
sig.
ReturnType
== sig.Context.GetWellKnownType(WellKnownType.Void))
parent\parent\Common\Compiler\AsyncMethodVariant.cs (2)
38
TypeDesc md = signature.
ReturnType
;
89
Debug.Assert(!asyncVariant.Signature.
ReturnType
.IsVoid);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Async.cs (3)
46
if (!originalMethod.Signature.
ReturnType
.HasInstantiation
47
&& !asyncVariant.Signature.
ReturnType
.IsVoid)
244
Debug.Assert(!asyncVariantMethod.Signature.
ReturnType
.IsVoid);
parent\parent\Common\Compiler\CompilerTypeSystemContext.Validation.cs (2)
228
EnsureLoadableType(sig.
ReturnType
);
312
((CompilerTypeSystemContext)type.Context).EnsureLoadableType(functionPointer.
ReturnType
);
parent\parent\Common\Compiler\Dataflow\MethodProxy.cs (1)
75
internal partial bool ReturnsVoid() => Method.Signature.
ReturnType
.IsVoid;
parent\parent\Common\Compiler\DisplayNameHelpers.cs (1)
189
AppendName(sb, signature.
ReturnType
, options);
parent\parent\Common\Compiler\MethodExtensions.cs (1)
159
TypeDesc ret = method.
ReturnType
;
parent\parent\Common\Compiler\NativeAotNameMangler.cs (2)
399
sb.Append(GetMangledTypeName(fnPtrType.Signature.
ReturnType
));
523
Utf8String sigRetTypeName = GetMangledTypeName(signature.
ReturnType
);
parent\parent\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (2)
239
if (!method.Signature.
ReturnType
.IsVoid)
241
output.Append(typeNameFormatter.FormatName(method.Signature.
ReturnType
));
parent\parent\Common\Compiler\ObjectWriter\TypeString.cs (1)
46
AppendName(sb, signature.
ReturnType
);
parent\parent\Common\Compiler\ProcessLinkerXmlBase.cs (2)
534
formatter.AppendName(sb, meth.Signature.
ReturnType
);
608
AppendName(sb, type.Signature.
ReturnType
);
parent\parent\Common\JitInterface\CorInfoImpl.cs (7)
933
TypeDesc returnType = signature.
ReturnType
;
935
CorInfoType corInfoRetType = asCorInfoType(signature.
ReturnType
, &sig->retTypeClass);
937
sig->retTypeSigClass = ObjectToHandle(signature.
ReturnType
);
940
ValidateSafetyOfUsingTypeEquivalenceOfType(signature.
ReturnType
);
3704
TypeDesc taskReturnType = taskReturningMethod.Signature.
ReturnType
;
3710
TypeDesc returnType = caller.Signature.
ReturnType
;
3712
TypeDesc runtimeDeterminedReturnType = runtimeDeterminedCaller.Signature.
ReturnType
;
parent\parent\Common\JitInterface\JitTypeNameFormatter.cs (1)
47
AppendName(sb, signature.
ReturnType
);
parent\parent\Common\JitInterface\WasmLowering.cs (3)
661
TypeDesc returnType = signature.
ReturnType
;
662
WasmValueType pointerType = (signature.
ReturnType
.Context.Target.PointerSize == 4) ? WasmValueType.I32 : WasmValueType.I64;
773
((CompilerTypeSystemContext)signature.
ReturnType
.Context).CacheEmptyStruct(paramType);
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (3)
100
bool returnsVoid = _targetMethod.Signature.
ReturnType
.IsVoid;
104
resultLocal = ilEmitter.NewLocal(_targetMethod.Signature.
ReturnType
);
122
ilStream.Emit(ILOpcode.stobj, ilEmitter.NewToken(_targetMethod.Signature.
ReturnType
));
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (1)
26
TypeDesc returnType = sig.
ReturnType
;
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (1)
411
TypeDesc parameterType = (i == 0) ? methodSig.
ReturnType
: methodSig[i - 1]; //first item is the return type
parent\parent\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (1)
698
EncodeType(signatureBuilder, sig.
ReturnType
, signatureDataEmitter);
PortableCallHelpers\PInvokeCollector.cs (1)
63
ReturnType = method.Signature.
ReturnType
;
PortableCallHelpers\PInvokeTableGenerator.cs (1)
360
TypeDesc returnType = signature.
ReturnType
;
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (2)
143
foreach (var genParamType in GetGenericParameters(fptrType.Signature.
ReturnType
))
326
ProcessTypeReference(methodSig.
ReturnType
, typeContext, methodContext);
ILCompiler.RyuJit (7)
parent\parent\Common\JitInterface\CorInfoImpl.cs (6)
933
TypeDesc returnType = signature.
ReturnType
;
935
CorInfoType corInfoRetType = asCorInfoType(signature.
ReturnType
, &sig->retTypeClass);
937
sig->retTypeSigClass = ObjectToHandle(signature.
ReturnType
);
3704
TypeDesc taskReturnType = taskReturningMethod.Signature.
ReturnType
;
3710
TypeDesc returnType = caller.Signature.
ReturnType
;
3712
TypeDesc runtimeDeterminedReturnType = runtimeDeterminedCaller.Signature.
ReturnType
;
parent\parent\Common\JitInterface\JitTypeNameFormatter.cs (1)
47
AppendName(sb, signature.
ReturnType
);
ILCompiler.TypeSystem (29)
parent\parent\Common\TypeSystem\Canon\FunctionPointerType.Canon.cs (2)
11
if (_signature.
ReturnType
.IsCanonicalSubtype(policy))
24
sigBuilder.ReturnType = Context.ConvertToCanon(_signature.
ReturnType
, kind);
parent\parent\Common\TypeSystem\Common\ConstructedTypeRewritingHelpers.cs (2)
46
if (functionPointerSignature.
ReturnType
.IsConstructedOverType(typesToFind))
130
sigBuilder.ReturnType = oldSig.
ReturnType
.ReplaceTypesInConstructionOfType(typesToReplace, replacementTypes);
parent\parent\Common\TypeSystem\Common\FunctionPointerType.cs (2)
34
return _signature.
ReturnType
.Context;
48
sigBuilder.ReturnType = _signature.
ReturnType
.InstantiateSignature(typeInstantiation, methodInstantiation);
parent\parent\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
72
builder.ReturnType = Instantiate(template.
ReturnType
);
parent\parent\Common\TypeSystem\Common\MethodDesc.ToString.cs (1)
21
DebugNameFormatter.Instance.AppendName(sb,
ReturnType
, DebugNameFormatter.FormatOptions.None);
parent\parent\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
65
builder.ReturnType = Instantiate(template.
ReturnType
);
parent\parent\Common\TypeSystem\Common\ThrowHelper.Common.cs (1)
103
sb.Append(ExceptionTypeNameFormatter.Instance.FormatName(signature.
ReturnType
));
parent\parent\Common\TypeSystem\Common\TypeSystemHelpers.cs (1)
343
return pointerSignature.
ReturnType
.ContainsSignatureVariables(treatGenericParameterLikeSignatureVariable);
parent\parent\Common\TypeSystem\Common\Utilities\CSharpTypeNameFormatter.cs (1)
68
AppendName(sb, signature.
ReturnType
);
parent\parent\Common\TypeSystem\Common\Utilities\DebugNameFormatter.cs (1)
52
AppendName(sb, signature.
ReturnType
, options);
parent\parent\Common\TypeSystem\Common\Utilities\ExceptionTypeNameFormatter.cs (1)
45
AppendName(sb, signature.
ReturnType
);
parent\parent\Common\TypeSystem\Ecma\EcmaSignatureEncoder.cs (2)
39
EncodeTypeSignature(returnTypeEncoder.Type(), signature.
ReturnType
);
115
EncodeTypeSignature(encoder, fptrType.Signature.
ReturnType
);
parent\parent\Common\TypeSystem\IL\ILDisassembler.cs (2)
124
this.TypeNameFormatter.AppendNameWithValueClassPrefix(sb, signature.
ReturnType
);
480
AppendName(sb, signature.
ReturnType
);
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\InstantiatedMethodIL.cs (1)
109
builder.ReturnType = template.
ReturnType
.InstantiateSignature(_typeInstantiation, _methodInstantiation);
parent\parent\Common\TypeSystem\IL\MethodILDebugView.cs (1)
35
disasm.AppendType(sb, owningMethod.Signature.
ReturnType
);
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (5)
54
TypeDesc retType = context.DeclarationSignature.
ReturnType
;
350
if (!maybeSig.
ReturnType
.IsVoid)
365
if (declSig.
ReturnType
!= maybeSig.
ReturnType
)
574
TypeDesc initialType = isReturnValue ? originalSignature.
ReturnType
: originalSignature[parameter.SequenceNumber - 1];
parent\parent\Common\TypeSystem\RuntimeDetermined\FunctionPointerType.RuntimeDetermined.cs (2)
14
if (_signature.
ReturnType
.IsRuntimeDeterminedSubtype)
28
sigBuilder.ReturnType = _signature.
ReturnType
.GetNonRuntimeDeterminedTypeFromRuntimeDeterminedSubtypeViaSubstitution(typeInstantiation, methodInstantiation);