1 implementation of IAnonymousFunctionOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5862internal sealed partial class AnonymousFunctionOperation : Operation, IAnonymousFunctionOperation
51 references to IAnonymousFunctionOperation
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (1)
113IAnonymousFunctionOperation f => f.Symbol.ReturnType,
ILLink.RoslynAnalyzer (3)
IOperationExtensions.cs (2)
187 return ((IAnonymousFunctionOperation) operation).Symbol; 257 case IAnonymousFunctionOperation lambda:
RequiresAnalyzerBase.cs (1)
207 case IAnonymousFunctionOperation lambda:
Microsoft.AspNetCore.App.Analyzers (10)
Authorization\AddAuthorizationBuilderAnalyzer.cs (4)
72&& TryGetConfigureAnonymousFunctionOperation(configureDelegateCreationOperation, out var configureAnonymousFunctionOperation) 115private static bool TryGetConfigureAnonymousFunctionOperation(IDelegateCreationOperation configureDelegateCreationOperation, [NotNullWhen(true)] out IAnonymousFunctionOperation? configureAnonymousFunctionOperation) 120&& delegateCreationChildOperations.First() is IAnonymousFunctionOperation anonymousFunctionOperation) 129private static bool TryGetConfigureBlockOperation(IAnonymousFunctionOperation configureAnonymousFunctionOperation, [NotNullWhen(true)] out IBlockOperation? configureBlockOperation)
Http\RequestDelegateReturnTypeAnalyzer.cs (2)
46var anonymousFunction = (IAnonymousFunctionOperation)context.Operation;
RouteHandlers\DetectMisplacedLambdaAttribute.cs (1)
16IAnonymousFunctionOperation lambda)
RouteHandlers\DisallowReturningActionResultFromMapMethods.cs (1)
20IAnonymousFunctionOperation anonymousFunction,
RouteHandlers\RouteHandlerAnalyzer.cs (2)
107var lambda = (IAnonymousFunctionOperation)delegateCreation.Target;
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\InvocationOperationExtensions.cs (1)
90IAnonymousFunctionOperation anon => anon.Symbol,
Microsoft.AspNetCore.Mvc.Analyzers (1)
TagHelpersInCodeBlocksAnalyzer.cs (1)
74IAnonymousFunctionOperation anonymousFunctionOperation => anonymousFunctionOperation.Symbol,
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ActualApiResponseMetadataFactory.cs (1)
308if (parent is ILocalFunctionOperation or IAnonymousFunctionOperation)
Microsoft.CodeAnalysis (9)
Generated\OperationKind.Generated.cs (1)
92/// <summary>Indicates an <see cref="IAnonymousFunctionOperation"/>.</summary>
Generated\Operations.Generated.cs (3)
10961public override IOperation VisitAnonymousFunction(IAnonymousFunctionOperation operation, object? argument) 11449public virtual void VisitAnonymousFunction(IAnonymousFunctionOperation operation) => DefaultVisit(operation); 11588public virtual TResult? VisitAnonymousFunction(IAnonymousFunctionOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (3)
132var anonymousFunction = (IAnonymousFunctionOperation)body; 6459public override IOperation VisitAnonymousFunction(IAnonymousFunctionOperation operation, int? captureIdForResult)
Operations\OperationNodes.cs (2)
153public readonly IAnonymousFunctionOperation Original; 155public FlowAnonymousFunctionOperation(in ControlFlowGraphBuilder.Context context, IAnonymousFunctionOperation original, bool isImplicit) :
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (2)
31/// Indicates if the operation block has an <see cref="IDelegateCreationOperation"/> or an <see cref="IAnonymousFunctionOperation"/>. 255/// an <see cref="IDelegateCreationOperation"/> or an <see cref="IAnonymousFunctionOperation"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
244return ((IAnonymousFunctionOperation)operation).Symbol;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
384public override void VisitAnonymousFunction(IAnonymousFunctionOperation operation)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
67blockStatement = ((IAnonymousFunctionOperation)operation).Body;
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory.cs (1)
994private IAnonymousFunctionOperation CreateBoundLambdaOperation(BoundLambda boundLambda)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
263if (rewrittenOperation is not (IAnonymousFunctionOperation or IMethodReferenceOperation))
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (6)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (6)
414var lambdaOperation = (IAnonymousFunctionOperation)semanticModel.GetOperation(lambdaSyntax); 422var lambdaOperationSecondRequest = (IAnonymousFunctionOperation)semanticModel.GetOperation(lambdaSyntax); 491var lambdaOperation = (IAnonymousFunctionOperation)semanticModel.GetOperation(lambdaSyntax);
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 (3)
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
167blockStatement = ((IAnonymousFunctionOperation)operation).Body;
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (2)
31/// Indicates if the operation block has an <see cref="IDelegateCreationOperation"/> or an <see cref="IAnonymousFunctionOperation"/>. 255/// an <see cref="IDelegateCreationOperation"/> or an <see cref="IAnonymousFunctionOperation"/>.
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (2)
1356public override void VisitAnonymousFunction(IAnonymousFunctionOperation operation) 1358LogString(nameof(IAnonymousFunctionOperation));
Compilation\TestOperationVisitor.cs (1)
936public override void VisitAnonymousFunction(IAnonymousFunctionOperation operation)
Diagnostics\OperationTestAnalyzer.cs (2)
1313var lambdaExpression = (IAnonymousFunctionOperation)operationContext.Operation;
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
244return ((IAnonymousFunctionOperation)operation).Symbol;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
384public override void VisitAnonymousFunction(IAnonymousFunctionOperation operation)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
67blockStatement = ((IAnonymousFunctionOperation)operation).Body;