2 writes to LeftType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
35
this.
LeftType
= leftType;
46
this.
LeftType
= leftType;
43 references to LeftType
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder_Operators.cs (13)
251
bestSignature.
LeftType
,
310
var leftConversion = CreateConversion(node.Left, leftPlaceholder, best.LeftConversion, isCast: false, conversionGroupOpt: null, best.Signature.
LeftType
, diagnostics);
1037
Debug.Assert((object)signature.
LeftType
!= null);
1046
resultLeft = CreateConversion(left, best.LeftConversion, signature.
LeftType
, conversionDiagnostics);
1457
bool bothBool = signature.
LeftType
.SpecialType == SpecialType.System_Boolean &&
1468
var resultLeft = CreateConversion(left, best.LeftConversion, signature.
LeftType
, diagnostics);
1690
bool typesAreSame = TypeSymbol.Equals(signature.
LeftType
, signature.RightType, TypeCompareKind.ConsiderEverything2) && TypeSymbol.Equals(signature.
LeftType
, signature.ReturnType, TypeCompareKind.ConsiderEverything2);
1714
if (!HasApplicableBooleanOperator(t, WellKnownMemberNames.TrueOperatorName, signature.
LeftType
, ref useSiteInfo, out trueOperator) ||
1715
!HasApplicableBooleanOperator(t, WellKnownMemberNames.FalseOperatorName, signature.
LeftType
, ref useSiteInfo, out falseOperator))
1811
if (!TypeSymbol.Equals(signature.
LeftType
, signature.RightType, TypeCompareKind.AllIgnoreOptions) ||
1812
!TypeSymbol.Equals(signature.
LeftType
, signature.ReturnType, TypeCompareKind.AllIgnoreOptions))
1834
var leftPlaceholder = new BoundValuePlaceholder(syntax, signature.
LeftType
).MakeCompilerGenerated();
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
314
Conversion leftConversion = Conversions.FastClassifyConversion(leftType, signature.
LeftType
);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (12)
738
Debug.Assert(op.
LeftType
.IsObjectType());
741
var convLeft = getOperandConversionForAllowByRefLikeNullCheck(isChecked, left, op.
LeftType
, ref useSiteInfo);
813
var convLeft = Conversions.ClassifyConversionFromExpression(left, op.
LeftType
, isChecked: isChecked, ref useSiteInfo);
845
equalsIgnoringNullableAndDynamic(op.Signature.
LeftType
, existingSignature.
LeftType
) &&
1224
BetterResult leftBetter = BetterConversionFromExpression(left, op1.
LeftType
, op2.
LeftType
, ref useSiteInfo);
1264
if (Conversions.HasIdentityConversion(op1.
LeftType
, op2.
LeftType
) &&
1380
op1Left = op1.
LeftType
;
1397
op2Left = op2.
LeftType
;
1533
[TypeWithAnnotations.Create(candidate.
LeftType
), TypeWithAnnotations.Create(candidate.RightType)],
Binder\Semantics\Operators\BinaryOperatorSignature.cs (4)
56
return $"kind: {this.Kind} leftType: {this.
LeftType
} leftRefKind: {this.LeftRefKind} rightType: {this.RightType} rightRefKind: {this.RightRefKind} return: {this.ReturnType}";
63
TypeSymbol.Equals(this.
LeftType
, other.
LeftType
, TypeCompareKind.ConsiderEverything2) &&
87
Hash.Combine(
LeftType
,
BoundTree\NullabilityRewriter.cs (1)
152
op = new BinaryOperatorSignature(op.Kind, op.
LeftType
, op.RightType, op.ReturnType, GetUpdatedSymbol(node, op.Method), op.ConstrainedToTypeOpt);
Compilation\CSharpCompilation.cs (1)
4323
csharpLeftType.SpecialType == signature.
LeftType
.SpecialType &&
Compilation\CSharpSemanticModel.cs (1)
3943
compoundAssignment.Operator.
LeftType
,
Lowering\DiagnosticsPass_Warnings.cs (1)
292
explicitCastInCode: false, conversionGroupOpt: null, constantValueOpt: null, type: node.Operator.
LeftType
);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\NumericIntPtrTests.cs (2)
1594
verifyOperators(operators, (op, signed) => isNativeInt(op.
LeftType
, signed), expected, expected);
1595
verifyOperators(operators, (op, signed) => isNullableNativeInt(op.
LeftType
, signed), expected, expected);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\NativeIntegerTests.cs (2)
4834
verifyOperators(operators, (op, signed) => isNativeInt(op.
LeftType
, signed), expected, expected);
4835
verifyOperators(operators, (op, signed) => isNullableNativeInt(op.
LeftType
, signed), expected, expected);
Semantics\OperatorTests.cs (5)
8243
TypeSymbol.Equals((signature = compilation.BuiltInOperators.GetSignature(result)).
LeftType
, rightType.EnumUnderlyingTypeOrSelf(), TypeCompareKind.ConsiderEverything2))
8245
signature = new BinaryOperatorSignature(signature.Kind | BinaryOperatorKind.EnumAndUnderlying, signature.
LeftType
, rightType, rightType);
8364
string containerName = signature.
LeftType
.ToTestDisplayString();
8375
if (signature.
LeftType
.IsObjectType() && signature.RightType.IsStringType())
8831
Assert.Equal(op, new BinaryOperatorSignature(op.Kind, op.
LeftType
, op.RightType, op.ReturnType, op.Method, constrainedToTypeOpt: null));