35 overrides of ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (35)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
145
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Lowering\SynthesizedMethodBaseSymbol.cs (1)
203
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\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)
349
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)
143
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)
224
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
62 references to ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder_Expressions.cs (1)
10834
var returnType = returnTypeOverride ?? methodSymbol.
ReturnTypeWithAnnotations
;
Binder\ForEachLoopBinder.cs (2)
260
diagnostics.Add(ErrorCode.ERR_BadGetAsyncEnumerator, expr.Location, getEnumeratorMethod.
ReturnTypeWithAnnotations
, getEnumeratorMethod);
1165
builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.
ReturnTypeWithAnnotations
?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax));
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
110
return method.
ReturnTypeWithAnnotations
;
1392
var returnType = delegateType.DelegateInvokeMethod.
ReturnTypeWithAnnotations
;
1600
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)
521
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)
3045
var returnType = delegateOrMethod.
ReturnTypeWithAnnotations
;
3862
return ApplyUnconditionalAnnotations(createMethod.
ReturnTypeWithAnnotations
, annotations).ToTypeWithState().State;
4908
return GetLiftedReturnType(methodOpt.
ReturnTypeWithAnnotations
, leftType.State.Join(rightType.State));
6364
SetResult(node, returnState, method.
ReturnTypeWithAnnotations
);
6636
return TypeWithState.Create(method.
ReturnTypeWithAnnotations
, GetRValueAnnotations(method));
7986
return method.
ReturnTypeWithAnnotations
;
9478
var methodReturnType = method.
ReturnTypeWithAnnotations
;
10496
targetTypeOfOperandConversion = operandConversion.Method.
ReturnTypeWithAnnotations
;
10541
resultOfIncrementType = incrementOperator.
ReturnTypeWithAnnotations
.ToTypeWithState();
11088
currentPropertyGetter.
ReturnTypeWithAnnotations
.ToTypeWithState(),
11096
var result = new VisitResult(GetReturnTypeWithState(moveNextAsyncMethod), moveNextAsyncMethod.
ReturnTypeWithAnnotations
);
11111
var result = new VisitResult(GetReturnTypeWithState(disposeAsyncMethod), disposeAsyncMethod.
ReturnTypeWithAnnotations
);
11339
resultType = GetLiftedReturnTypeIfNecessary(isLifted, method.
ReturnTypeWithAnnotations
, operandResult.State);
11510
SetResultType(node, reinferredGetResult.
ReturnTypeWithAnnotations
.ToTypeWithState());
Lowering\SynthesizedMethodBaseSymbol.cs (1)
205
get { return this.TypeMap.SubstituteType(this.BaseMethod.OriginalDefinition.
ReturnTypeWithAnnotations
); }
Symbols\MemberSymbolExtensions.cs (1)
204
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)
349
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)
991
else if (!IsValidOverrideReturnType(overridingMethod, overridingMethod.
ReturnTypeWithAnnotations
, overriddenMethod.
ReturnTypeWithAnnotations
, diagnostics))
998
if (DeclaringCompilation.Conversions.HasIdentityOrImplicitReferenceConversion(overridingMethod.
ReturnTypeWithAnnotations
.Type, overriddenMethod.
ReturnTypeWithAnnotations
.Type, ref discardedUseSiteInfo))
1264
var overrideReturnType = getNotNullIfNotNullOutputType(overrideMethod.
ReturnTypeWithAnnotations
, overrideMethod.ReturnNotNullIfParameterNotNull);
1270
baseMethod.
ReturnTypeWithAnnotations
.Type))
1279
baseMethod.
ReturnTypeWithAnnotations
,
Symbols\Source\SourceMemberMethodSymbol.cs (2)
892
var unusedType = this.
ReturnTypeWithAnnotations
;
994
builder.AddValue(
ReturnTypeWithAnnotations
);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
479
bool hasTypeDifferences = !constructedDefinition.
ReturnTypeWithAnnotations
.Equals(implementation.ReturnTypeWithAnnotations, TypeCompareKind.AllIgnoreOptions);
Symbols\SubstitutedMethodSymbol.cs (1)
234
var returnType = Map.SubstituteType(OriginalDefinition.
ReturnTypeWithAnnotations
);
Symbols\SymbolExtensions.cs (1)
501
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)
1609
interfaceMethod.
ReturnTypeWithAnnotations
,
Symbols\TypeSymbolExtensions.cs (3)
957
next = currentPointer.
ReturnTypeWithAnnotations
;
962
typeWithAnnotationsOpt: canDigThroughNullable ? default : currentPointer.
ReturnTypeWithAnnotations
,
963
type: canDigThroughNullable ? currentPointer.
ReturnTypeWithAnnotations
.NullableUnderlyingTypeOrSelf : null,