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)
165
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)
494
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)
151
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\LocalFunctionSymbol.cs (1)
234
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceConstructorSymbolBase.cs (1)
151
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
159
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceDestructorSymbol.cs (1)
121
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)
346
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\SubstitutedMethodSymbol.cs (1)
230
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
165
public override TypeWithAnnotations
ReturnTypeWithAnnotations
{ get; }
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (3)
394
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> TypeWithAnnotations.Create(_getAwaiterGetResultCall.Type);
460
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _returnType;
558
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _returnType;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
211
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)
11193
var returnType = returnTypeOverride ?? methodSymbol.
ReturnTypeWithAnnotations
;
Binder\ForEachLoopBinder.cs (2)
268
diagnostics.Add(ErrorCode.ERR_BadGetAsyncEnumerator, expr.Location, getEnumeratorMethod.
ReturnTypeWithAnnotations
, getEnumeratorMethod);
1192
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
;
4008
return ApplyUnconditionalAnnotations(createMethod.
ReturnTypeWithAnnotations
, annotations).ToTypeWithState().State;
5061
return GetLiftedReturnType(methodOpt.
ReturnTypeWithAnnotations
, leftType.State.Join(rightType.State));
6581
SetResult(node, returnState, method.
ReturnTypeWithAnnotations
);
6992
return TypeWithState.Create(method.
ReturnTypeWithAnnotations
, GetRValueAnnotations(method));
8383
return method.
ReturnTypeWithAnnotations
;
9909
var methodReturnType = method.
ReturnTypeWithAnnotations
;
11028
targetTypeOfOperandConversion = operandConversion.Method.
ReturnTypeWithAnnotations
;
11079
resultOfIncrementType = GetLiftedReturnTypeIfNecessary(isLifted, incrementOperator.
ReturnTypeWithAnnotations
, operandType.State);
11716
currentPropertyGetter.
ReturnTypeWithAnnotations
.ToTypeWithState(),
11724
var result = new VisitResult(GetReturnTypeWithState(moveNextAsyncMethod), moveNextAsyncMethod.
ReturnTypeWithAnnotations
);
11739
var result = new VisitResult(GetReturnTypeWithState(disposeAsyncMethod), disposeAsyncMethod.
ReturnTypeWithAnnotations
);
11968
resultType = GetLiftedReturnTypeIfNecessary(isLifted, method.
ReturnTypeWithAnnotations
, operandResult.State);
12242
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)
249
public TypeSymbol ReturnType =>
ReturnTypeWithAnnotations
.Type;
960
if (DeriveUseSiteInfoFromType(ref result, this.
ReturnTypeWithAnnotations
,
977
if (this.
ReturnTypeWithAnnotations
.GetUnificationUseSiteDiagnosticRecursive(ref diagnosticInfo, this, ref unificationCheckedTypes) ||
1163
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)
496
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)
489
bool hasTypeDifferences = !constructedDefinition.
ReturnTypeWithAnnotations
.Equals(implementation.ReturnTypeWithAnnotations, TypeCompareKind.AllIgnoreOptions);
Symbols\SubstitutedMethodSymbol.cs (1)
236
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)
1627
interfaceMethod.
ReturnTypeWithAnnotations
,
Symbols\TypeSymbolExtensions.cs (3)
959
next = currentPointer.
ReturnTypeWithAnnotations
;
964
typeWithAnnotationsOpt: canDigThroughNullable ? default : currentPointer.
ReturnTypeWithAnnotations
,
965
type: canDigThroughNullable ? currentPointer.
ReturnTypeWithAnnotations
.NullableUnderlyingTypeOrSelf : null,