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