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