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