36 overrides of ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (36)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
145
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Lowering\SynthesizedMethodBaseSymbol.cs (1)
188
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (1)
58
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.EqualsMethodSymbol.cs (1)
43
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.GetHashCodeMethodSymbol.cs (1)
47
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
44
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ToStringMethodSymbol.cs (1)
47
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\ErrorMethodSymbol.cs (1)
163
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
42
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
768
public override TypeWithAnnotations
ReturnTypeWithAnnotations
{ get; }
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
664
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> Signature.ReturnParam.TypeWithAnnotations;
Symbols\NativeIntegerTypeSymbol.cs (1)
352
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _container.SubstituteUnderlyingType(UnderlyingMethod.ReturnTypeWithAnnotations);
Symbols\ReducedExtensionMethodSymbol.cs (1)
492
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
129
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\SignatureOnlyMethodSymbol.cs (1)
77
public override TypeWithAnnotations
ReturnTypeWithAnnotations
{ get { return _returnType; } }
Symbols\Source\LambdaSymbol.cs (1)
150
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\LocalFunctionSymbol.cs (1)
234
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceConstructorSymbolBase.cs (1)
150
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
158
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceDestructorSymbol.cs (1)
120
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceEventAccessorSymbol.cs (1)
160
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
185
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
345
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\SubstitutedMethodSymbol.cs (1)
228
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
165
public override TypeWithAnnotations
ReturnTypeWithAnnotations
{ get; }
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (3)
392
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> TypeWithAnnotations.Create(_getAwaiterGetResultCall.Type);
458
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _returnType;
556
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _returnType;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
209
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
101
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
154
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
144
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
225
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
189
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
155
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
135
public override TypeWithAnnotations
ReturnTypeWithAnnotations
64 references to ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (64)
Binder\Binder_Expressions.cs (1)
11183
var returnType = returnTypeOverride ?? methodSymbol.
ReturnTypeWithAnnotations
;
Binder\ForEachLoopBinder.cs (2)
268
diagnostics.Add(ErrorCode.ERR_BadGetAsyncEnumerator, expr.Location, getEnumeratorMethod.
ReturnTypeWithAnnotations
, getEnumeratorMethod);
1188
builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.
ReturnTypeWithAnnotations
?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax));
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
110
return method.
ReturnTypeWithAnnotations
;
1418
var returnType = delegateType.DelegateInvokeMethod.
ReturnTypeWithAnnotations
;
1628
ExactInference(anonymousFunctionReturnType, delegateInvokeMethod.
ReturnTypeWithAnnotations
, ref useSiteInfo);
BoundTree\UnboundLambda.cs (1)
667
return invokeMethod.
ReturnTypeWithAnnotations
;
CodeGen\CodeGenerator.cs (1)
177
var localSymbol = new SynthesizedLocal(_method, _method.
ReturnTypeWithAnnotations
, SynthesizedLocalKind.FunctionReturnValue, bodySyntax);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
528
isCorrespondingType(invokeMethod.
ReturnTypeWithAnnotations
, otherInvokeMethod.
ReturnTypeWithAnnotations
);
Emitter\Model\MethodReference.cs (1)
89
return ImmutableArray<Cci.ICustomModifier>.CastUp(UnderlyingMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
Emitter\Model\MethodSymbolAdapter.cs (1)
220
return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedMethodSymbol.
ReturnTypeWithAnnotations
.CustomModifiers);
FlowAnalysis\NullableWalker.cs (14)
3142
var returnType = delegateOrMethod.
ReturnTypeWithAnnotations
;
3959
return ApplyUnconditionalAnnotations(createMethod.
ReturnTypeWithAnnotations
, annotations).ToTypeWithState().State;
5007
return GetLiftedReturnType(methodOpt.
ReturnTypeWithAnnotations
, leftType.State.Join(rightType.State));
6485
SetResult(node, returnState, method.
ReturnTypeWithAnnotations
);
6843
return TypeWithState.Create(method.
ReturnTypeWithAnnotations
, GetRValueAnnotations(method));
8234
return method.
ReturnTypeWithAnnotations
;
9760
var methodReturnType = method.
ReturnTypeWithAnnotations
;
10816
targetTypeOfOperandConversion = operandConversion.Method.
ReturnTypeWithAnnotations
;
10861
resultOfIncrementType = incrementOperator.
ReturnTypeWithAnnotations
.ToTypeWithState();
11462
currentPropertyGetter.
ReturnTypeWithAnnotations
.ToTypeWithState(),
11470
var result = new VisitResult(GetReturnTypeWithState(moveNextAsyncMethod), moveNextAsyncMethod.
ReturnTypeWithAnnotations
);
11485
var result = new VisitResult(GetReturnTypeWithState(disposeAsyncMethod), disposeAsyncMethod.
ReturnTypeWithAnnotations
);
11713
resultType = GetLiftedReturnTypeIfNecessary(isLifted, method.
ReturnTypeWithAnnotations
, operandResult.State);
11884
SetResultType(node, reinferredGetResult.
ReturnTypeWithAnnotations
.ToTypeWithState());
Lowering\LocalRewriter\LocalRewriter.cs (1)
416
predicate(localFunction.
ReturnTypeWithAnnotations
) || localFunction.ParameterTypesWithAnnotations.Any(predicate);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
190
get { return this.TypeMap.SubstituteType(this.BaseMethod.OriginalDefinition.
ReturnTypeWithAnnotations
); }
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
44
get { return _typeMap.SubstituteType(_originalMethod.
ReturnTypeWithAnnotations
); }
Symbols\MemberSymbolExtensions.cs (1)
438
var methodReturnType = method.
ReturnTypeWithAnnotations
;
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
284
TypeWithAnnotations candidateMethodType = candidateMethod.
ReturnTypeWithAnnotations
;
Symbols\MethodSymbol.cs (4)
247
public TypeSymbol ReturnType =>
ReturnTypeWithAnnotations
.Type;
956
if (DeriveUseSiteInfoFromType(ref result, this.
ReturnTypeWithAnnotations
,
973
if (this.
ReturnTypeWithAnnotations
.GetUnificationUseSiteDiagnosticRecursive(ref diagnosticInfo, this, ref unificationCheckedTypes) ||
1159
var type = this.
ReturnTypeWithAnnotations
;
Symbols\NativeIntegerTypeSymbol.cs (1)
352
public override TypeWithAnnotations ReturnTypeWithAnnotations => _container.SubstituteUnderlyingType(UnderlyingMethod.
ReturnTypeWithAnnotations
);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
893
var methodReturnType = method.
ReturnTypeWithAnnotations
;
Symbols\PublicModel\MethodSymbol.cs (3)
85
Interlocked.CompareExchange(ref _lazyReturnType, _underlying.
ReturnTypeWithAnnotations
.GetPublicSymbol(), null);
96
return _underlying.
ReturnTypeWithAnnotations
.ToPublicAnnotation();
254
return _underlying.
ReturnTypeWithAnnotations
.CustomModifiers;
Symbols\ReducedExtensionMethodSymbol.cs (1)
494
get { return _typeMap.SubstituteType(_reducedFrom.
ReturnTypeWithAnnotations
); }
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
136
new TypeWithAnnotations.Boxed(this.RetargetingTranslator.Retarget(_underlyingMethod.
ReturnTypeWithAnnotations
, RetargetOptions.RetargetPrimitiveTypesByTypeCode, this.ContainingType)),
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1025
translator.Retarget(method.
ReturnTypeWithAnnotations
, RetargetOptions.RetargetPrimitiveTypesByTypeCode),
Symbols\Source\CustomModifierUtils.cs (2)
47
returnType = destinationMethod.
ReturnTypeWithAnnotations
; // Default value - in case we don't copy the custom modifiers.
50
var sourceMethodReturnType = constructedSourceMethod.
ReturnTypeWithAnnotations
;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (7)
996
else if (!IsValidOverrideReturnType(overridingMethod, overridingMethod.
ReturnTypeWithAnnotations
, overriddenMethod.
ReturnTypeWithAnnotations
, diagnostics))
1003
if (DeclaringCompilation.Conversions.HasIdentityOrImplicitReferenceConversion(overridingMethod.
ReturnTypeWithAnnotations
.Type, overriddenMethod.
ReturnTypeWithAnnotations
.Type, ref discardedUseSiteInfo))
1269
var overrideReturnType = getNotNullIfNotNullOutputType(overrideMethod.
ReturnTypeWithAnnotations
, overrideMethod.ReturnNotNullIfParameterNotNull);
1275
baseMethod.
ReturnTypeWithAnnotations
.Type))
1284
baseMethod.
ReturnTypeWithAnnotations
,
Symbols\Source\SourceMemberMethodSymbol.cs (2)
920
var unusedType = this.
ReturnTypeWithAnnotations
;
1022
builder.AddValue(method.
ReturnTypeWithAnnotations
);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
484
bool hasTypeDifferences = !constructedDefinition.
ReturnTypeWithAnnotations
.Equals(implementation.ReturnTypeWithAnnotations, TypeCompareKind.AllIgnoreOptions);
Symbols\SubstitutedMethodSymbol.cs (1)
234
var returnType = Map.SubstituteType(OriginalDefinition.
ReturnTypeWithAnnotations
);
Symbols\SymbolExtensions.cs (1)
488
returnType = method.
ReturnTypeWithAnnotations
;
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
99
baseClone.
ReturnTypeWithAnnotations
:
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
103
get { return _interfaceMethod.
ReturnTypeWithAnnotations
; }
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
193
return _overriddenAccessor.
ReturnTypeWithAnnotations
;
Symbols\TypeSymbol.cs (1)
1625
interfaceMethod.
ReturnTypeWithAnnotations
,
Symbols\TypeSymbolExtensions.cs (3)
958
next = currentPointer.
ReturnTypeWithAnnotations
;
963
typeWithAnnotationsOpt: canDigThroughNullable ? default : currentPointer.
ReturnTypeWithAnnotations
,
964
type: canDigThroughNullable ? currentPointer.
ReturnTypeWithAnnotations
.NullableUnderlyingTypeOrSelf : null,