13 references to ClassifyConversionFromType
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Operators.cs (1)
1276
var conversion = this.Conversions.
ClassifyConversionFromType
(argumentType, op.GetParameterType(0), isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
Binder\Binder_Statements.cs (2)
1367
Conversion elementConversionClassification = this.Conversions.
ClassifyConversionFromType
(pointerType, declType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
1942
this.Conversions.
ClassifyConversionFromType
(expression.Type, targetType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
Binder\ForEachLoopBinder.cs (2)
469
Conversion elementConversionClassification = this.Conversions.
ClassifyConversionFromType
(inferredType.Type, iterationVariableType.Type, isChecked: CheckOverflowAtRuntime, ref useSiteInfo, forCast: true);
524
Conversion currentConversionClassification = this.Conversions.
ClassifyConversionFromType
(builder.CurrentPropertyGetter.ReturnType, builder.ElementType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
245
return
ClassifyConversionFromType
(source, destination, isChecked: isChecked, ref useSiteInfo);
2392
return conversions.
ClassifyConversionFromType
(s.Type, d.Type, isChecked: isChecked, ref u, forCast);
Compilation\BuiltInOperators.cs (2)
933
var leftConversion = Conversions.
ClassifyConversionFromType
(leftType, rightType, isChecked: false, ref useSiteInfo);
939
var rightConversion = Conversions.
ClassifyConversionFromType
(rightType, leftType, isChecked: false, ref useSiteInfo);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
621
var kind = _bound.Compilation.Conversions.
ClassifyConversionFromType
(oldType, newType, isChecked: false, ref useSiteInfo).Kind;
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
815
Conversion conversion = compilation.Conversions.
ClassifyConversionFromType
(rewrittenOperand.Type, rewrittenType, isChecked: @checked, ref useSiteInfo);
1856
var result = TryMakeConversion(syntax, _compilation.Conversions.
ClassifyConversionFromType
(fromType, toType, isChecked: @checked, ref useSiteInfo), fromType, toType, @checked: @checked);
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1015
else if (!compilation.Conversions.
ClassifyConversionFromType
((TypeSymbol)arg.TypeInternal, this.Type, isChecked: false, ref useSiteInfo).Kind.IsImplicitConversion())