25 references to Method
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.ValueChecks.cs (4)
3597
(binaryOperator.
Method
is not { } binaryMethod ||
3967
(binaryOperator.
Method
is not { } binaryMethod ||
4409
if (binary.
Method
is { } binaryMethod)
5199
if (binary.
Method
is { } binaryMethod)
Binder\Binder_TupleOperators.cs (1)
111
return new TupleBinaryOperatorInfo.Single(binary.Left.Type, binary.Right.Type, binary.OperatorKind, binary.
Method
, binary.ConstrainedToType,
BoundTree\BoundExpression.cs (1)
406
public override Symbol? ExpressionSymbol => this.
Method
;
BoundTree\NullabilityRewriter.cs (1)
102
binary.Data?.WithUpdatedMethod(GetUpdatedSymbol(binary, binary.
Method
)),
CodeGen\Optimizer.cs (3)
1527
left = binary.Update(binary.OperatorKind, binary.ConstantValueOpt, binary.
Method
, binary.ConstrainedToType, binary.ResultKind, left, right, type);
1561
return node.Update(node.OperatorKind, node.ConstantValueOpt, node.
Method
, node.ConstrainedToType, node.ResultKind, left, right, node.Type);
2102
left = binary.Update(binary.OperatorKind, binary.ConstantValueOpt, binary.
Method
, binary.ConstrainedToType, binary.ResultKind, left, right, type);
Compilation\CSharpSemanticModel.cs (2)
3850
GetSymbolsAndResultKind(binaryOperator, binaryOperator.
Method
, binaryOperator.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind);
3855
Debug.Assert((object)binaryOperator.
Method
== null && binaryOperator.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (2)
5067
var inferredResult = ReinferAndVisitBinaryOperator(binary, binary.OperatorKind, binary.
Method
, binary.Type, binary.Left, leftOperand, leftConversion, leftType, binary.Right, rightOperand, rightConversion, rightType);
11415
BoundBinaryOperator binary => InferResultNullability(binary.OperatorKind, binary.
Method
, binary.Type, leftType, rightType),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
195
return VisitBinaryOperator(binOp.OperatorKind, binOp.
Method
, binOp.Type, binOp.Left, binOp.Right);
Lowering\DiagnosticsPass_Warnings.cs (1)
252
if (node.
Method
is MethodSymbol method)
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
152
loweredLeft = MakeBinaryOperator(original, original.Syntax, original.OperatorKind, loweredLeft, loweredRight, original.Type, original.
Method
, original.ConstrainedToType,
533
oldNode.Update(operatorKind, oldNode.ConstantValueOpt, oldNode.
Method
, oldNode.ConstrainedToType, oldNode.ResultKind, loweredLeft, loweredRight, type) :
1999
return oldNode.Update(operatorKind, oldNode.ConstantValueOpt, oldNode.
Method
, oldNode.ConstrainedToType, oldNode.ResultKind, loweredLeft, loweredRight, type);
Lowering\MethodToClassRewriter.cs (1)
273
VisitMethodSymbol(node.
Method
),
Lowering\SpillSequenceSpiller.cs (1)
1013
return UpdateExpression(builder, node.Update(node.OperatorKind, node.ConstantValueOpt, node.
Method
, node.ConstrainedToType, node.ResultKind, left, right, node.Type));
Operations\CSharpOperationFactory.cs (4)
1510
IMethodSymbol? operatorMethod = boundBinaryOperator.
Method
.GetPublicSymbol();
1526
bool isChecked = boundBinaryOperator.OperatorKind.IsChecked() || (boundBinaryOperator.
Method
is not null && SyntaxFacts.IsCheckedOperator(boundBinaryOperator.
Method
.Name));
1531
GetConstrainedToTypeForOperator(boundBinaryOperator.
Method
, boundBinaryOperator.ConstrainedToType).GetPublicSymbol(),