2 writes to ReturnType
Microsoft.CodeAnalysis.VisualBasic (2)
BoundTree\UnboundLambda.vb (2)
143Me.ReturnType = returnType 170Me.ReturnType = returnType
17 references to ReturnType
Microsoft.CodeAnalysis.VisualBasic (17)
Binding\Binder_Lambda.vb (12)
172If target.ReturnType.SpecialType <> SpecialType.System_Void AndAlso 173Not ((source.Flags And SourceMemberFlags.Async) <> 0 AndAlso target.ReturnType Is Compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task)) AndAlso 174Not ((source.Flags And SourceMemberFlags.Iterator) <> 0 AndAlso (target.ReturnType.SpecialType = SpecialType.System_Collections_IEnumerable OrElse 175target.ReturnType.SpecialType = SpecialType.System_Collections_IEnumerator)) Then 177targetReturnType = target.ReturnType 198Debug.Assert(target.ReturnType.IsVoidType() OrElse 199((source.Flags And SourceMemberFlags.Async) <> 0 AndAlso target.ReturnType.Equals(Compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task)))) 203If Not targetForInference.ReturnType.IsVoidType() Then 289If source.ReturnType Is Nothing AndAlso target.ReturnType.SpecialType <> SpecialType.System_Void Then 777returnTypeInfo = source.InferReturnType(New UnboundLambda.TargetSignature(StaticCast(Of ParameterSymbol).From(parameters), targetSignature.ReturnType, targetSignature.ReturnsByRef)) 840BindLambdaForErrorRecoveryInferCommonType(commonReturnType, target.ReturnType) 890source.ReturnType Is Nothing AndAlso targetParameters.ReturnType.IsVoidType())
BoundTree\UnboundLambda.vb (4)
61Debug.Assert(target IsNot Nothing AndAlso target.ReturnType.IsVoidType()) 185hashVal = Hash.Combine(ReturnType, hashVal) 208Return Me.ReturnsByRef = other.ReturnsByRef AndAlso TypeSymbol.Equals(Me.ReturnType, other.ReturnType, TypeCompareKind.ConsiderEverything)
Semantics\Conversions.vb (1)
4162toMethodSignature.ReturnType, toMethodSignature.ReturnsByRef, useSiteInfo)