35 overrides of ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (35)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
145public override TypeWithAnnotations ReturnTypeWithAnnotations
Lowering\SynthesizedMethodBaseSymbol.cs (1)
203public sealed override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (1)
58public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.EqualsMethodSymbol.cs (1)
43public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.GetHashCodeMethodSymbol.cs (1)
47public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
44public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ToStringMethodSymbol.cs (1)
47public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\ErrorMethodSymbol.cs (1)
163public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
768public override TypeWithAnnotations ReturnTypeWithAnnotations { get; }
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
664public override TypeWithAnnotations ReturnTypeWithAnnotations => Signature.ReturnParam.TypeWithAnnotations;
Symbols\NativeIntegerTypeSymbol.cs (1)
347public override TypeWithAnnotations ReturnTypeWithAnnotations => _container.SubstituteUnderlyingType(UnderlyingMethod.ReturnTypeWithAnnotations);
Symbols\ReducedExtensionMethodSymbol.cs (1)
492public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
129public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\SignatureOnlyMethodSymbol.cs (1)
77public override TypeWithAnnotations ReturnTypeWithAnnotations { get { return _returnType; } }
Symbols\Source\LambdaSymbol.cs (1)
150public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Source\LocalFunctionSymbol.cs (1)
229public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Source\SourceConstructorSymbolBase.cs (1)
143public sealed override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
158public sealed override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Source\SourceDestructorSymbol.cs (1)
120public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Source\SourceEventAccessorSymbol.cs (1)
160public sealed override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
185public sealed override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
345public sealed override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\SubstitutedMethodSymbol.cs (1)
228public sealed override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
165public override TypeWithAnnotations ReturnTypeWithAnnotations { get; }
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (3)
392public override TypeWithAnnotations ReturnTypeWithAnnotations => TypeWithAnnotations.Create(_getAwaiterGetResultCall.Type); 458public override TypeWithAnnotations ReturnTypeWithAnnotations => _returnType; 556public override TypeWithAnnotations ReturnTypeWithAnnotations => _returnType;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
209public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
101public sealed override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
154public sealed override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
144public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
224public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
189public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
155public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
135public override TypeWithAnnotations ReturnTypeWithAnnotations
62 references to ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder_Expressions.cs (1)
10802var returnType = returnTypeOverride ?? methodSymbol.ReturnTypeWithAnnotations;
Binder\ForEachLoopBinder.cs (2)
260diagnostics.Add(ErrorCode.ERR_BadGetAsyncEnumerator, expr.Location, getEnumeratorMethod.ReturnTypeWithAnnotations, getEnumeratorMethod); 1163builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.ReturnTypeWithAnnotations ?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax));
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
110return method.ReturnTypeWithAnnotations; 1392var returnType = delegateType.DelegateInvokeMethod.ReturnTypeWithAnnotations; 1600ExactInference(anonymousFunctionReturnType, delegateInvokeMethod.ReturnTypeWithAnnotations, ref useSiteInfo);
BoundTree\UnboundLambda.cs (1)
646return invokeMethod.ReturnTypeWithAnnotations;
CodeGen\CodeGenerator.cs (1)
177var localSymbol = new SynthesizedLocal(_method, _method.ReturnTypeWithAnnotations, SynthesizedLocalKind.FunctionReturnValue, bodySyntax);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
521isCorrespondingType(invokeMethod.ReturnTypeWithAnnotations, otherInvokeMethod.ReturnTypeWithAnnotations);
Emitter\Model\MethodReference.cs (1)
89return ImmutableArray<Cci.ICustomModifier>.CastUp(UnderlyingMethod.ReturnTypeWithAnnotations.CustomModifiers);
Emitter\Model\MethodSymbolAdapter.cs (1)
220return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedMethodSymbol.ReturnTypeWithAnnotations.CustomModifiers);
FlowAnalysis\NullableWalker.cs (14)
3045var returnType = delegateOrMethod.ReturnTypeWithAnnotations; 3862return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4905return GetLiftedReturnType(methodOpt.ReturnTypeWithAnnotations, leftType.State.Join(rightType.State)); 6361SetResult(node, returnState, method.ReturnTypeWithAnnotations); 6633return TypeWithState.Create(method.ReturnTypeWithAnnotations, GetRValueAnnotations(method)); 7983return method.ReturnTypeWithAnnotations; 9475var methodReturnType = method.ReturnTypeWithAnnotations; 10493targetTypeOfOperandConversion = operandConversion.Method.ReturnTypeWithAnnotations; 10538resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.ToTypeWithState(); 11085currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 11093var result = new VisitResult(GetReturnTypeWithState(moveNextAsyncMethod), moveNextAsyncMethod.ReturnTypeWithAnnotations); 11108var result = new VisitResult(GetReturnTypeWithState(disposeAsyncMethod), disposeAsyncMethod.ReturnTypeWithAnnotations); 11336resultType = GetLiftedReturnTypeIfNecessary(isLifted, method.ReturnTypeWithAnnotations, operandResult.State); 11507SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState());
Lowering\SynthesizedMethodBaseSymbol.cs (1)
205get { return this.TypeMap.SubstituteType(this.BaseMethod.OriginalDefinition.ReturnTypeWithAnnotations); }
Symbols\MemberSymbolExtensions.cs (1)
204var methodReturnType = method.ReturnTypeWithAnnotations;
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
284TypeWithAnnotations candidateMethodType = candidateMethod.ReturnTypeWithAnnotations;
Symbols\MethodSymbol.cs (4)
247public TypeSymbol ReturnType => ReturnTypeWithAnnotations.Type; 956if (DeriveUseSiteInfoFromType(ref result, this.ReturnTypeWithAnnotations, 973if (this.ReturnTypeWithAnnotations.GetUnificationUseSiteDiagnosticRecursive(ref diagnosticInfo, this, ref unificationCheckedTypes) || 1159var type = this.ReturnTypeWithAnnotations;
Symbols\NativeIntegerTypeSymbol.cs (1)
347public override TypeWithAnnotations ReturnTypeWithAnnotations => _container.SubstituteUnderlyingType(UnderlyingMethod.ReturnTypeWithAnnotations);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
893var methodReturnType = method.ReturnTypeWithAnnotations;
Symbols\PublicModel\MethodSymbol.cs (3)
85Interlocked.CompareExchange(ref _lazyReturnType, _underlying.ReturnTypeWithAnnotations.GetPublicSymbol(), null); 96return _underlying.ReturnTypeWithAnnotations.ToPublicAnnotation(); 254return _underlying.ReturnTypeWithAnnotations.CustomModifiers;
Symbols\ReducedExtensionMethodSymbol.cs (1)
494get { return _typeMap.SubstituteType(_reducedFrom.ReturnTypeWithAnnotations); }
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
136new TypeWithAnnotations.Boxed(this.RetargetingTranslator.Retarget(_underlyingMethod.ReturnTypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode, this.ContainingType)),
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1025translator.Retarget(method.ReturnTypeWithAnnotations, RetargetOptions.RetargetPrimitiveTypesByTypeCode),
Symbols\Source\CustomModifierUtils.cs (2)
47returnType = destinationMethod.ReturnTypeWithAnnotations; // Default value - in case we don't copy the custom modifiers. 50var sourceMethodReturnType = constructedSourceMethod.ReturnTypeWithAnnotations;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (7)
991else if (!IsValidOverrideReturnType(overridingMethod, overridingMethod.ReturnTypeWithAnnotations, overriddenMethod.ReturnTypeWithAnnotations, diagnostics)) 998if (DeclaringCompilation.Conversions.HasIdentityOrImplicitReferenceConversion(overridingMethod.ReturnTypeWithAnnotations.Type, overriddenMethod.ReturnTypeWithAnnotations.Type, ref discardedUseSiteInfo)) 1264var overrideReturnType = getNotNullIfNotNullOutputType(overrideMethod.ReturnTypeWithAnnotations, overrideMethod.ReturnNotNullIfParameterNotNull); 1270baseMethod.ReturnTypeWithAnnotations.Type)) 1279baseMethod.ReturnTypeWithAnnotations,
Symbols\Source\SourceMemberMethodSymbol.cs (2)
892var unusedType = this.ReturnTypeWithAnnotations; 994builder.AddValue(ReturnTypeWithAnnotations);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
479bool hasTypeDifferences = !constructedDefinition.ReturnTypeWithAnnotations.Equals(implementation.ReturnTypeWithAnnotations, TypeCompareKind.AllIgnoreOptions);
Symbols\SubstitutedMethodSymbol.cs (1)
234var returnType = Map.SubstituteType(OriginalDefinition.ReturnTypeWithAnnotations);
Symbols\SymbolExtensions.cs (1)
501returnType = method.ReturnTypeWithAnnotations;
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
99baseClone.ReturnTypeWithAnnotations :
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
103get { return _interfaceMethod.ReturnTypeWithAnnotations; }
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
193return _overriddenAccessor.ReturnTypeWithAnnotations;
Symbols\TypeSymbol.cs (1)
1609interfaceMethod.ReturnTypeWithAnnotations,
Symbols\TypeSymbolExtensions.cs (3)
957next = currentPointer.ReturnTypeWithAnnotations; 962typeWithAnnotationsOpt: canDigThroughNullable ? default : currentPointer.ReturnTypeWithAnnotations, 963type: canDigThroughNullable ? currentPointer.ReturnTypeWithAnnotations.NullableUnderlyingTypeOrSelf : null,