1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1193this.MethodOpt = methodOpt;
28 references to MethodOpt
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder.ValueChecks.cs (4)
3590(unaryOperator.MethodOpt is not { } unaryMethod || 3960(unaryOperator.MethodOpt is not { } unaryMethod || 4304if (unaryOperator.MethodOpt is { } unaryMethod) 5067if (unary.MethodOpt is { } unaryMethod)
BoundTree\BoundExpression.cs (1)
431get { return this.MethodOpt; }
CodeGen\Optimizer.cs (1)
1660return node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.MethodOpt, node.ConstrainedToTypeOpt, node.ResultKind, node.Type);
Compilation\CSharpSemanticModel.cs (2)
3802GetSymbolsAndResultKind(unaryOperator, unaryOperator.MethodOpt, unaryOperator.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind); 3807Debug.Assert((object)unaryOperator.MethodOpt == null && unaryOperator.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (2)
11252node.MethodOpt is MethodSymbol method && 11276SetUpdatedSymbol(node, node.MethodOpt, method);
Generated\BoundNodes.xml.Generated.cs (4)
1213if (operatorKind != this.OperatorKind || operand != this.Operand || constantValueOpt != this.ConstantValueOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.ConsiderEverything) || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything)) 10935return node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.MethodOpt, constrainedToTypeOpt, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, type); 12510MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.MethodOpt); 15163new TreeDumperNode("methodOpt", node.MethodOpt, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (6)
1145if ((object)node.MethodOpt == null) 1152opFactory = isChecked || (node.MethodOpt is { Name: string name } && SyntaxFacts.IsCheckedOperator(name)) ? 1164if ((object)node.MethodOpt == null) 1187Debug.Assert((object)node.MethodOpt == null); 1195return ((object)node.MethodOpt == null) 1197: _bound.StaticCall(opFactory, loweredArg, _bound.MethodInfo(node.MethodOpt, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo)));
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
741if (_inExpressionLambda && node.MethodOpt is MethodSymbol method && (method.IsAbstract || method.IsVirtual) && method.IsStatic)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
59return MakeUnaryOperator(node, node.OperatorKind, node.Syntax, node.MethodOpt, node.ConstrainedToTypeOpt, loweredOperand, node.Type);
Lowering\MethodToClassRewriter.cs (1)
286VisitMethodSymbol(node.MethodOpt),
Lowering\SpillSequenceSpiller.cs (1)
1508return UpdateExpression(builder, node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.MethodOpt, node.ConstrainedToTypeOpt, node.ResultKind, node.Type));
Operations\CSharpOperationFactory.cs (4)
1435IMethodSymbol? operatorMethod = boundUnaryOperator.MethodOpt.GetPublicSymbol(); 1440bool isChecked = boundUnaryOperator.OperatorKind.IsChecked() || (boundUnaryOperator.MethodOpt is not null && SyntaxFacts.IsCheckedOperator(boundUnaryOperator.MethodOpt.Name)); 1443GetConstrainedToTypeForOperator(boundUnaryOperator.MethodOpt, boundUnaryOperator.ConstrainedToTypeOpt).GetPublicSymbol(),