1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1193
this.
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 ||
4304
if (unaryOperator.
MethodOpt
is { } unaryMethod)
5067
if (unary.
MethodOpt
is { } unaryMethod)
BoundTree\BoundExpression.cs (1)
431
get { return this.
MethodOpt
; }
CodeGen\Optimizer.cs (1)
1660
return node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.
MethodOpt
, node.ConstrainedToTypeOpt, node.ResultKind, node.Type);
Compilation\CSharpSemanticModel.cs (2)
3802
GetSymbolsAndResultKind(unaryOperator, unaryOperator.
MethodOpt
, unaryOperator.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind);
3807
Debug.Assert((object)unaryOperator.
MethodOpt
== null && unaryOperator.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (2)
11252
node.
MethodOpt
is MethodSymbol method &&
11276
SetUpdatedSymbol(node, node.
MethodOpt
, method);
Generated\BoundNodes.xml.Generated.cs (4)
1213
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))
10935
return node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.
MethodOpt
, constrainedToTypeOpt, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, type);
12510
MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.
MethodOpt
);
15163
new TreeDumperNode("methodOpt", node.
MethodOpt
, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (6)
1145
if ((object)node.
MethodOpt
== null)
1152
opFactory = isChecked || (node.
MethodOpt
is { Name: string name } && SyntaxFacts.IsCheckedOperator(name)) ?
1164
if ((object)node.
MethodOpt
== null)
1187
Debug.Assert((object)node.
MethodOpt
== null);
1195
return ((object)node.
MethodOpt
== null)
1197
: _bound.StaticCall(opFactory, loweredArg, _bound.MethodInfo(node.
MethodOpt
, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo)));
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
741
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)
286
VisitMethodSymbol(node.
MethodOpt
),
Lowering\SpillSequenceSpiller.cs (1)
1508
return UpdateExpression(builder, node.Update(node.OperatorKind, operand, node.ConstantValueOpt, node.
MethodOpt
, node.ConstrainedToTypeOpt, node.ResultKind, node.Type));
Operations\CSharpOperationFactory.cs (4)
1435
IMethodSymbol? operatorMethod = boundUnaryOperator.
MethodOpt
.GetPublicSymbol();
1440
bool isChecked = boundUnaryOperator.OperatorKind.IsChecked() || (boundUnaryOperator.
MethodOpt
is not null && SyntaxFacts.IsCheckedOperator(boundUnaryOperator.
MethodOpt
.Name));
1443
GetConstrainedToTypeForOperator(boundUnaryOperator.
MethodOpt
, boundUnaryOperator.ConstrainedToTypeOpt).GetPublicSymbol(),