2 writes to Method
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
38
this.
Method
= null;
49
this.
Method
= method;
54 references to Method
Microsoft.CodeAnalysis.CSharp (54)
Binder\Binder.ValueChecks.cs (4)
3716
(compoundAssignmentOperator.Operator.
Method
is not { } compoundMethod ||
4086
(compoundAssignmentOperator.Operator.
Method
is not { } compoundMethod ||
4497
if (compound.Operator.
Method
is { } compoundMethod)
5291
if (compound.Operator.
Method
is { } compoundMethod)
Binder\Binder_Operators.cs (16)
191
CheckConstraintLanguageVersionAndRuntimeSupportForOperator(node, bestSignature.
Method
,
201
bestSignature.
Method
,
771
CheckConstraintLanguageVersionAndRuntimeSupportForOperator(node, signature.
Method
,
835
signature.
Method
,
874
bool isNullableEquality = (object)signature.
Method
== null &&
1155
_ = CheckConstraintLanguageVersionAndRuntimeSupportForOperator(node, signature.
Method
, isUnsignedRightShift: false, signature.ConstrainedToTypeOpt, diagnostics) &&
1179
signature.
Method
,
1194
Debug.Assert(!(signature.
Method
?.ContainingType?.IsInterface ?? false));
1202
signature.
Method
,
1341
NamedTypeSymbol t = (NamedTypeSymbol)signature.
Method
.ContainingType;
1351
(t.IsInterface && (signature.
Method
.IsAbstract || signature.
Method
.IsVirtual) &&
1352
SourceUserDefinedOperatorSymbol.IsSelfConstrainedTypeParameter((definition = signature.
Method
.OriginalDefinition).ReturnType.StrippedType(), definition.ContainingType));
1359
Error(diagnostics, ErrorCode.ERR_BadBoolOp, syntax, signature.
Method
);
1384
Error(diagnostics, ErrorCode.ERR_MustHaveOpTF, syntax, signature.
Method
, t);
1558
if (possiblyBest is { HasValue: true, Signature: {
Method
: { } bestMethod } })
Binder\RefSafetyAnalysis.cs (1)
552
if (!node.HasErrors && node.Operator.
Method
is { } compoundMethod)
Binder\Semantics\Operators\BinaryOperatorAnalysisResult.cs (1)
40
MethodSymbol IMemberResolutionResultWithPriority<MethodSymbol>.MemberWithPriority => Signature.
Method
;
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (5)
944
if (SourceMemberContainerTypeSymbol.DoOperatorsPair(signature1.
Method
, operators2[i].Method))
1323
if ((object)op1.
Method
!= null)
1325
var p = op1.
Method
.OriginalDefinition.GetParameters();
1340
if ((object)op2.
Method
!= null)
1342
var p = op2.
Method
.OriginalDefinition.GetParameters();
Binder\Semantics\Operators\BinaryOperatorSignature.cs (15)
66
this.
Method
== other.
Method
;
89
Hash.Combine(
Method
, (int)Kind))));
96
if ((object)
Method
!= null &&
Method
.IsStatic)
98
Debug.Assert(
Method
.ParameterCount == 2);
100
if (!
Method
.ParameterRefKinds.IsDefaultOrEmpty)
102
Debug.Assert(
Method
.ParameterRefKinds.Length == 2);
104
return
Method
.ParameterRefKinds[0];
116
if ((object)
Method
!= null)
118
int rightIndex =
Method
.IsStatic ? 1 : 0;
120
Debug.Assert(
Method
.ParameterCount == rightIndex + 1);
122
if (!
Method
.ParameterRefKinds.IsDefaultOrEmpty)
124
Debug.Assert(
Method
.ParameterRefKinds.Length == rightIndex + 1);
126
return
Method
.ParameterRefKinds[rightIndex];
BoundTree\BoundExpression.cs (1)
447
get { return this.Operator.
Method
; }
Compilation\CSharpSemanticModel.cs (2)
3932
GetSymbolsAndResultKind(compoundAssignment, compoundAssignment.Operator.
Method
, compoundAssignment.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind);
3937
Debug.Assert((object)compoundAssignment.Operator.
Method
== null && compoundAssignment.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (2)
10911
if (node.Operator.
Method
is { } method)
10942
node.Operator.
Method
,
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (6)
26
if (node.Operator.
Method
?.IsStatic == false)
38
Debug.Assert(node.Operator.
Method
is { });
44
return BoundCall.Synthesized(syntax, VisitExpression(node.Left), initialBindingReceiverIsSubjectToCloning: ThreeState.False, node.Operator.
Method
, VisitExpression(node.Right));
60
sideEffects: [tempAssignment, BoundCall.Synthesized(syntax, targetOfCompoundOperation, initialBindingReceiverIsSubjectToCloning: ThreeState.False, node.Operator.
Method
, VisitExpression(node.Right))],
65
return MakeInstanceCompoundAssignmentOperatorResult(node.Syntax, node.Left, node.Right, node.Operator.
Method
, node.Operator.Kind.IsChecked());
199
operand = MakeBinaryOperator(syntax, node.Operator.Kind, opLHS, loweredRight, node.Operator.ReturnType, node.Operator.
Method
, node.Operator.ConstrainedToTypeOpt, isCompoundAssignment: true);
Operations\CSharpOperationFactory.cs (1)
1363
var method = boundCompoundAssignmentOperator.Operator.
Method
;