30 references to IsImplicit
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1606=> fromType != null && toType != null && this.ClassifyCommonConversion(fromType, toType).IsImplicit;
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
110if (conversion.IsImplicit)
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 (9)
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (2)
149if (firstConversion is { IsImplicit: false, IsReference: true } or { IsIdentity: true } && 150secondConversion is { IsImplicit: false, IsReference: true })
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
563if (conversion.IsImplicit)
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (2)
123if (!conversion.IsIdentity && !conversion.IsImplicit) 378=> compilation.ClassifyCommonConversion(sourceType, targetType).IsImplicit;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Method.cs (2)
88t => compilation.ClassifyCommonConversion(t.p1.Type, t.p2.Type) is not { IsImplicit: true, Exists: true })) 96return compilation.ClassifyCommonConversion(conflictingMethod.ReturnType, method.ReturnType) is { IsImplicit: true, Exists: true };
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
223if (compilation.ClassifyCommonConversion(conflictingProperty.Type, property.Type) is { Exists: true, IsImplicit: true }) 264if (compilation.ClassifyCommonConversion(property.Type, conflictingProperty.Type) is { Exists: true, IsImplicit: true })
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IArgument.cs (1)
4100Assert.False(conversion.Conversion.IsImplicit);
Microsoft.CodeAnalysis.Features (14)
ChangeSignature\AbstractChangeSignatureService.cs (1)
962if (semanticModel.Compilation.ClassifyCommonConversion(symbolType, addedParameter.Type).IsImplicit)
Completion\Providers\AbstractContextVariableArgumentProvider.cs (2)
147if (bestConversion.IsImplicit && !conversion.IsImplicit)
Completion\Providers\CompletionUtilities.cs (1)
19if (compilation.ClassifyCommonConversion(sourceType, targetType).IsImplicit)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
143return type != null && compilation.ClassifyCommonConversion(type, disposableType).IsImplicit;
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
110if (conversion.IsImplicit)
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)
150secondConversion is { IsImplicit: false, IsReference: true })
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
563if (conversion.IsImplicit)
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (2)
123if (!conversion.IsIdentity && !conversion.IsImplicit) 378=> compilation.ClassifyCommonConversion(sourceType, targetType).IsImplicit;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Method.cs (2)
88t => compilation.ClassifyCommonConversion(t.p1.Type, t.p2.Type) is not { IsImplicit: true, Exists: true })) 96return compilation.ClassifyCommonConversion(conflictingMethod.ReturnType, method.ReturnType) is { IsImplicit: true, Exists: true };
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
223if (compilation.ClassifyCommonConversion(conflictingProperty.Type, property.Type) is { Exists: true, IsImplicit: true }) 264if (compilation.ClassifyCommonConversion(property.Type, conflictingProperty.Type) is { Exists: true, IsImplicit: true })