46 references to Identity
Microsoft.CodeAnalysis.CSharp (46)
Binder\Binder_Operators.cs (2)
3640
case ConversionKind.
Identity
:
3884
case ConversionKind.
Identity
:
Binder\Binder_Statements.cs (3)
1951
if (conversion.Kind != ConversionKind.
Identity
)
2677
if (conversion.Kind == ConversionKind.
Identity
)
3164
if (conversion.Kind != ConversionKind.
Identity
)
Binder\ForEachLoopBinder.cs (1)
471
if (elementConversionClassification.Kind != ConversionKind.
Identity
&& IterationVariable.RefKind is RefKind.Ref or RefKind.RefReadOnly)
Binder\RefSafetyAnalysis.cs (1)
1057
case ConversionKind.
Identity
:
Binder\Semantics\Conversions\Conversion.cs (4)
222
case ConversionKind.
Identity
:
268
internal static Conversion Identity => new Conversion(ConversionKind.
Identity
);
354
ConversionKind.
Identity
=> kind == ConversionKind.ImplicitNullable ? ImplicitNullableWithIdentityUnderlying : ExplicitNullableWithIdentityUnderlying,
647
return Kind == ConversionKind.
Identity
;
Binder\Semantics\Conversions\ConversionEasyOut.cs (1)
23
const byte IDN = (byte)ConversionKind.
Identity
;
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
26
case
Identity
:
Binder\Semantics\Conversions\ConversionsBase.cs (3)
589
case ConversionKind.
Identity
:
890
case ConversionKind.
Identity
:
2007
case ConversionKind.
Identity
:
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
656
case ConversionKind.
Identity
:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
2199
if (allSame && Conversions.ClassifyImplicitConversionFromType(type1Normalized, type2Normalized, ref useSiteInfo).Kind != ConversionKind.
Identity
)
2208
if (Conversions.ClassifyImplicitConversionFromType(type1Normalized, type2Normalized, ref useSiteInfo).Kind != ConversionKind.
Identity
)
2321
if (Conversions.ClassifyImplicitConversionFromType(type1Normalized, type2Normalized, ref useSiteInfo).Kind != ConversionKind.
Identity
)
2871
return conv1.Kind == ConversionKind.
Identity
? BetterResult.Left : BetterResult.Neither;
2875
return conv2.Kind == ConversionKind.
Identity
? BetterResult.Right : BetterResult.Neither;
BoundTree\BoundExpression.cs (1)
495
case ConversionKind.
Identity
:
CodeGen\EmitConversion.cs (1)
95
case ConversionKind.
Identity
:
FlowAnalysis\NullableWalker.cs (7)
2121
case ConversionKind.
Identity
:
2783
Debug.Assert(conversion.Kind is ConversionKind.
Identity
or ConversionKind.ImplicitReference);
8616
case ConversionKind.
Identity
:
9007
goto case ConversionKind.
Identity
;
9009
case ConversionKind.
Identity
:
10449
case ConversionKind.
Identity
:
11606
case ConversionKind.
Identity
:
FlowAnalysis\NullableWalker_Patterns.cs (2)
466
case ConversionKind.
Identity
:
765
ConversionKind.
Identity
=> true,
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
627
case ConversionKind.
Identity
:
719
case ConversionKind.
Identity
:
Lowering\DiagnosticsPass_Warnings.cs (1)
896
case ConversionKind.
Identity
:
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
583
case ConversionKind.
Identity
:
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
207
if (conversion.Kind is not (ConversionKind.
Identity
or ConversionKind.ImplicitReference))
214
return conversion.Kind is ConversionKind.
Identity
or ConversionKind.ImplicitReference;
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
252
return conversion.ConversionKind == ConversionKind.
Identity
&& !conversion.ExplicitCastInCode;
319
case ConversionKind.
Identity
:
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
307
if ((tupleConversion.Conversion.Kind == ConversionKind.ImplicitTupleLiteral || tupleConversion.Conversion.Kind == ConversionKind.
Identity
)
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (2)
92
BoundNode.GetConversion(leftConversion, leftPlaceholder) is { Kind: ConversionKind.
Identity
or ConversionKind.ImplicitReference })
224
if (boundConversion.ConversionKind != ConversionKind.
Identity
)
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
49
case BoundConversion { Conversion: { Kind: ConversionKind.
Identity
}, Operand: var o }:
Lowering\SyntheticBoundNodeFactory.cs (1)
559
if (conversion.Kind != ConversionKind.
Identity
)