1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1234this.MethodOpt = methodOpt;
27 references to MethodOpt
Microsoft.CodeAnalysis.CSharp (27)
BoundTree\BoundExpression.cs (1)
439get { return this.MethodOpt; }
Compilation\CSharpSemanticModel.cs (2)
3834GetSymbolsAndResultKind(increment, increment.MethodOpt, increment.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind); 3839Debug.Assert((object)increment.MethodOpt == null && increment.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (4)
10747if (node.MethodOpt is { } method ? 10751CheckCallReceiver(node.Operand, operandType, node.MethodOpt ?? node.OriginalUserDefinedOperatorsOpt[0]); 10757MethodSymbol? incrementOperator = (node.OperatorKind.IsUserDefined() && node.MethodOpt?.ParameterCount == 1) ? node.MethodOpt : null;
Generated\BoundNodes.xml.Generated.cs (4)
1261if (operatorKind != this.OperatorKind || operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.ConsiderEverything) || operandPlaceholder != this.OperandPlaceholder || operandConversion != this.OperandConversion || resultPlaceholder != this.ResultPlaceholder || resultConversion != this.ResultConversion || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 10986MethodSymbol? methodOpt = this.VisitMethodSymbol(node.MethodOpt); 12710MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.MethodOpt); 15355new TreeDumperNode("methodOpt", node.MethodOpt, null),
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (12)
394if (node.MethodOpt?.IsStatic == false) 406Debug.Assert(node.MethodOpt is { }); 413return BoundCall.Synthesized(syntax, VisitExpression(node.Operand), initialBindingReceiverIsSubjectToCloning: ThreeState.False, node.MethodOpt); 434sideEffects: [tempAssignment, BoundCall.Synthesized(syntax, boundTemp, initialBindingReceiverIsSubjectToCloning: ThreeState.False, node.MethodOpt)], 439return MakeInstanceCompoundAssignmentOperatorResult(node.Syntax, node.Operand, rightOpt: null, node.MethodOpt, node.OperatorKind.IsChecked()); 765Debug.Assert(node.MethodOpt is { }); 766Debug.Assert(node.MethodOpt.ParameterCount == 1); 773TypeSymbol type = node.MethodOpt.GetParameterType(0); 777Debug.Assert(TypeSymbol.Equals(node.MethodOpt.GetParameterType(0), node.MethodOpt.ReturnType, TypeCompareKind.ConsiderEverything2)); 788node.MethodOpt, 818node.MethodOpt,
Operations\CSharpOperationFactory.cs (4)
1390bool isChecked = boundIncrementOperator.OperatorKind.IsChecked() || (boundIncrementOperator.MethodOpt is not null && SyntaxFacts.IsCheckedOperator(boundIncrementOperator.MethodOpt.Name)); 1392IMethodSymbol? operatorMethod = boundIncrementOperator.MethodOpt.GetPublicSymbol(); 1397GetConstrainedToTypeForOperator(boundIncrementOperator.MethodOpt, boundIncrementOperator.ConstrainedToTypeOpt).GetPublicSymbol(),