1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1220this.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, 3944(unaryOperator.MethodOpt is not { } unaryMethod || 4282(unaryOperator.MethodOpt is not { } unaryMethod || 4589if (unaryOperator.MethodOpt is { } unaryMethod) 5319if (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)
3833GetSymbolsAndResultKind(unaryOperator, unaryOperator.MethodOpt, unaryOperator.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind); 3838Debug.Assert((object)unaryOperator.MethodOpt == null && unaryOperator.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (2)
12706node.MethodOpt is MethodSymbol method && 12731SetUpdatedSymbol(node, node.MethodOpt, method);
Generated\BoundNodes.xml.Generated.cs (4)
1240if (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)) 11259MethodSymbol? methodOpt = this.VisitMethodSymbol(node.MethodOpt); 13019MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.MethodOpt); 15683new TreeDumperNode("methodOpt", node.MethodOpt, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (6)
1197if ((object)node.MethodOpt == null) 1204opFactory = isChecked || (node.MethodOpt is { Name: string name } && SyntaxFacts.IsCheckedOperator(name)) ? 1216if ((object)node.MethodOpt == null) 1239Debug.Assert((object)node.MethodOpt == null); 1247return ((object)node.MethodOpt == null) 1249: _bound.StaticCall(opFactory, loweredArg, _bound.MethodInfo(node.MethodOpt, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo)));
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
803if (_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)
1510IMethodSymbol? operatorMethod = boundUnaryOperator.MethodOpt.GetPublicSymbol(); 1515bool isChecked = boundUnaryOperator.OperatorKind.IsChecked() || (boundUnaryOperator.MethodOpt is not null && SyntaxFacts.IsCheckedOperator(boundUnaryOperator.MethodOpt.Name)); 1518GetConstrainedToTypeForOperator(boundUnaryOperator.MethodOpt, boundUnaryOperator.ConstrainedToTypeOpt).GetPublicSymbol(),