Base:
property
ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol.ReturnTypeWithAnnotations
4 writes to ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (4)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (4)
456ReturnTypeWithAnnotations = returnType; 502ReturnTypeWithAnnotations = returnTypeWithAnnotations; 531ReturnTypeWithAnnotations = returnType; 552ReturnTypeWithAnnotations = returnType;
45 references to ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (45)
Binder\Semantics\Conversions\ConversionsBase.cs (2)
3413&& hasConversion(sourceSig.RefKind, sourceSig.ReturnTypeWithAnnotations, destinationSig.ReturnTypeWithAnnotations, ref useSiteInfo);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (10)
1879ExactInference(sourceSignature.ReturnTypeWithAnnotations, targetSignature.ReturnTypeWithAnnotations, ref useSiteInfo); 2433LowerBoundInference(sourceSignature.ReturnTypeWithAnnotations, targetSignature.ReturnTypeWithAnnotations, ref useSiteInfo); 2437ExactInference(sourceSignature.ReturnTypeWithAnnotations, targetSignature.ReturnTypeWithAnnotations, ref useSiteInfo); 2783UpperBoundInference(sourceSignature.ReturnTypeWithAnnotations, targetSignature.ReturnTypeWithAnnotations, ref useSiteInfo); 2787ExactInference(sourceSignature.ReturnTypeWithAnnotations, targetSignature.ReturnTypeWithAnnotations, ref useSiteInfo);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (8)
397var otherReturnTypeWithAnnotations = sig.ReturnTypeWithAnnotations.WithTypeAndModifiers(otherReturnType, VisitCustomModifiers(sig.ReturnTypeWithAnnotations.CustomModifiers)); 675ValidateFunctionPointerParamOrReturn(sig.ReturnTypeWithAnnotations, sig.RefKind, sig.RefCustomModifiers, allowOut: false); 676ValidateFunctionPointerParamOrReturn(otherSig.ReturnTypeWithAnnotations, otherSig.RefKind, otherSig.RefCustomModifiers, allowOut: false); 677if (sig.RefKind != otherSig.RefKind || !AreTypesEqual(sig.ReturnTypeWithAnnotations, otherSig.ReturnTypeWithAnnotations)) 913var translatedReturnTypeWithAnnotations = sig.ReturnTypeWithAnnotations.WithTypeAndModifiers(translatedReturnType, VisitCustomModifiers(sig.ReturnTypeWithAnnotations.CustomModifiers));
FlowAnalysis\NullableWalker.cs (1)
12174var returnTypeWithAnnotations = node.FunctionPointer.Signature.ReturnTypeWithAnnotations;
Symbols\AbstractTypeMap.cs (2)
241var substitutedReturnType = f.Signature.ReturnTypeWithAnnotations.SubstituteType(this); 277|| !f.Signature.ReturnTypeWithAnnotations.IsSameAs(substitutedReturnType)
Symbols\Compilation_WellKnownMembers.cs (1)
1003handle(sig.RefKind, sig.RefCustomModifiers, sig.ReturnTypeWithAnnotations);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (12)
352var mergedReturnType = ReturnTypeWithAnnotations.MergeEquivalentTypes(signature.ReturnTypeWithAnnotations, returnVariance); 390if (hasParamChanges || !mergedReturnType.IsSameAs(ReturnTypeWithAnnotations)) 402var transformedReturn = transform(ReturnTypeWithAnnotations); 431if (hasParamChanges || !transformedReturn.IsSameAs(ReturnTypeWithAnnotations)) 596ReturnTypeWithAnnotations.AddNullableTransforms(transforms); 605bool madeChanges = ReturnTypeWithAnnotations.ApplyNullableTransforms(defaultTransformFlag, transforms, ref position, out var newReturnType); 648var modifiersToSearch = RefKind != RefKind.None ? RefCustomModifiers : ReturnTypeWithAnnotations.CustomModifiers; 671var modifiersToSearch = RefKind != RefKind.None ? RefCustomModifiers : ReturnTypeWithAnnotations.CustomModifiers; 725|| !ReturnTypeWithAnnotations.Equals(other.ReturnTypeWithAnnotations, compareKind)) 766public override bool ReturnsVoid => ReturnTypeWithAnnotations.IsVoidType();
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
354var (transformedReturnWithAnnotations, madeChanges) = handle(ref this, sig.RefKind, sig.RefCustomModifiers, sig.ReturnTypeWithAnnotations);
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (2)
175if (TransformTypeWithAnnotations(type.Signature.ReturnTypeWithAnnotations) is not { } transformedReturnType) 208if (paramsModified || !transformedReturnType.IsSameAs(type.Signature.ReturnTypeWithAnnotations))
Symbols\Metadata\PE\TupleTypeDecoder.cs (2)
238var decodedReturnType = DecodeTypeInternal(type.Signature.ReturnTypeWithAnnotations); 240if (paramsModified || !decodedReturnType.IsSameAs(type.Signature.ReturnTypeWithAnnotations))
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
762var newReturn = Retarget(signature.ReturnTypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode); 764symbolModified = symbolModified || !signature.ReturnTypeWithAnnotations.IsSameAs(newReturn);
Symbols\TypeSymbolExtensions.cs (1)
2044var returnType = funcPtrType.Signature.ReturnTypeWithAnnotations;
Utilities\TypeSymbolExtensions.cs (1)
113if (!funcPtr.Signature.RefCustomModifiers.IsEmpty || checkTypeWithAnnotations(funcPtr.Signature.ReturnTypeWithAnnotations, flagNonDefaultArraySizesOrLowerBounds))