2 writes to Method
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
38
this.
Method
= null;
49
this.
Method
= method;
45 references to Method
Microsoft.CodeAnalysis.CSharp (45)
Binder\Binder.ValueChecks.cs (4)
3633
(compoundAssignmentOperator.Operator.
Method
is not { } compoundMethod ||
4003
(compoundAssignmentOperator.Operator.
Method
is not { } compoundMethod ||
4413
if (compound.Operator.
Method
is { } compoundMethod)
5194
if (compound.Operator.
Method
is { } compoundMethod)
Binder\Binder_Operators.cs (16)
179
CheckConstraintLanguageVersionAndRuntimeSupportForOperator(node, bestSignature.
Method
,
189
bestSignature.
Method
,
626
CheckConstraintLanguageVersionAndRuntimeSupportForOperator(node, signature.
Method
,
690
signature.
Method
,
729
bool isNullableEquality = (object)signature.
Method
== null &&
1010
_ = CheckConstraintLanguageVersionAndRuntimeSupportForOperator(node, signature.
Method
, isUnsignedRightShift: false, signature.ConstrainedToTypeOpt, diagnostics) &&
1019
signature.
Method
,
1030
Debug.Assert(!(signature.
Method
?.ContainingType?.IsInterface ?? false));
1038
signature.
Method
,
1150
NamedTypeSymbol t = (NamedTypeSymbol)signature.
Method
.ContainingType;
1160
(t.IsInterface && (signature.
Method
.IsAbstract || signature.
Method
.IsVirtual) &&
1161
SourceUserDefinedOperatorSymbol.IsSelfConstrainedTypeParameter((definition = signature.
Method
.OriginalDefinition).ReturnType.StrippedType(), definition.ContainingType));
1168
Error(diagnostics, ErrorCode.ERR_BadBoolOp, syntax, signature.
Method
);
1193
Error(diagnostics, ErrorCode.ERR_MustHaveOpTF, syntax, signature.
Method
, t);
1362
if (possiblyBest is { HasValue: true, Signature: {
Method
: { } bestMethod } })
Binder\Semantics\Operators\BinaryOperatorAnalysisResult.cs (1)
39
MethodSymbol IMemberResolutionResultWithPriority<MethodSymbol>.MemberWithPriority => Signature.
Method
;
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (5)
944
if (SourceMemberContainerTypeSymbol.DoOperatorsPair(signature1.
Method
, operators2[i].Method))
1318
if ((object)op1.
Method
!= null)
1320
var p = op1.
Method
.OriginalDefinition.GetParameters();
1335
if ((object)op2.
Method
!= null)
1337
var p = op2.
Method
.OriginalDefinition.GetParameters();
Binder\Semantics\Operators\BinaryOperatorSignature.cs (13)
66
this.
Method
== other.
Method
;
89
Hash.Combine(
Method
, (int)Kind))));
96
if ((object)
Method
!= null)
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
Debug.Assert(
Method
.ParameterCount == 2);
120
if (!
Method
.ParameterRefKinds.IsDefaultOrEmpty)
122
Debug.Assert(
Method
.ParameterRefKinds.Length == 2);
124
return
Method
.ParameterRefKinds[1];
BoundTree\BoundExpression.cs (1)
447
get { return this.Operator.
Method
; }
Compilation\CSharpSemanticModel.cs (2)
3923
GetSymbolsAndResultKind(compoundAssignment, compoundAssignment.Operator.
Method
, compoundAssignment.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind);
3928
Debug.Assert((object)compoundAssignment.Operator.
Method
== null && compoundAssignment.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (1)
10538
node.Operator.
Method
,
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
142
BoundExpression 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
;