2 writes to LeftType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
35this.LeftType = leftType; 46this.LeftType = leftType;
30 references to LeftType
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder_Operators.cs (13)
245bestSignature.LeftType, 304var leftConversion = CreateConversion(node.Left, leftPlaceholder, best.LeftConversion, isCast: false, conversionGroupOpt: null, best.Signature.LeftType, diagnostics); 1030Debug.Assert((object)signature.LeftType != null); 1039resultLeft = CreateConversion(left, best.LeftConversion, signature.LeftType, conversionDiagnostics); 1416bool bothBool = signature.LeftType.SpecialType == SpecialType.System_Boolean && 1427var resultLeft = CreateConversion(left, best.LeftConversion, signature.LeftType, diagnostics); 1649bool typesAreSame = TypeSymbol.Equals(signature.LeftType, signature.RightType, TypeCompareKind.ConsiderEverything2) && TypeSymbol.Equals(signature.LeftType, signature.ReturnType, TypeCompareKind.ConsiderEverything2); 1673if (!HasApplicableBooleanOperator(t, WellKnownMemberNames.TrueOperatorName, signature.LeftType, ref useSiteInfo, out trueOperator) || 1674!HasApplicableBooleanOperator(t, WellKnownMemberNames.FalseOperatorName, signature.LeftType, ref useSiteInfo, out falseOperator)) 1770if (!TypeSymbol.Equals(signature.LeftType, signature.RightType, TypeCompareKind.AllIgnoreOptions) || 1771!TypeSymbol.Equals(signature.LeftType, signature.ReturnType, TypeCompareKind.AllIgnoreOptions)) 1793var leftPlaceholder = new BoundValuePlaceholder(syntax, signature.LeftType).MakeCompilerGenerated();
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
314Conversion leftConversion = Conversions.FastClassifyConversion(leftType, signature.LeftType);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (8)
738Debug.Assert(op.LeftType.IsObjectType()); 741var convLeft = getOperandConversionForAllowByRefLikeNullCheck(isChecked, left, op.LeftType, ref useSiteInfo); 1224BetterResult leftBetter = BetterConversionFromExpression(left, op1.LeftType, op2.LeftType, ref useSiteInfo); 1264if (Conversions.HasIdentityConversion(op1.LeftType, op2.LeftType) && 1380op1Left = op1.LeftType; 1397op2Left = 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,
BoundTree\NullabilityRewriter.cs (1)
152op = new BinaryOperatorSignature(op.Kind, op.LeftType, op.RightType, op.ReturnType, GetUpdatedSymbol(node, op.Method), op.ConstrainedToTypeOpt);
Compilation\CSharpCompilation.cs (1)
4323csharpLeftType.SpecialType == signature.LeftType.SpecialType &&
Compilation\CSharpSemanticModel.cs (1)
3943compoundAssignment.Operator.LeftType,
Lowering\DiagnosticsPass_Warnings.cs (1)
292explicitCastInCode: false, conversionGroupOpt: null, constantValueOpt: null, type: node.Operator.LeftType);