46 references to Identity
Microsoft.CodeAnalysis.CSharp (46)
Binder\Binder_Operators.cs (2)
3635
case ConversionKind.
Identity
:
3879
case ConversionKind.
Identity
:
Binder\Binder_Statements.cs (3)
1948
if (conversion.Kind != ConversionKind.
Identity
)
2674
if (conversion.Kind == ConversionKind.
Identity
)
3161
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)
1032
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)
651
case ConversionKind.
Identity
:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
2191
if (allSame && Conversions.ClassifyImplicitConversionFromType(type1Normalized, type2Normalized, ref useSiteInfo).Kind != ConversionKind.
Identity
)
2200
if (Conversions.ClassifyImplicitConversionFromType(type1Normalized, type2Normalized, ref useSiteInfo).Kind != ConversionKind.
Identity
)
2313
if (Conversions.ClassifyImplicitConversionFromType(type1Normalized, type2Normalized, ref useSiteInfo).Kind != ConversionKind.
Identity
)
2863
return conv1.Kind == ConversionKind.
Identity
? BetterResult.Left : BetterResult.Neither;
2867
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)
2060
case ConversionKind.
Identity
:
2722
Debug.Assert(conversion.Kind is ConversionKind.
Identity
or ConversionKind.ImplicitReference);
8558
case ConversionKind.
Identity
:
8949
goto case ConversionKind.
Identity
;
8951
case ConversionKind.
Identity
:
10391
case ConversionKind.
Identity
:
11548
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)
584
case ConversionKind.
Identity
:
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
204
if (conversion.Kind is not (ConversionKind.
Identity
or ConversionKind.ImplicitReference))
211
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
)