1 implementation of IDelegateCreationOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7030internal sealed partial class DelegateCreationOperation : Operation, IDelegateCreationOperation
35 references to IDelegateCreationOperation
ILLink.RoslynAnalyzer (1)
DataFlow\LocalDataFlowVisitor.cs (1)
555 public override TValue VisitDelegateCreation (IDelegateCreationOperation operation, LocalDataFlowState<TValue, TContext, TValueLattice, TContextLattice> state)
Microsoft.AspNetCore.App.Analyzers (6)
Authorization\AddAuthorizationBuilderAnalyzer.cs (4)
71&& TryGetConfigureDelegateCreationOperation(configureArgumentOperation, out var configureDelegateCreationOperation) 101private static bool TryGetConfigureDelegateCreationOperation(IArgumentOperation configureArgumentOperation, [NotNullWhen(true)] out IDelegateCreationOperation? configureDelegateCreationOperation) 106&& argumentChildOperations.First() is IDelegateCreationOperation delegateCreationOperation) 115private static bool TryGetConfigureAnonymousFunctionOperation(IDelegateCreationOperation configureDelegateCreationOperation, [NotNullWhen(true)] out IAnonymousFunctionOperation? configureAnonymousFunctionOperation)
RouteHandlers\RouteHandlerAnalyzer.cs (2)
77IDelegateCreationOperation? delegateCreation = null; 82delegateCreation = argument.Descendants().OfType<IDelegateCreationOperation>().FirstOrDefault();
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\InvocationOperationExtensions.cs (1)
87IDelegateCreationOperation del => ResolveMethodFromOperation(del.Target, semanticModel),
Microsoft.CodeAnalysis (5)
Generated\OperationKind.Generated.cs (1)
143/// <summary>Indicates an <see cref="IDelegateCreationOperation"/>.</summary>
Generated\Operations.Generated.cs (3)
11066public override IOperation VisitDelegateCreation(IDelegateCreationOperation operation, object? argument) 11475public virtual void VisitDelegateCreation(IDelegateCreationOperation operation) => DefaultVisit(operation); 11614public virtual TResult? VisitDelegateCreation(IDelegateCreationOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (1)
7693public override IOperation VisitDelegateCreation(IDelegateCreationOperation operation, int? captureIdForResult)
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (3)
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"/>. 285operation.Parent is IDelegateCreationOperation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
448currentOperation = ((IDelegateCreationOperation)currentOperation).Target;
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory.cs (1)
1151private IDelegateCreationOperation CreateBoundDelegateCreationExpressionOperation(BoundDelegateCreationExpression boundDelegateCreationExpression)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
210if (originalOperation is IDelegateCreationOperation originalDelegateCreationOperation) 249SemanticModel originalSemanticModel, IDelegateCreationOperation originalDelegateCreationOperation, 266if (rewrittenOperation.Parent is not IDelegateCreationOperation rewrittenDelegateCreationOperation)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (3)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (2)
413var variableTreeLambdaOperation = ((IDelegateCreationOperation)variableDeclarationGroupOperation.Declarations.Single().Declarators.Single().Initializer.Value).Target; 421var variableTreeLambdaOperationSecondRequest = ((IDelegateCreationOperation)variableDeclarationGroupOperationSecondRequest.Declarations.Single().Declarators.Single().Initializer.Value).Target;
IOperation\IOperationTests_IConversionExpression.cs (1)
5357return ((IDelegateCreationOperation)operation).Target;
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
210if (originalOperation is IDelegateCreationOperation originalDelegateCreationOperation) 249SemanticModel originalSemanticModel, IDelegateCreationOperation originalDelegateCreationOperation, 266if (rewrittenOperation.Parent is not IDelegateCreationOperation rewrittenDelegateCreationOperation)
Microsoft.CodeAnalysis.Features (3)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (3)
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"/>. 285operation.Parent is IDelegateCreationOperation)
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (2)
1384public override void VisitDelegateCreation(IDelegateCreationOperation operation) 1386LogString(nameof(IDelegateCreationOperation));
Compilation\TestOperationVisitor.cs (1)
1611public override void VisitDelegateCreation(IDelegateCreationOperation operation)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
448currentOperation = ((IDelegateCreationOperation)currentOperation).Target;
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests_IConversionExpression.vb (1)
3350Return DirectCast(conv, IDelegateCreationOperation).Target