36 overrides of ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (36)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
145public override TypeWithAnnotations ReturnTypeWithAnnotations
Lowering\SynthesizedMethodBaseSymbol.cs (1)
188public 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\Extensions\RewrittenMethodSymbol.cs (1)
42public sealed 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)
352public 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)
234public override TypeWithAnnotations ReturnTypeWithAnnotations
Symbols\Source\SourceConstructorSymbolBase.cs (1)
150public 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)
225public 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
64 references to ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (64)
Binder\Binder_Expressions.cs (1)
11184var returnType = returnTypeOverride ?? methodSymbol.ReturnTypeWithAnnotations;
Binder\ForEachLoopBinder.cs (2)
268diagnostics.Add(ErrorCode.ERR_BadGetAsyncEnumerator, expr.Location, getEnumeratorMethod.ReturnTypeWithAnnotations, getEnumeratorMethod); 1192builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.ReturnTypeWithAnnotations ?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax));
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
110return method.ReturnTypeWithAnnotations; 1418var returnType = delegateType.DelegateInvokeMethod.ReturnTypeWithAnnotations; 1628ExactInference(anonymousFunctionReturnType, delegateInvokeMethod.ReturnTypeWithAnnotations, ref useSiteInfo);
BoundTree\UnboundLambda.cs (1)
667return invokeMethod.ReturnTypeWithAnnotations;
CodeGen\CodeGenerator.cs (1)
177var localSymbol = new SynthesizedLocal(_method, _method.ReturnTypeWithAnnotations, SynthesizedLocalKind.FunctionReturnValue, bodySyntax);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
528isCorrespondingType(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)
3142var returnType = delegateOrMethod.ReturnTypeWithAnnotations; 4008return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 5061return GetLiftedReturnType(methodOpt.ReturnTypeWithAnnotations, leftType.State.Join(rightType.State)); 6539SetResult(node, returnState, method.ReturnTypeWithAnnotations); 6897return TypeWithState.Create(method.ReturnTypeWithAnnotations, GetRValueAnnotations(method)); 8288return method.ReturnTypeWithAnnotations; 9814var methodReturnType = method.ReturnTypeWithAnnotations; 10870targetTypeOfOperandConversion = operandConversion.Method.ReturnTypeWithAnnotations; 10915resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.ToTypeWithState(); 11516currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 11524var result = new VisitResult(GetReturnTypeWithState(moveNextAsyncMethod), moveNextAsyncMethod.ReturnTypeWithAnnotations); 11539var result = new VisitResult(GetReturnTypeWithState(disposeAsyncMethod), disposeAsyncMethod.ReturnTypeWithAnnotations); 11767resultType = GetLiftedReturnTypeIfNecessary(isLifted, method.ReturnTypeWithAnnotations, operandResult.State); 11938SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState());
Lowering\LocalRewriter\LocalRewriter.cs (1)
416predicate(localFunction.ReturnTypeWithAnnotations) || localFunction.ParameterTypesWithAnnotations.Any(predicate);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
190get { return this.TypeMap.SubstituteType(this.BaseMethod.OriginalDefinition.ReturnTypeWithAnnotations); }
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
44get { return _typeMap.SubstituteType(_originalMethod.ReturnTypeWithAnnotations); }
Symbols\MemberSymbolExtensions.cs (1)
438var methodReturnType = method.ReturnTypeWithAnnotations;
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
284TypeWithAnnotations candidateMethodType = candidateMethod.ReturnTypeWithAnnotations;
Symbols\MethodSymbol.cs (4)
247public TypeSymbol ReturnType => ReturnTypeWithAnnotations.Type; 958if (DeriveUseSiteInfoFromType(ref result, this.ReturnTypeWithAnnotations, 975if (this.ReturnTypeWithAnnotations.GetUnificationUseSiteDiagnosticRecursive(ref diagnosticInfo, this, ref unificationCheckedTypes) || 1161var type = this.ReturnTypeWithAnnotations;
Symbols\NativeIntegerTypeSymbol.cs (1)
352public 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)
996else if (!IsValidOverrideReturnType(overridingMethod, overridingMethod.ReturnTypeWithAnnotations, overriddenMethod.ReturnTypeWithAnnotations, diagnostics)) 1003if (DeclaringCompilation.Conversions.HasIdentityOrImplicitReferenceConversion(overridingMethod.ReturnTypeWithAnnotations.Type, overriddenMethod.ReturnTypeWithAnnotations.Type, ref discardedUseSiteInfo)) 1269var overrideReturnType = getNotNullIfNotNullOutputType(overrideMethod.ReturnTypeWithAnnotations, overrideMethod.ReturnNotNullIfParameterNotNull); 1275baseMethod.ReturnTypeWithAnnotations.Type)) 1284baseMethod.ReturnTypeWithAnnotations,
Symbols\Source\SourceMemberMethodSymbol.cs (2)
920var unusedType = this.ReturnTypeWithAnnotations; 1022builder.AddValue(method.ReturnTypeWithAnnotations);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
484bool hasTypeDifferences = !constructedDefinition.ReturnTypeWithAnnotations.Equals(implementation.ReturnTypeWithAnnotations, TypeCompareKind.AllIgnoreOptions);
Symbols\SubstitutedMethodSymbol.cs (1)
234var returnType = Map.SubstituteType(OriginalDefinition.ReturnTypeWithAnnotations);
Symbols\SymbolExtensions.cs (1)
488returnType = 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)
1627interfaceMethod.ReturnTypeWithAnnotations,
Symbols\TypeSymbolExtensions.cs (3)
958next = currentPointer.ReturnTypeWithAnnotations; 963typeWithAnnotationsOpt: canDigThroughNullable ? default : currentPointer.ReturnTypeWithAnnotations, 964type: canDigThroughNullable ? currentPointer.ReturnTypeWithAnnotations.NullableUnderlyingTypeOrSelf : null,