5 writes to ResultType
Microsoft.CodeAnalysis.VisualBasic (5)
Semantics\TypeInference\TypeArgumentInference.vb (2)
379competitor.ResultType = TypeInferenceCollection.MergeTupleNames(competitor.ResultType, type) 395typeData.ResultType = type
Semantics\TypeInference\TypeInferenceCollection.vb (3)
32ResultType = Nothing 587competitor.ResultType = MergeTupleNames(type, competitor.ResultType) 601typeData.ResultType = type
32 references to ResultType
Microsoft.CodeAnalysis.VisualBasic (32)
Binding\Binder_Expressions.vb (2)
4562Debug.Assert(Not results(0).ResultType.IsVoidType(), "internal logic error: how could void have won the dominant type algorithm?") 4564dominantType = results(0).ResultType
Binding\Binder_Query.vb (1)
3504targetType = resultList(0).ResultType
Semantics\TypeInference\TypeArgumentInference.vb (8)
291RegisterInferredType(typeData.ResultType, argumentLocation, typeData.ByAssumption) 299firstInferredType = currentTypeInfo.ResultType 301ElseIf Not firstInferredType.IsSameTypeIgnoringAll(currentTypeInfo.ResultType) Then 324RegisterInferredType(typeData.ResultType, typeData.ArgumentLocation, typeData.ByAssumption) 341RegisterInferredType(allTypeData(0).ResultType, argumentLocation, False) 378If TypeOf competitor.ResultType IsNot ArrayLiteralTypeSymbol AndAlso type.IsSameTypeIgnoringAll(competitor.ResultType) Then 379competitor.ResultType = TypeInferenceCollection.MergeTupleNames(competitor.ResultType, type)
Semantics\TypeInference\TypeInferenceCollection.vb (21)
131If candidateTypeData.ResultType Is Nothing Then 250If outer.ResultType Is Nothing OrElse inner.ResultType Is Nothing Then 260Dim arrayLiteralType = TryCast(inner.ResultType, ArrayLiteralTypeSymbol) 263conversion = Conversions.ClassifyConversion(inner.ResultType, outer.ResultType, useSiteInfo).Key 267conversion = Conversions.ClassifyConversion(arrayLiteral, outer.ResultType, arrayLiteral.Binder, useSiteInfo).Key 269IsSameTypeIgnoringAll(arrayLiteralType, outer.ResultType) Then 289If TypeOf resultList(i).ResultType IsNot ArrayLiteralTypeSymbol Then 304Dim inferredType As TypeSymbol = resultList(0).ResultType 307If Not resultList(i).ResultType.IsSameTypeIgnoringAll(inferredType) Then 316Dim rank As Integer = DirectCast(resultList(0).ResultType, ArrayLiteralTypeSymbol).Rank 319If DirectCast(resultList(i).ResultType, ArrayLiteralTypeSymbol).Rank <> rank Then 331AppendArrayElements(DirectCast(candidate.ResultType, ArrayLiteralTypeSymbol).ArrayLiteral.Initializer, elements) 335Dim inferredElementType = DirectCast(resultList(0).ResultType, ArrayLiteralTypeSymbol).ArrayLiteral. 346Dim candidateType = DirectCast(candidate.ResultType, ArrayLiteralTypeSymbol) 426Dim candidate As TypeSymbol = candidateData.ResultType 427Dim hint As TypeSymbol = hintData.ResultType 586If TypeOf competitor.ResultType IsNot ArrayLiteralTypeSymbol AndAlso type.IsSameTypeIgnoringAll(competitor.ResultType) Then 587competitor.ResultType = MergeTupleNames(type, competitor.ResultType)