38 overrides of ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (38)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
145
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Lowering\SynthesizedMethodBaseSymbol.cs (1)
195
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)
686
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> Signature.ReturnParam.TypeWithAnnotations;
Symbols\NativeIntegerTypeSymbol.cs (1)
363
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _container.SubstituteUnderlyingType(UnderlyingMethod.ReturnTypeWithAnnotations);
Symbols\ReducedExtensionMethodSymbol.cs (1)
495
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
133
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\SignatureOnlyMethodSymbol.cs (1)
77
public override TypeWithAnnotations
ReturnTypeWithAnnotations
{ get { return _returnType; } }
Symbols\Source\LambdaSymbol.cs (1)
160
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\LocalFunctionSymbol.cs (1)
261
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceConstructorSymbolBase.cs (1)
151
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
164
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceDestructorSymbol.cs (1)
125
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceEventAccessorSymbol.cs (1)
160
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
189
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
373
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\SubstitutedMethodSymbol.cs (1)
235
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedCollectionBuilderProjectedMethodSymbol.cs (1)
48
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> this.UnderlyingMethod.ReturnTypeWithAnnotations;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
170
public override TypeWithAnnotations
ReturnTypeWithAnnotations
{ get; }
Symbols\Synthesized\SynthesizedEmbeddedAttributePropertySymbol.cs (1)
91
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _property.TypeWithAnnotations;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (3)
432
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> TypeWithAnnotations.Create(_userEntryPointInvocation.Type);
498
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _returnType;
597
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)
171
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
135
public override TypeWithAnnotations
ReturnTypeWithAnnotations
66 references to ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (66)
Binder\Binder_Expressions.cs (1)
11514
var returnType = returnTypeOverride ?? methodSymbol.
ReturnTypeWithAnnotations
;
Binder\ForEachLoopBinder.cs (2)
268
diagnostics.Add(ErrorCode.ERR_BadGetAsyncEnumerator, expr.Location, getEnumeratorMethod.
ReturnTypeWithAnnotations
, getEnumeratorMethod);
1186
builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.
ReturnTypeWithAnnotations
?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax));
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (4)
110
return method.
ReturnTypeWithAnnotations
;
1420
var returnType = delegateType.DelegateInvokeMethod.
ReturnTypeWithAnnotations
;
1475
TypeWithAnnotations sourceReturnType = method.
ReturnTypeWithAnnotations
;
1630
ExactInference(anonymousFunctionReturnType, delegateInvokeMethod.
ReturnTypeWithAnnotations
, ref useSiteInfo);
BoundTree\UnboundLambda.cs (1)
687
return invokeMethod.
ReturnTypeWithAnnotations
;
CodeGen\CodeGenerator.cs (1)
176
var returnTypeWithAnnotations = _method.
ReturnTypeWithAnnotations
;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
535
isCorrespondingType(invokeMethod.
ReturnTypeWithAnnotations
, otherInvokeMethod.
ReturnTypeWithAnnotations
);
Emitter\Model\MethodReference.cs (1)
89
return ImmutableArray<Cci.ICustomModifier>.CastUp(UnderlyingMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
Emitter\Model\MethodSymbolAdapter.cs (1)
230
return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedMethodSymbol.
ReturnTypeWithAnnotations
.CustomModifiers);
FlowAnalysis\NullableWalker.cs (14)
3211
var returnType = delegateOrMethod.
ReturnTypeWithAnnotations
;
3667
placeholderResult = new VisitResult(GetReturnTypeWithState(patternDisposeMethod), patternDisposeMethod.
ReturnTypeWithAnnotations
);
4235
return ApplyUnconditionalAnnotations(createMethod.
ReturnTypeWithAnnotations
, annotations).ToTypeWithState().State;
5396
return GetLiftedReturnType(methodOpt.
ReturnTypeWithAnnotations
, leftType.State.Join(rightType.State));
6965
SetResult(node, returnState, method.
ReturnTypeWithAnnotations
);
7377
return TypeWithState.Create(method.
ReturnTypeWithAnnotations
, GetRValueAnnotations(method));
8849
return method.
ReturnTypeWithAnnotations
;
10559
var methodReturnType = method.
ReturnTypeWithAnnotations
;
11810
targetTypeOfOperandConversion = operandConversion.Method.
ReturnTypeWithAnnotations
;
11866
resultOfIncrementType = GetLiftedReturnTypeIfNecessary(isLifted, incrementOperator.
ReturnTypeWithAnnotations
, operandType.State);
12543
currentPropertyGetter.
ReturnTypeWithAnnotations
.ToTypeWithState(),
12551
var result = new VisitResult(GetReturnTypeWithState(moveNextAsyncMethod), moveNextAsyncMethod.
ReturnTypeWithAnnotations
);
12792
resultType = GetLiftedReturnTypeIfNecessary(isLifted, method.
ReturnTypeWithAnnotations
, operandResult.State);
13064
SetResultType(node, reinferredGetResult.
ReturnTypeWithAnnotations
.ToTypeWithState());
Lowering\LocalRewriter\LocalRewriter.cs (1)
421
predicate(localFunction.
ReturnTypeWithAnnotations
) || localFunction.ParameterTypesWithAnnotations.Any(predicate);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
197
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)
450
var methodReturnType = method.
ReturnTypeWithAnnotations
;
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
284
TypeWithAnnotations candidateMethodType = candidateMethod.
ReturnTypeWithAnnotations
;
Symbols\MethodSymbol.cs (4)
256
public TypeSymbol ReturnType =>
ReturnTypeWithAnnotations
.Type;
973
if (DeriveUseSiteInfoFromType(ref result, this.
ReturnTypeWithAnnotations
,
990
if (this.
ReturnTypeWithAnnotations
.GetUnificationUseSiteDiagnosticRecursive(ref diagnosticInfo, this, ref unificationCheckedTypes) ||
1176
var type = this.
ReturnTypeWithAnnotations
;
Symbols\NativeIntegerTypeSymbol.cs (1)
363
public override TypeWithAnnotations ReturnTypeWithAnnotations => _container.SubstituteUnderlyingType(UnderlyingMethod.
ReturnTypeWithAnnotations
);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
893
var methodReturnType = method.
ReturnTypeWithAnnotations
;
Symbols\PublicModel\MethodSymbol.cs (3)
86
Interlocked.CompareExchange(ref _lazyReturnType, _underlying.
ReturnTypeWithAnnotations
.GetPublicSymbol(), null);
97
return _underlying.
ReturnTypeWithAnnotations
.ToPublicAnnotation();
268
return _underlying.
ReturnTypeWithAnnotations
.CustomModifiers;
Symbols\ReducedExtensionMethodSymbol.cs (1)
497
get { return _typeMap.SubstituteType(_reducedFrom.
ReturnTypeWithAnnotations
); }
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
140
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)
1019
else if (!IsValidOverrideReturnType(overridingMethod, overridingMethod.
ReturnTypeWithAnnotations
, overriddenMethod.
ReturnTypeWithAnnotations
, diagnostics))
1026
if (DeclaringCompilation.Conversions.HasIdentityOrImplicitReferenceConversion(overridingMethod.
ReturnTypeWithAnnotations
.Type, overriddenMethod.
ReturnTypeWithAnnotations
.Type, ref discardedUseSiteInfo))
1300
var overrideReturnType = getNotNullIfNotNullOutputType(overrideMethod.
ReturnTypeWithAnnotations
, overrideMethod.ReturnNotNullIfParameterNotNull);
1306
baseMethod.
ReturnTypeWithAnnotations
.Type))
1315
baseMethod.
ReturnTypeWithAnnotations
,
Symbols\Source\SourceMemberMethodSymbol.cs (2)
920
var unusedType = this.
ReturnTypeWithAnnotations
;
1052
builder.AddValue(method.
ReturnTypeWithAnnotations
);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
511
bool hasTypeDifferences = !constructedDefinition.
ReturnTypeWithAnnotations
.Equals(implementation.ReturnTypeWithAnnotations, TypeCompareKind.AllIgnoreOptions);
Symbols\SubstitutedMethodSymbol.cs (1)
241
var returnType = Map.SubstituteType(OriginalDefinition.
ReturnTypeWithAnnotations
);
Symbols\SymbolExtensions.cs (1)
489
returnType = method.
ReturnTypeWithAnnotations
;
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
99
baseClone.
ReturnTypeWithAnnotations
:
Symbols\Synthesized\SynthesizedCollectionBuilderProjectedMethodSymbol.cs (1)
48
public override TypeWithAnnotations ReturnTypeWithAnnotations => this.UnderlyingMethod.
ReturnTypeWithAnnotations
;
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
103
get { return _interfaceMethod.
ReturnTypeWithAnnotations
; }
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
193
return _overriddenAccessor.
ReturnTypeWithAnnotations
;
Symbols\TypeSymbol.cs (1)
1619
interfaceMethod.
ReturnTypeWithAnnotations
,
Symbols\TypeSymbolExtensions.cs (3)
1004
next = currentPointer.
ReturnTypeWithAnnotations
;
1009
typeWithAnnotationsOpt: canDigThroughNullable ? default : currentPointer.
ReturnTypeWithAnnotations
,
1010
type: canDigThroughNullable ? currentPointer.
ReturnTypeWithAnnotations
.NullableUnderlyingTypeOrSelf : null,