41 references to Identity
Microsoft.CodeAnalysis.CSharp (41)
Binder\Binder_Patterns.cs (1)
817conversion = Conversion.Identity;
Binder\Semantics\Conversions\Conversion.cs (1)
330internal static ImmutableArray<Conversion> IdentityUnderlying = ImmutableArray.Create(Identity);
Binder\Semantics\Conversions\ConversionsBase.cs (6)
109return Conversion.Identity; 177return Conversion.Identity; 259conversion = Conversion.Identity; 708return Conversion.Identity; 891impliedExplicitConversion = Conversion.Identity; 1932return Conversion.Identity;
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (3)
300Conversion toConversion = allowAnyTarget ? Conversion.Identity : 321toConversion = allowAnyTarget ? Conversion.Identity : 350Conversion.Identity;
Binder\Semantics\OverloadResolution\MemberAnalysisResult.cs (1)
156return Conversion.Identity;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
4408conversion = Conversion.Identity; 4504conversions.AddMany(Conversion.Identity, argumentPosition); 4582return Conversion.Identity; 4606return Conversion.Identity;
BoundTree\BoundExpressionExtensions.cs (1)
249return Conversion.Identity;
BoundTree\BoundNode.cs (1)
477return Conversion.Identity;
Compilation\CSharpSemanticModel.cs (10)
966return new CSharpTypeInfo(declarationTypeSymbol, declarationTypeSymbol, nullabilityInfo, nullabilityInfo, Conversion.Identity); 970return new CSharpTypeInfo(declarationInfo.Type, declarationInfo.Type, declarationInfo.Nullability, declarationInfo.Nullability, Conversion.Identity); 2031return new CSharpTypeInfo(member.Type, member.Type, nullability: default, convertedNullability: default, Conversion.Identity); 2144conversion = Conversion.Identity; 2162conversion = Conversion.Identity; 2185conversion = Conversion.Identity; 2193conversion = Conversion.Identity; 2238conversion = Conversion.Identity; 2257conversion = Conversion.Identity; 2355return new CSharpTypeInfo(type, type, default, default, Conversion.Identity);
Compilation\TypeInfo.cs (1)
15internal static readonly CSharpTypeInfo None = new CSharpTypeInfo(type: null, convertedType: null, nullability: default, convertedNullability: default, Conversion.Identity);
FlowAnalysis\NullableWalker.cs (9)
4642_ = VisitConversion(conversionOpt: null, conversionOperand: expressionsNoConversions[i], Conversion.Identity, targetTypeWithNullability: inferredType, operandType: expressionTypes[i], 4938leftConversion = Conversion.Identity; 4958leftConversion = Conversion.Identity; 6892conversions.IsDefault || i >= conversions.Length ? Conversion.Identity : conversions[i], 7749var conversion = Conversion.Identity; 8060return (expr, Conversion.Identity); 8075return (expr, group?.Conversion ?? Conversion.Identity); 8809conversion = Conversion.MakeNullableConversion(ConversionKind.ImplicitNullable, Conversion.Identity); 9835CheckExtensionMethodThisNullability(receiverOpt, Conversion.Identity, method.Parameters[0], receiverType);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
285Conversion.Identity,
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
211var conversion = Conversion.MakeNullableConversion(ConversionKind.ImplicitNullable, Conversion.Identity);
Operations\CSharpOperationFactory.cs (1)
1598valueConversion = Conversion.Identity;