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