13 references to IsIdentity
Microsoft.CodeAnalysis (4)
Operations\ControlFlowGraphBuilder.cs (4)
3008
(!testConversion.
IsIdentity
|| !ITypeSymbolHelpers.IsNullableType(operation.Type)))
3019
if (testConversion.
IsIdentity
)
4561
if (conversionOpt?.ToCommonConversion().
IsIdentity
== false)
4680
Debug.Assert(info?.ElementConversion?.ToCommonConversion().
IsIdentity
!= false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
149
if (firstConversion is { IsImplicit: false, IsReference: true } or {
IsIdentity
: true } &&
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (1)
170
&& semanticModel.Compilation.ClassifyCommonConversion(argumentType, parameterType).
IsIdentity
)
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
123
if (!conversion.
IsIdentity
&& !conversion.IsImplicit)
Microsoft.CodeAnalysis.Features (4)
Completion\Providers\AbstractContextVariableArgumentProvider.cs (2)
144
if (bestConversion.
IsIdentity
&& !conversion.
IsIdentity
)
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (1)
170
&& semanticModel.Compilation.ClassifyCommonConversion(argumentType, parameterType).
IsIdentity
)
src\Analyzers\Core\CodeFixes\GenerateConstructor\GenerateConstructorHelpers.cs (1)
123
if (!conversion.
IsIdentity
&& !conversion.IsImplicit)
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\OperationTreeVerifier.cs (2)
253
var isIdentity = FormatBoolProperty(nameof(conversion.
IsIdentity
), conversion.
IsIdentity
);