1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1180
this.
MethodOpt
= methodOpt;
23 references to MethodOpt
Microsoft.CodeAnalysis.CSharp (23)
BoundTree\BoundExpression.cs (1)
382
get { return this.
MethodOpt
; }
CodeGen\Optimizer.cs (1)
1593
return node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.
MethodOpt
, node.ConstrainedToTypeOpt, node.ResultKind, node.Type);
Compilation\CSharpSemanticModel.cs (2)
3791
GetSymbolsAndResultKind(unaryOperator, unaryOperator.
MethodOpt
, unaryOperator.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind);
3796
Debug.Assert((object)unaryOperator.
MethodOpt
== null && unaryOperator.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (2)
10334
node.
MethodOpt
is MethodSymbol method &&
10358
SetUpdatedSymbol(node, node.
MethodOpt
, method);
Generated\BoundNodes.xml.Generated.cs (4)
1200
if (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))
10555
return node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.
MethodOpt
, constrainedToTypeOpt, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, type);
12075
MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.
MethodOpt
);
14625
new TreeDumperNode("methodOpt", node.
MethodOpt
, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (5)
1054
if ((object)node.
MethodOpt
== null)
1061
opname = isChecked || (node.
MethodOpt
is { Name: string name } && SyntaxFacts.IsCheckedOperator(name)) ? "NegateChecked" : "Negate";
1073
Debug.Assert((object)node.
MethodOpt
== null);
1081
return ((object)node.
MethodOpt
== null)
1083
: ExprFactory(opname, loweredArg, _bound.MethodInfo(node.
MethodOpt
));
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
676
if (_inExpressionLambda && node.
MethodOpt
is MethodSymbol method && (method.IsAbstract || method.IsVirtual) && method.IsStatic)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
59
return MakeUnaryOperator(node, node.OperatorKind, node.Syntax, node.
MethodOpt
, node.ConstrainedToTypeOpt, loweredOperand, node.Type);
Lowering\MethodToClassRewriter.cs (1)
281
VisitMethodSymbol(node.
MethodOpt
),
Lowering\SpillSequenceSpiller.cs (1)
1416
return UpdateExpression(builder, node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.
MethodOpt
, node.ConstrainedToTypeOpt, node.ResultKind, node.Type));
Operations\CSharpOperationFactory.cs (4)
1368
IMethodSymbol? operatorMethod = boundUnaryOperator.
MethodOpt
.GetPublicSymbol();
1373
bool isChecked = boundUnaryOperator.OperatorKind.IsChecked() || (boundUnaryOperator.
MethodOpt
is not null && SyntaxFacts.IsCheckedOperator(boundUnaryOperator.
MethodOpt
.Name));
1376
GetConstrainedToTypeForOperator(boundUnaryOperator.
MethodOpt
, boundUnaryOperator.ConstrainedToTypeOpt).GetPublicSymbol(),