1 write to MethodOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7090
this.
MethodOpt
= methodOpt;
34 references to MethodOpt
Microsoft.CodeAnalysis.CSharp (34)
BoundTree\BoundExpressionExtensions.cs (2)
176
if (delegateCreation != null && delegateCreation.
MethodOpt
is { })
178
symbols.Add(delegateCreation.
MethodOpt
);
CodeGen\EmitExpression.cs (1)
801
var meth = expression.
MethodOpt
?? receiver.Type.DelegateInvokeMethod();
Compilation\CSharpSemanticModel.cs (3)
2230
conversion = new Conversion(ConversionKind.MethodGroup, delegateCreation.
MethodOpt
, delegateCreation.IsExtensionMethod);
4295
if (delegateCreation.Argument == boundNode && (object)delegateCreation.
MethodOpt
!= null)
4804
var method = delegateCreation.
MethodOpt
;
FlowAnalysis\AbstractFlowPass.cs (2)
1624
if (node.
MethodOpt
?.OriginalDefinition is LocalFunctionSymbol localFunc)
1628
else if (node.
MethodOpt
is { } method && methodGroup.ReceiverOpt is { } receiver && !ignoreReceiver(method))
FlowAnalysis\NullableWalker.cs (2)
9759
if (node.
MethodOpt
?.OriginalDefinition is LocalFunctionSymbol localFunc)
9840
var method = node.
MethodOpt
;
Generated\BoundNodes.xml.Generated.cs (4)
7106
if (argument != this.Argument || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.
MethodOpt
) || isExtensionMethod != this.IsExtensionMethod || wasTargetTyped != this.WasTargetTyped || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
12050
MethodSymbol? methodOpt = this.VisitMethodSymbol(node.
MethodOpt
);
14503
MethodSymbol? methodOpt = GetUpdatedSymbol(node, node.
MethodOpt
);
16834
new TreeDumperNode("methodOpt", node.
MethodOpt
, null),
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
471
if (node.
MethodOpt
?.MethodKind == MethodKind.LocalFunction)
474
var method = node.
MethodOpt
.OriginalDefinition;
Lowering\ClosureConversion\ClosureConversion.cs (2)
1336
if (node.
MethodOpt
?.MethodKind == MethodKind.LocalFunction)
1343
node.
MethodOpt
,
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (3)
792
if ((object)node.
MethodOpt
!= null)
794
bool staticMember = !node.
MethodOpt
.RequiresInstanceReceiver && !node.IsExtensionMethod;
795
return DelegateCreation(node.Argument, node.
MethodOpt
, node.Type, staticMember);
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
903
CheckMethodGroup((BoundMethodGroup)node.Argument, node.
MethodOpt
, node.IsExtensionMethod, parentIsConversion: true, convertedToType: node.Type);
Lowering\ExtensionMethodReferenceRewriter.cs (2)
205
var methodOpt = VisitMethodSymbolWithExtensionRewrite(rewriter, node.
MethodOpt
);
212
Debug.Assert(node.
MethodOpt
!.OriginalDefinition.TryGetCorrespondingExtensionImplementationMethod() == (object)methodOpt.OriginalDefinition);
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
61
var targetMethod = boundDelegateCreation.
MethodOpt
;
Lowering\LocalRewriter\DelegateCacheRewriter.cs (3)
37
var targetMethod = boundDelegateCreation.
MethodOpt
;
46
Debug.Assert(boundDelegateCreation.
MethodOpt
is { });
126
var targetMethod = boundDelegateCreation.
MethodOpt
;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
240
node.
MethodOpt
?.MethodKind == MethodKind.LocalFunction;
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
31
var method = node.
MethodOpt
;
Lowering\MethodToClassRewriter.cs (1)
367
MethodSymbol? method = node.
MethodOpt
;
Lowering\SpillSequenceSpiller.cs (1)
1209
return UpdateExpression(builder, node.Update(argument, node.
MethodOpt
, node.IsExtensionMethod, node.WasTargetTyped, node.Type));
Operations\CSharpOperationFactory_Methods.cs (2)
164
boundDelegateCreationExpression.
MethodOpt
!= null)
171
return CreateBoundMethodGroupSingleMethodOperation(boundMethodGroup, boundDelegateCreationExpression.
MethodOpt
, boundMethodGroup.SuppressVirtualCalls);