1 implementation of Method
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5408public IMethodSymbol Method { get; }
38 references to Method
ConfigurationSchemaGenerator (3)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (3)
111IMethodReferenceOperation m when m.Method.MethodKind == MethodKind.Constructor => m.Method.ContainingType, 112IMethodReferenceOperation m => m.Method.ReturnType,
ILLink.RoslynAnalyzer (2)
DataFlow\LocalDataFlowVisitor.cs (2)
570 IMethodSymbol methodDefinition = methodReference.Method.OriginalDefinition; 578 targetMethodSymbol = methodReference.Method;
Microsoft.AspNetCore.App.Analyzers (10)
Http\RequestDelegateReturnTypeAnalyzer.cs (1)
36var returnType = methodReference.Method.ReturnType;
RouteHandlers\RouteHandlerAnalyzer.cs (9)
118DisallowMvcBindArgumentsOnParameters(in context, wellKnownTypes, invocation, methodReference.Method); 119DisallowNonParsableComplexTypesOnParameters(in context, wellKnownTypes, routeUsage, methodReference.Method); 120DetectMismatchedParameterOptionality(in context, routeUsage, methodReference.Method); 121AtMostOneFromBodyAttribute(in context, wellKnownTypes, methodReference.Method); 124if (!methodReference.Method.DeclaringSyntaxReferences.IsEmpty) 126var syntaxReference = methodReference.Method.DeclaringSyntaxReferences.Single(); 138methodReference.Method, 149methodReference.Method, 163methodReference.Method,
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\InvocationOperationExtensions.cs (1)
92IMethodReferenceOperation method => method.Method,
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (2)
7133IOperation? visitedInstance = operation.Method.IsStatic ? null : Visit(operation.Instance); 7134return new MethodReferenceOperation(operation.Method, operation.ConstrainedToType, operation.IsVirtual, visitedInstance, semanticModel: null,
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
106_methodsUsedAsDelegates.GetOrAdd(methodBinding.Method.OriginalDefinition, true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (4)
288case IMethodReferenceOperation methodReferenceOperation when (methodReferenceOperation.Method.IsLocalFunction()): 289lambdaOrLocalFunctionCfgOpt = TryGetLocalFunctionControlFlowGraphInScope(methodReferenceOperation.Method); 578Debug.Assert(localFunctionTarget.Method.IsLocalFunction()); 580_localFunctionTargetsToAccessingCfgMap[localFunctionTarget.Method.OriginalDefinition] = ControlFlowGraph;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
463if (methodReference.Method.IsLocalFunction()) 559AnalyzeLocalFunctionInvocation(((IMethodReferenceOperation)target).Method);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
350return IsPotentiallyMutatingMethod(owningMethod, methodRefOperation.Instance, methodRefOperation.Method);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
350return IsPotentiallyMutatingMethod(owningMethod, methodRefOperation.Instance, methodRefOperation.Method);
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
106_methodsUsedAsDelegates.GetOrAdd(methodBinding.Method.OriginalDefinition, true);
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\ControlFlowGraphVerifier.cs (1)
1715method = methodReference.Method;
Compilation\OperationTreeVerifier.cs (1)
1079LogString($": {operation.Method.ToTestDisplayString()}");
Compilation\TestOperationVisitor.cs (1)
694Assert.Same(operation.Member, operation.Method);
Diagnostics\OperationTestAnalyzer.cs (1)
1396memberSymbol = ((IMethodReferenceOperation)operation).Method;
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (4)
288case IMethodReferenceOperation methodReferenceOperation when (methodReferenceOperation.Method.IsLocalFunction()): 289lambdaOrLocalFunctionCfgOpt = TryGetLocalFunctionControlFlowGraphInScope(methodReferenceOperation.Method); 578Debug.Assert(localFunctionTarget.Method.IsLocalFunction()); 580_localFunctionTargetsToAccessingCfgMap[localFunctionTarget.Method.OriginalDefinition] = ControlFlowGraph;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
463if (methodReference.Method.IsLocalFunction()) 559AnalyzeLocalFunctionInvocation(((IMethodReferenceOperation)target).Method);