8 references to HasImplicitConversion
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (2)
37
if (semanticModel.Compilation.
HasImplicitConversion
(leftPartTypeSymbol, rightPartTypeSymbol) ||
38
semanticModel.Compilation.
HasImplicitConversion
(rightPartTypeSymbol, leftPartTypeSymbol))
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (2)
37
if (semanticModel.Compilation.
HasImplicitConversion
(leftPartTypeSymbol, rightPartTypeSymbol) ||
38
semanticModel.Compilation.
HasImplicitConversion
(rightPartTypeSymbol, leftPartTypeSymbol))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\GetSemanticInfoTests.cs (1)
649
Assert.Equal(conversion.IsImplicit, model.Compilation.
HasImplicitConversion
(info.Type, info.ConvertedType));
Microsoft.CodeAnalysis.Features (3)
ChangeSignature\AbstractChangeSignatureService.cs (1)
1063
return !semanticModel.Compilation.
HasImplicitConversion
(fromType.Type, toType);
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (2)
342
return compilation.
HasImplicitConversion
(type1, type2) ||
343
compilation.
HasImplicitConversion
(type2, type1);