1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1233
this.
MethodOpt
= methodOpt;
20 references to MethodOpt
Microsoft.CodeAnalysis.CSharp (20)
BoundTree\BoundExpression.cs (1)
439
get { return this.
MethodOpt
; }
Compilation\CSharpSemanticModel.cs (2)
3825
GetSymbolsAndResultKind(increment, increment.
MethodOpt
, increment.OriginalUserDefinedOperatorsOpt, out symbols, out resultKind);
3830
Debug.Assert((object)increment.
MethodOpt
== null && increment.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty);
FlowAnalysis\NullableWalker.cs (2)
10426
MethodSymbol? incrementOperator = (node.OperatorKind.IsUserDefined() && node.
MethodOpt
?.ParameterCount == 1) ? node.
MethodOpt
: null;
Generated\BoundNodes.xml.Generated.cs (4)
1260
if (operatorKind != this.OperatorKind || operand != this.Operand || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.
MethodOpt
) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.ConsiderEverything) || operandPlaceholder != this.OperandPlaceholder || operandConversion != this.OperandConversion || resultPlaceholder != this.ResultPlaceholder || resultConversion != this.ResultConversion || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
10945
return node.Update(node.OperatorKind, operand, node.
MethodOpt
, constrainedToTypeOpt, operandPlaceholder, operandConversion, resultPlaceholder, resultConversion, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, type);
12529
MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.
MethodOpt
);
15175
new TreeDumperNode("methodOpt", node.
MethodOpt
, null),
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (7)
632
Debug.Assert(node.
MethodOpt
is { });
633
Debug.Assert(node.
MethodOpt
.ParameterCount == 1);
640
TypeSymbol type = node.
MethodOpt
.GetParameterType(0);
644
Debug.Assert(TypeSymbol.Equals(node.
MethodOpt
.GetParameterType(0), node.
MethodOpt
.ReturnType, TypeCompareKind.ConsiderEverything2));
655
node.
MethodOpt
,
685
node.
MethodOpt
,
Operations\CSharpOperationFactory.cs (4)
1390
bool isChecked = boundIncrementOperator.OperatorKind.IsChecked() || (boundIncrementOperator.
MethodOpt
is not null && SyntaxFacts.IsCheckedOperator(boundIncrementOperator.
MethodOpt
.Name));
1392
IMethodSymbol? operatorMethod = boundIncrementOperator.
MethodOpt
.GetPublicSymbol();
1397
GetConstrainedToTypeForOperator(boundIncrementOperator.
MethodOpt
, boundIncrementOperator.ConstrainedToTypeOpt).GetPublicSymbol(),