1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1217this.MethodOpt = methodOpt;
31 references to MethodOpt
Microsoft.CodeAnalysis.CSharp (31)
Binder\Binder.ValueChecks.cs (7)
206Debug.Assert(unaryOperator.MethodOpt is not null); 209MethodInfo = MethodInfo.Create(unaryOperator.MethodOpt), 212Parameters = unaryOperator.MethodOpt.Parameters, 3939(unaryOperator.MethodOpt is not { } unaryMethod || 4277(unaryOperator.MethodOpt is not { } unaryMethod || 4584if (unaryOperator.MethodOpt is { } unaryMethod) 5314if (unary.MethodOpt is { } unaryMethod)
BoundTree\BoundExpression.cs (1)
449get { return this.MethodOpt; }
CodeGen\Optimizer.cs (1)
1671return node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.MethodOpt, node.ConstrainedToTypeOpt, node.ResultKind, node.Type);
Compilation\CSharpSemanticModel.cs (2)
3820GetSymbolsAndResultKind(unaryOperator, unaryOperator.MethodOpt, unaryOperator.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind); 3825Debug.Assert((object)unaryOperator.MethodOpt == null && unaryOperator.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (2)
12290node.MethodOpt is MethodSymbol method && 12315SetUpdatedSymbol(node, node.MethodOpt, method);
Generated\BoundNodes.xml.Generated.cs (4)
1237if (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)) 11106MethodSymbol? methodOpt = this.VisitMethodSymbol(node.MethodOpt); 12845MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.MethodOpt); 15481new TreeDumperNode("methodOpt", node.MethodOpt, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (6)
1195if ((object)node.MethodOpt == null) 1202opFactory = isChecked || (node.MethodOpt is { Name: string name } && SyntaxFacts.IsCheckedOperator(name)) ? 1214if ((object)node.MethodOpt == null) 1237Debug.Assert((object)node.MethodOpt == null); 1245return ((object)node.MethodOpt == null) 1247: _bound.StaticCall(opFactory, loweredArg, _bound.MethodInfo(node.MethodOpt, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo)));
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
801if (_inExpressionLambda && node.MethodOpt is MethodSymbol method && (method.IsAbstract || method.IsVirtual) && method.IsStatic)
Lowering\ExtensionMethodReferenceRewriter.cs (1)
282MethodSymbol? methodOpt = VisitMethodSymbolWithExtensionRewrite(rewriter, node.MethodOpt);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
60return MakeUnaryOperator(node, node.OperatorKind, node.Syntax, node.MethodOpt, node.ConstrainedToTypeOpt, loweredOperand, node.Type);
Lowering\SpillSequenceSpiller.cs (1)
1521return UpdateExpression(builder, node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.MethodOpt, node.ConstrainedToTypeOpt, node.ResultKind, node.Type));
Operations\CSharpOperationFactory.cs (4)
1485IMethodSymbol? operatorMethod = boundUnaryOperator.MethodOpt.GetPublicSymbol(); 1490bool isChecked = boundUnaryOperator.OperatorKind.IsChecked() || (boundUnaryOperator.MethodOpt is not null && SyntaxFacts.IsCheckedOperator(boundUnaryOperator.MethodOpt.Name)); 1493GetConstrainedToTypeForOperator(boundUnaryOperator.MethodOpt, boundUnaryOperator.ConstrainedToTypeOpt).GetPublicSymbol(),