24 references to BinaryOperatorMethod
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder.ValueChecks.cs (5)
223var binaryOperatorMethod = binaryOperator.BinaryOperatorMethod; 3917(binaryOperator.BinaryOperatorMethod is not { } binaryMethod || 4263(binaryOperator.BinaryOperatorMethod is not { } binaryMethod || 4677if (binary.BinaryOperatorMethod is { } binaryMethod) 5448if (binary.BinaryOperatorMethod is { } binaryMethod)
Binder\Binder_TupleOperators.cs (1)
112return new TupleBinaryOperatorInfo.Single(binary.Left.Type, binary.Right.Type, binary.OperatorKind, binary.BinaryOperatorMethod, binary.ConstrainedToType,
BoundTree\BoundExpression.cs (1)
406public override Symbol? ExpressionSymbol => this.BinaryOperatorMethod;
BoundTree\NullabilityRewriter.cs (1)
102binary.BinaryOperatorMethod is { } binaryOperatorMethod ? binary.Data?.WithUpdatedMethod(GetUpdatedSymbol(binary, binaryOperatorMethod)) : binary.Data,
CodeGen\Optimizer.cs (3)
1537left = binary.Update(binary.OperatorKind, binary.ConstantValueOpt, binary.BinaryOperatorMethod, binary.ConstrainedToType, binary.ResultKind, left, right, type); 1572return node.Update(node.OperatorKind, node.ConstantValueOpt, node.BinaryOperatorMethod, node.ConstrainedToType, node.ResultKind, left, right, node.Type); 2114left = binary.Update(binary.OperatorKind, binary.ConstantValueOpt, binary.BinaryOperatorMethod, binary.ConstrainedToType, binary.ResultKind, left, right, type);
Compilation\CSharpSemanticModel.cs (2)
3857GetSymbolsAndResultKind(binaryOperator, binaryOperator.BinaryOperatorMethod, binaryOperator.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind); 3862Debug.Assert((object)binaryOperator.BinaryOperatorMethod == null && binaryOperator.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (2)
5342var inferredResult = ReinferAndVisitBinaryOperator(binary, binary.OperatorKind, binary.BinaryOperatorMethod, binary.Type, binary.Left, leftOperand, leftConversion, leftType, binary.Right, rightOperand, rightConversion, rightType); 12296SetResultType(node, InferResultNullability(node.OperatorKind, node.BinaryOperatorMethod, node.Type, leftType, rightType));
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (1)
166return BoundBinaryOperator.UncommonData.CreateIfNeeded(node.ConstantValueOpt, VisitMethodSymbol(node.BinaryOperatorMethod), VisitType(node.ConstrainedToType), node.OriginalUserDefinedOperatorsOpt);
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
196return VisitBinaryOperator(binOp.OperatorKind, binOp.BinaryOperatorMethod, binOp.Type, binOp.Left, binOp.Right);
Lowering\DiagnosticsPass_Warnings.cs (1)
252if (node.BinaryOperatorMethod is MethodSymbol method)
Lowering\ExtensionMethodReferenceRewriter.cs (1)
252var binaryOperatorMethod = node.BinaryOperatorMethod;
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
159loweredLeft = MakeBinaryOperator(original, original.Syntax, original.OperatorKind, loweredLeft, loweredRight, original.Type, original.LeftTruthOperatorMethod ?? original.BinaryOperatorMethod, original.ConstrainedToType, 541oldNode.Update(operatorKind, oldNode.ConstantValueOpt, oldNode.BinaryOperatorMethod, oldNode.ConstrainedToType, oldNode.ResultKind, loweredLeft, loweredRight, type) : 2018return oldNode.Update(operatorKind, oldNode.ConstantValueOpt, oldNode.BinaryOperatorMethod, oldNode.ConstrainedToType, oldNode.ResultKind, loweredLeft, loweredRight, type);
Lowering\SpillSequenceSpiller.cs (1)
1026return UpdateExpression(builder, node.Update(node.OperatorKind, node.ConstantValueOpt, node.BinaryOperatorMethod, node.ConstrainedToType, node.ResultKind, left, right, node.Type));
Operations\CSharpOperationFactory.cs (1)
1510MethodSymbol? binaryOperatorMethod = boundBinaryOperator.BinaryOperatorMethod;