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