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