1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1215this.MethodOpt = methodOpt;
30 references to MethodOpt
Microsoft.CodeAnalysis.CSharp (30)
BoundTree\BoundExpression.cs (1)
446get { return this.MethodOpt; }
Compilation\CSharpSemanticModel.cs (2)
3837GetSymbolsAndResultKind(increment, increment.MethodOpt, increment.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind); 3842Debug.Assert((object)increment.MethodOpt == null && increment.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (6)
10940if (node.MethodOpt is { } method ? 10944if (node.MethodOpt is { } instanceMethod) 10984SetUpdatedSymbol(node, node.MethodOpt, instanceMethod); 11011MethodSymbol? incrementOperator = (node.OperatorKind.IsUserDefined() && node.MethodOpt?.ParameterCount == 1) ? node.MethodOpt : null; 11017SetUpdatedSymbol(node, node.MethodOpt!, incrementOperator);
Generated\BoundNodes.xml.Generated.cs (4)
1242if (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)) 10979MethodSymbol? methodOpt = this.VisitMethodSymbol(node.MethodOpt); 12705MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.MethodOpt); 15327new TreeDumperNode("methodOpt", node.MethodOpt, null),
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (13)
395if (node.MethodOpt?.IsStatic == false) 407Debug.Assert(node.MethodOpt is { }); 408Debug.Assert(node.OperandConversion is null || (node.Operand.Type!.IsReferenceType && node.MethodOpt.GetIsNewExtensionMember())); 418node.MethodOpt); 445node.MethodOpt) 453return MakeInstanceCompoundAssignmentOperatorResult(node.Syntax, node.Operand, rightOpt: null, node.MethodOpt, node.OperatorKind.IsChecked()); 779Debug.Assert(node.MethodOpt is { }); 780Debug.Assert(node.MethodOpt.ParameterCount == 1); 787TypeSymbol type = node.MethodOpt.GetParameterType(0); 791Debug.Assert(TypeSymbol.Equals(node.MethodOpt.GetParameterType(0), node.MethodOpt.ReturnType, TypeCompareKind.ConsiderEverything2)); 802node.MethodOpt, 832node.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(),