4 references to ClassifyConversion
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
146
var firstConversion = semanticFacts.
ClassifyConversion
(semanticModel, castedExpression, castType);
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (2)
156
&& semanticFacts.
ClassifyConversion
(semanticModel, argumentExpression, paramsType.ElementType).Exists)
162
else if (semanticFacts.
ClassifyConversion
(semanticModel, argumentExpression, parameterType).Exists)
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
122
var conversion = semanticFacts.
ClassifyConversion
(semanticModel, expression, constructorParameter.Type);