2 overrides of ClassifyCommonConversion
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
2320public override CommonConversion ClassifyCommonConversion(ITypeSymbol source, ITypeSymbol destination)
Microsoft.CodeAnalysis.VisualBasic (1)
Compilation\VisualBasicCompilation.vb (1)
1894Public Overrides Function ClassifyCommonConversion(source As ITypeSymbol, destination As ITypeSymbol) As CommonConversion
17 references to ClassifyCommonConversion
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1598=> fromType != null && toType != null && this.ClassifyCommonConversion(fromType, toType).IsImplicit;
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
105conversion = context.Compilation.ClassifyCommonConversion(collectionElementType, iterationType);
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (2)
89return compilation.ClassifyCommonConversion(firstType, secondType).IsImplicit 90^ compilation.ClassifyCommonConversion(secondType, firstType).IsImplicit;
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
147var secondConversion = semanticModel.Compilation.ClassifyCommonConversion(castType, conversionType);
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (1)
170&& semanticModel.Compilation.ClassifyCommonConversion(argumentType, parameterType).IsIdentity)
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
561var conversion = compilation.ClassifyCommonConversion(argumentTypeInfo.Type, parameterType);
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
74var conversion = semanticModel.Compilation.ClassifyCommonConversion(elementType, variableDeclarator.Symbol.Type);
Microsoft.CodeAnalysis.Features (9)
Completion\Providers\CompletionUtilities.cs (1)
19if (compilation.ClassifyCommonConversion(sourceType, targetType).IsImplicit)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
107return compilation.ClassifyCommonConversion(type, disposableType).IsImplicit;
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
105conversion = context.Compilation.ClassifyCommonConversion(collectionElementType, iterationType);
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (2)
89return compilation.ClassifyCommonConversion(firstType, secondType).IsImplicit 90^ compilation.ClassifyCommonConversion(secondType, firstType).IsImplicit;
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
147var secondConversion = semanticModel.Compilation.ClassifyCommonConversion(castType, conversionType);
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (1)
170&& semanticModel.Compilation.ClassifyCommonConversion(argumentType, parameterType).IsIdentity)
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
561var conversion = compilation.ClassifyCommonConversion(argumentTypeInfo.Type, parameterType);
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
74var conversion = semanticModel.Compilation.ClassifyCommonConversion(elementType, variableDeclarator.Symbol.Type);