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