1 implementation of IMethodReferenceOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5398internal sealed partial class MethodReferenceOperation : BaseMemberReferenceOperation, IMethodReferenceOperation
45 references to IMethodReferenceOperation
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (2)
111IMethodReferenceOperation m when m.Method.MethodKind == MethodKind.Constructor => m.Method.ContainingType, 112IMethodReferenceOperation m => m.Method.ReturnType,
ILLink.RoslynAnalyzer (1)
DataFlow\LocalDataFlowVisitor.cs (1)
569 case IMethodReferenceOperation methodReference:
Microsoft.AspNetCore.App.Analyzers (5)
Authorization\AddAuthorizationBuilderAnalyzer.cs (1)
206if (operation is IMethodReferenceOperation methodReferenceOperation
Http\RequestDelegateReturnTypeAnalyzer.cs (2)
30var methodReference = (IMethodReferenceOperation)context.Operation;
RouteHandlers\RouteHandlerAnalyzer.cs (2)
117var methodReference = (IMethodReferenceOperation)delegateCreation.Target;
Microsoft.AspNetCore.Components.Analyzers (1)
InternalUsageAnalyzer.cs (1)
66IMethodReferenceOperation method => method.Member,
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
InternalUsageAnalyzer.cs (1)
66IMethodReferenceOperation method => method.Member,
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\InvocationOperationExtensions.cs (1)
92IMethodReferenceOperation method => method.Method,
Microsoft.CodeAnalysis (5)
Generated\OperationKind.Generated.cs (1)
71/// <summary>Indicates an <see cref="IMethodReferenceOperation"/>.</summary>
Generated\Operations.Generated.cs (3)
10926public override IOperation VisitMethodReference(IMethodReferenceOperation operation, object? argument) 11442public virtual void VisitMethodReference(IMethodReferenceOperation operation) => DefaultVisit(operation); 11581public virtual TResult? VisitMethodReference(IMethodReferenceOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (1)
7131public override IOperation VisitMethodReference(IMethodReferenceOperation operation, int? captureIdForResult)
Microsoft.CodeAnalysis.CodeStyle (9)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (2)
105var methodBinding = (IMethodReferenceOperation)context.Operation;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
139public abstract void SetLocalFunctionTargetForDelegate(IOperation write, IMethodReferenceOperation localFunctionTarget);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
289case IMethodReferenceOperation methodReferenceOperation when (methodReferenceOperation.Method.IsLocalFunction()): 572public override void SetLocalFunctionTargetForDelegate(IOperation write, IMethodReferenceOperation localFunctionTarget)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.OperationTreeAnalysisData.cs (1)
74public override void SetLocalFunctionTargetForDelegate(IOperation write, IMethodReferenceOperation localFunctionTarget)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
462var methodReference = (IMethodReferenceOperation)currentOperation; 559AnalyzeLocalFunctionInvocation(((IMethodReferenceOperation)target).Method);
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory.cs (1)
1160private IMethodReferenceOperation CreateBoundMethodGroupSingleMethodOperation(BoundMethodGroup boundMethodGroup, MethodSymbol methodSymbol, bool suppressVirtualCalls)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
345if (operation is IMethodReferenceOperation methodRefOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
263if (rewrittenOperation is not (IAnonymousFunctionOperation or IMethodReferenceOperation))
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
345if (operation is IMethodReferenceOperation methodRefOperation)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
263if (rewrittenOperation is not (IAnonymousFunctionOperation or IMethodReferenceOperation))
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (2)
105var methodBinding = (IMethodReferenceOperation)context.Operation;
Microsoft.CodeAnalysis.Test.Utilities (6)
Compilation\ControlFlowGraphVerifier.cs (1)
1714case IMethodReferenceOperation methodReference:
Compilation\OperationTreeVerifier.cs (2)
1076public override void VisitMethodReference(IMethodReferenceOperation operation) 1078LogString(nameof(IMethodReferenceOperation));
Compilation\TestOperationVisitor.cs (1)
689public override void VisitMethodReference(IMethodReferenceOperation operation)
Diagnostics\OperationTestAnalyzer.cs (2)
1396memberSymbol = ((IMethodReferenceOperation)operation).Method; 1397receiver = ((IMethodReferenceOperation)operation).Instance;
Microsoft.CodeAnalysis.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
139public abstract void SetLocalFunctionTargetForDelegate(IOperation write, IMethodReferenceOperation localFunctionTarget);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (2)
289case IMethodReferenceOperation methodReferenceOperation when (methodReferenceOperation.Method.IsLocalFunction()): 572public override void SetLocalFunctionTargetForDelegate(IOperation write, IMethodReferenceOperation localFunctionTarget)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.OperationTreeAnalysisData.cs (1)
74public override void SetLocalFunctionTargetForDelegate(IOperation write, IMethodReferenceOperation localFunctionTarget)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
462var methodReference = (IMethodReferenceOperation)currentOperation; 559AnalyzeLocalFunctionInvocation(((IMethodReferenceOperation)target).Method);