2 writes to Method
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
38this.Method = null; 49this.Method = method;
45 references to Method
Microsoft.CodeAnalysis.CSharp (45)
Binder\Binder.ValueChecks.cs (4)
3610(compoundAssignmentOperator.Operator.Method is not { } compoundMethod || 3980(compoundAssignmentOperator.Operator.Method is not { } compoundMethod || 4389if (compound.Operator.Method is { } compoundMethod) 5176if (compound.Operator.Method is { } compoundMethod)
Binder\Binder_Operators.cs (16)
179CheckConstraintLanguageVersionAndRuntimeSupportForOperator(node, bestSignature.Method, 189bestSignature.Method, 626CheckConstraintLanguageVersionAndRuntimeSupportForOperator(node, signature.Method, 690signature.Method, 729bool isNullableEquality = (object)signature.Method == null && 1010_ = CheckConstraintLanguageVersionAndRuntimeSupportForOperator(node, signature.Method, isUnsignedRightShift: false, signature.ConstrainedToTypeOpt, diagnostics) && 1019signature.Method, 1030Debug.Assert(!(signature.Method?.ContainingType?.IsInterface ?? false)); 1038signature.Method, 1150NamedTypeSymbol t = (NamedTypeSymbol)signature.Method.ContainingType; 1160(t.IsInterface && (signature.Method.IsAbstract || signature.Method.IsVirtual) && 1161SourceUserDefinedOperatorSymbol.IsSelfConstrainedTypeParameter((definition = signature.Method.OriginalDefinition).ReturnType.StrippedType(), definition.ContainingType)); 1168Error(diagnostics, ErrorCode.ERR_BadBoolOp, syntax, signature.Method); 1193Error(diagnostics, ErrorCode.ERR_MustHaveOpTF, syntax, signature.Method, t); 1367if (possiblyBest is { HasValue: true, Signature: { Method: { } bestMethod } })
Binder\Semantics\Operators\BinaryOperatorAnalysisResult.cs (1)
40MethodSymbol IMemberResolutionResultWithPriority<MethodSymbol>.MemberWithPriority => Signature.Method;
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (5)
944if (SourceMemberContainerTypeSymbol.DoOperatorsPair(signature1.Method, operators2[i].Method)) 1323if ((object)op1.Method != null) 1325var p = op1.Method.OriginalDefinition.GetParameters(); 1340if ((object)op2.Method != null) 1342var p = op2.Method.OriginalDefinition.GetParameters();
Binder\Semantics\Operators\BinaryOperatorSignature.cs (13)
66this.Method == other.Method; 89Hash.Combine(Method, (int)Kind)))); 96if ((object)Method != null) 98Debug.Assert(Method.ParameterCount == 2); 100if (!Method.ParameterRefKinds.IsDefaultOrEmpty) 102Debug.Assert(Method.ParameterRefKinds.Length == 2); 104return Method.ParameterRefKinds[0]; 116if ((object)Method != null) 118Debug.Assert(Method.ParameterCount == 2); 120if (!Method.ParameterRefKinds.IsDefaultOrEmpty) 122Debug.Assert(Method.ParameterRefKinds.Length == 2); 124return Method.ParameterRefKinds[1];
BoundTree\BoundExpression.cs (1)
447get { return this.Operator.Method; }
Compilation\CSharpSemanticModel.cs (2)
3923GetSymbolsAndResultKind(compoundAssignment, compoundAssignment.Operator.Method, compoundAssignment.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind); 3928Debug.Assert((object)compoundAssignment.Operator.Method == null && compoundAssignment.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (1)
10596node.Operator.Method,
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
142BoundExpression operand = MakeBinaryOperator(syntax, node.Operator.Kind, opLHS, loweredRight, node.Operator.ReturnType, node.Operator.Method, node.Operator.ConstrainedToTypeOpt, isCompoundAssignment: true);
Operations\CSharpOperationFactory.cs (1)
1363var method = boundCompoundAssignmentOperator.Operator.Method;