2 writes to LeftType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
35this.LeftType = leftType; 46this.LeftType = leftType;
38 references to LeftType
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder_Operators.cs (10)
186bestSignature.LeftType, 244var leftConversion = CreateConversion(node, leftPlaceholder, best.LeftConversion, isCast: false, conversionGroupOpt: null, best.Signature.LeftType, diagnostics); 637Debug.Assert((object)signature.LeftType != null); 640resultLeft = CreateConversion(left, best.LeftConversion, signature.LeftType, diagnostics); 956bool bothBool = signature.LeftType.SpecialType == SpecialType.System_Boolean && 967var resultLeft = CreateConversion(left, best.LeftConversion, signature.LeftType, diagnostics); 1126bool typesAreSame = TypeSymbol.Equals(signature.LeftType, signature.RightType, TypeCompareKind.ConsiderEverything2) && TypeSymbol.Equals(signature.LeftType, signature.ReturnType, TypeCompareKind.ConsiderEverything2); 1150if (!HasApplicableBooleanOperator(t, WellKnownMemberNames.TrueOperatorName, signature.LeftType, ref useSiteInfo, out trueOperator) || 1151!HasApplicableBooleanOperator(t, WellKnownMemberNames.FalseOperatorName, signature.LeftType, ref useSiteInfo, out falseOperator))
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
314Conversion leftConversion = Conversions.FastClassifyConversion(leftType, signature.LeftType);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (9)
777var convLeft = Conversions.ClassifyConversionFromExpression(left, op.LeftType, isChecked: isChecked, ref useSiteInfo); 809equalsIgnoringNullableAndDynamic(op.Signature.LeftType, existingSignature.LeftType) && 1163BetterResult leftBetter = BetterConversionFromExpression(left, op1.LeftType, op2.LeftType, ref useSiteInfo); 1203if (Conversions.HasIdentityConversion(op1.LeftType, op2.LeftType) && 1306op1Left = op1.LeftType; 1323op2Left = op2.LeftType;
Binder\Semantics\Operators\BinaryOperatorSignature.cs (4)
56return $"kind: {this.Kind} leftType: {this.LeftType} leftRefKind: {this.LeftRefKind} rightType: {this.RightType} rightRefKind: {this.RightRefKind} return: {this.ReturnType}"; 63TypeSymbol.Equals(this.LeftType, other.LeftType, TypeCompareKind.ConsiderEverything2) && 87Hash.Combine(LeftType,
Compilation\CSharpCompilation.cs (1)
3961csharpLeftType.SpecialType == signature.LeftType.SpecialType &&
Compilation\CSharpSemanticModel.cs (1)
3919compoundAssignment.Operator.LeftType,
FlowAnalysis\NullableWalker.cs (2)
9642if ((object)node.Operator.LeftType != null) 9649TypeWithAnnotations.Create(node.Operator.LeftType),
Lowering\DiagnosticsPass_Warnings.cs (1)
292explicitCastInCode: false, conversionGroupOpt: null, constantValueOpt: null, type: node.Operator.LeftType);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\NumericIntPtrTests.cs (2)
1554verifyOperators(operators, (op, signed) => isNativeInt(op.LeftType, signed), expected, expected); 1555verifyOperators(operators, (op, signed) => isNullableNativeInt(op.LeftType, signed), expected, expected);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\NativeIntegerTests.cs (2)
4803verifyOperators(operators, (op, signed) => isNativeInt(op.LeftType, signed), expected, expected); 4804verifyOperators(operators, (op, signed) => isNullableNativeInt(op.LeftType, signed), expected, expected);
Semantics\OperatorTests.cs (5)
8241TypeSymbol.Equals((signature = compilation.builtInOperators.GetSignature(result)).LeftType, rightType.EnumUnderlyingTypeOrSelf(), TypeCompareKind.ConsiderEverything2)) 8243signature = new BinaryOperatorSignature(signature.Kind | BinaryOperatorKind.EnumAndUnderlying, signature.LeftType, rightType, rightType); 8362string containerName = signature.LeftType.ToTestDisplayString(); 8373if (signature.LeftType.IsObjectType() && signature.RightType.IsStringType()) 8829Assert.Equal(op, new BinaryOperatorSignature(op.Kind, op.LeftType, op.RightType, op.ReturnType, op.Method, constrainedToTypeOpt: null));