Base:
property
ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol.ReturnTypeWithAnnotations
4 writes to ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (4)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (4)
454ReturnTypeWithAnnotations = returnType; 500ReturnTypeWithAnnotations = returnTypeWithAnnotations; 529ReturnTypeWithAnnotations = returnType; 550ReturnTypeWithAnnotations = returnType;
51 references to ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (45)
Binder\Semantics\Conversions\ConversionsBase.cs (2)
3184&& hasConversion(sourceSig.RefKind, sourceSig.ReturnTypeWithAnnotations, destinationSig.ReturnTypeWithAnnotations, ref useSiteInfo);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (10)
1730ExactInference(sourceSignature.ReturnTypeWithAnnotations, targetSignature.ReturnTypeWithAnnotations, ref useSiteInfo); 2239LowerBoundInference(sourceSignature.ReturnTypeWithAnnotations, targetSignature.ReturnTypeWithAnnotations, ref useSiteInfo); 2243ExactInference(sourceSignature.ReturnTypeWithAnnotations, targetSignature.ReturnTypeWithAnnotations, ref useSiteInfo); 2589UpperBoundInference(sourceSignature.ReturnTypeWithAnnotations, targetSignature.ReturnTypeWithAnnotations, ref useSiteInfo); 2593ExactInference(sourceSignature.ReturnTypeWithAnnotations, targetSignature.ReturnTypeWithAnnotations, ref useSiteInfo);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (8)
610var otherReturnTypeWithAnnotations = sig.ReturnTypeWithAnnotations.WithTypeAndModifiers(otherReturnType, VisitCustomModifiers(sig.ReturnTypeWithAnnotations.CustomModifiers)); 879ValidateFunctionPointerParamOrReturn(sig.ReturnTypeWithAnnotations, sig.RefKind, sig.RefCustomModifiers, allowOut: false); 880ValidateFunctionPointerParamOrReturn(otherSig.ReturnTypeWithAnnotations, otherSig.RefKind, otherSig.RefCustomModifiers, allowOut: false); 881if (sig.RefKind != otherSig.RefKind || !AreTypesEqual(sig.ReturnTypeWithAnnotations, otherSig.ReturnTypeWithAnnotations)) 1113var translatedReturnTypeWithAnnotations = sig.ReturnTypeWithAnnotations.WithTypeAndModifiers(translatedReturnType, VisitCustomModifiers(sig.ReturnTypeWithAnnotations.CustomModifiers));
FlowAnalysis\NullableWalker.cs (1)
11197var returnTypeWithAnnotations = node.FunctionPointer.Signature.ReturnTypeWithAnnotations;
Symbols\AbstractTypeMap.cs (2)
240var substitutedReturnType = f.Signature.ReturnTypeWithAnnotations.SubstituteType(this); 276|| !f.Signature.ReturnTypeWithAnnotations.IsSameAs(substitutedReturnType)
Symbols\Compilation_WellKnownMembers.cs (1)
975handle(sig.RefKind, sig.RefCustomModifiers, sig.ReturnTypeWithAnnotations);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (12)
350var mergedReturnType = ReturnTypeWithAnnotations.MergeEquivalentTypes(signature.ReturnTypeWithAnnotations, returnVariance); 388if (hasParamChanges || !mergedReturnType.IsSameAs(ReturnTypeWithAnnotations)) 400var transformedReturn = transform(ReturnTypeWithAnnotations); 429if (hasParamChanges || !transformedReturn.IsSameAs(ReturnTypeWithAnnotations)) 593ReturnTypeWithAnnotations.AddNullableTransforms(transforms); 602bool madeChanges = ReturnTypeWithAnnotations.ApplyNullableTransforms(defaultTransformFlag, transforms, ref position, out var newReturnType); 645var modifiersToSearch = RefKind != RefKind.None ? RefCustomModifiers : ReturnTypeWithAnnotations.CustomModifiers; 668var modifiersToSearch = RefKind != RefKind.None ? RefCustomModifiers : ReturnTypeWithAnnotations.CustomModifiers; 722|| !ReturnTypeWithAnnotations.Equals(other.ReturnTypeWithAnnotations, compareKind)) 763public 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)
176if (TransformTypeWithAnnotations(type.Signature.ReturnTypeWithAnnotations) is not { } transformedReturnType) 209if (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)
1953var returnType = funcPtrType.Signature.ReturnTypeWithAnnotations;
Utilities\TypeSymbolExtensions.cs (1)
113if (!funcPtr.Signature.RefCustomModifiers.IsEmpty || checkTypeWithAnnotations(funcPtr.Signature.ReturnTypeWithAnnotations, flagNonDefaultArraySizesOrLowerBounds))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenFunctionPointersTests.cs (2)
693var returnModifiers = param.Signature.ReturnTypeWithAnnotations.CustomModifiers; 868var returnTypeWithAnnotations = ((FunctionPointerTypeSymbol)m.ReturnType).Signature.ReturnTypeWithAnnotations;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\FunctionPointerTypeSymbolTests.cs (2)
909var ret1 = p1.Signature.ReturnTypeWithAnnotations; 910var ret2 = p2.Signature.ReturnTypeWithAnnotations;
Symbols\Retargeting\RetargetingTests.cs (2)
873getModifierTypeSymbol(ptrOriginal.Signature.ReturnTypeWithAnnotations.CustomModifiers), 874getModifierTypeSymbol(ptrRetargeted.Signature.ReturnTypeWithAnnotations.CustomModifiers));