1 write to FromType
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\Conversions\UserDefinedConversionAnalysis.cs (1)
80this.FromType = fromType;
10 references to FromType
Microsoft.CodeAnalysis.CSharp (10)
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (3)
415System.Func<UserDefinedConversionAnalysis, bool> isValid = conv => IsEncompassedBy(sourceExpression, source, conv.FromType, ref inLambdaUseSiteInfo); 418var result = MostEncompassedType(u, isValid, conv => conv.FromType, ref inLambdaUseSiteInfo); 426return MostEncompassingType(u, conv => conv.FromType, ref useSiteInfo);
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (3)
378return MostEncompassedType(u, conv => conv.FromType, ref useSiteInfo); 415if (!TypeSymbol.Equals(conv.FromType, conv.Operator.GetParameterType(0), TypeCompareKind.ConsiderEverything2)) 430return MostSpecificConversionOperator(conv => TypeSymbol.Equals(conv.FromType, sx, TypeCompareKind.ConsiderEverything2) && TypeSymbol.Equals(conv.ToType, tx, TypeCompareKind.ConsiderEverything2), u);
FlowAnalysis\NullableWalker.cs (1)
9423TypeWithAnnotations.Create(conversion.BestUserDefinedConversionAnalysis!.FromType),
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
874if (!TypeSymbol.Equals(rewrittenOperand.Type, conversion.BestUserDefinedConversionAnalysis.FromType, TypeCompareKind.ConsiderEverything2)) 880conversion.BestUserDefinedConversionAnalysis.FromType, 888conversion.BestUserDefinedConversionAnalysis.FromType,