1 implementation of ILocalFunctionOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
4916internal sealed partial class LocalFunctionOperation : Operation, ILocalFunctionOperation
45 references to ILocalFunctionOperation
ILLink.RoslynAnalyzer (3)
IOperationExtensions.cs (2)
190 return ((ILocalFunctionOperation) operation).Symbol; 260 case ILocalFunctionOperation local:
RequiresAnalyzerBase.cs (1)
210 case ILocalFunctionOperation local when targets.HasFlag (DiagnosticTargets.MethodOrConstructor):
Microsoft.AspNetCore.App.Analyzers (1)
RouteHandlers\RouteHandlerAnalyzer.cs (1)
131if (methodOperation is ILocalFunctionOperation { Body: not null } localFunction)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\InvocationOperationExtensions.cs (1)
91ILocalFunctionOperation local => local.Symbol,
Microsoft.AspNetCore.Mvc.Analyzers (1)
TagHelpersInCodeBlocksAnalyzer.cs (1)
73ILocalFunctionOperation localFunctionOperation => localFunctionOperation.Symbol,
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ActualApiResponseMetadataFactory.cs (1)
308if (parent is ILocalFunctionOperation or IAnonymousFunctionOperation)
Microsoft.CodeAnalysis (20)
Generated\OperationKind.Generated.cs (1)
49/// <summary>Indicates an <see cref="ILocalFunctionOperation"/>.</summary>
Generated\Operations.Generated.cs (3)
10871public override IOperation VisitLocalFunction(ILocalFunctionOperation operation, object? argument) 11431public virtual void VisitLocalFunction(ILocalFunctionOperation operation) => DefaultVisit(operation); 11570public virtual TResult? VisitLocalFunction(ILocalFunctionOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraph.cs (3)
27private readonly ImmutableDictionary<IMethodSymbol, (ControlFlowRegion region, ILocalFunctionOperation operation, int ordinal)> _localFunctionsMap; 37ImmutableDictionary<IMethodSymbol, (ControlFlowRegion region, ILocalFunctionOperation operation, int ordinal)> localFunctionsMap, 246if (!_localFunctionsMap.TryGetValue(localFunction, out (ControlFlowRegion enclosing, ILocalFunctionOperation operation, int ordinal) info))
Operations\ControlFlowGraphBuilder.cs (4)
128builder.VisitLocalFunctionAsRoot((ILocalFunctionOperation)body); 150var localFunctionsMap = ImmutableDictionary.CreateBuilder<IMethodSymbol, (ControlFlowRegion, ILocalFunctionOperation, int)>(); 6436public override IOperation? VisitLocalFunction(ILocalFunctionOperation operation, int? captureIdForResult) 6452private IOperation? VisitLocalFunctionAsRoot(ILocalFunctionOperation operation)
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (9)
24public ArrayBuilder<(IMethodSymbol, ILocalFunctionOperation)>? LocalFunctions = null; 94public void Add(IMethodSymbol symbol, ILocalFunctionOperation operation) 102LocalFunctions = ArrayBuilder<(IMethodSymbol, ILocalFunctionOperation)>.GetInstance(); 108public void AddRange(ArrayBuilder<(IMethodSymbol, ILocalFunctionOperation)>? others) 117Debug.Assert(others.All(((IMethodSymbol m, ILocalFunctionOperation _) tuple) => tuple.m.MethodKind == MethodKind.LocalFunction)); 121LocalFunctions = ArrayBuilder<(IMethodSymbol, ILocalFunctionOperation)>.GetInstance(); 298ImmutableDictionary<IMethodSymbol, (ControlFlowRegion region, ILocalFunctionOperation operation, int ordinal)>.Builder localFunctionsMap, 339LocalFunctions?.SelectAsArray(((IMethodSymbol, ILocalFunctionOperation) tuple) => tuple.Item1) ?? default, 346foreach ((IMethodSymbol method, ILocalFunctionOperation operation) in LocalFunctions)
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
247return ((ILocalFunctionOperation)operation).Symbol;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
46.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
285case ILocalFunctionOperation localFunctionOperation:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
372public override void VisitLocalFunction(ILocalFunctionOperation operation)
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory.cs (1)
1003private ILocalFunctionOperation CreateBoundLocalFunctionStatementOperation(BoundLocalFunctionStatement boundLocalFunctionStatement)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenLocalFunctionTests.cs (2)
150var localFunctionOperation = (ILocalFunctionOperation)model.GetOperation(localFunction);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\TopLevelStatementsTests.cs (2)
245Assert.IsAssignableFrom<ILocalFunctionOperation>(operation2); 368Assert.IsAssignableFrom<ILocalFunctionOperation>(operation2);
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (2)
1794public override void VisitLocalFunction(ILocalFunctionOperation operation) 1796LogString(nameof(ILocalFunctionOperation));
Compilation\TestOperationVisitor.cs (1)
950public override void VisitLocalFunction(ILocalFunctionOperation operation)
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
247return ((ILocalFunctionOperation)operation).Symbol;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.cs (1)
46.FirstOrDefault(o => Equals((o as ILocalFunctionOperation)?.Symbol, localFunction));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
285case ILocalFunctionOperation localFunctionOperation:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
372public override void VisitLocalFunction(ILocalFunctionOperation operation)
System.Private.CoreLib.Generators (2)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (2)
501ILocalFunctionOperation localFunctionOperation = (ILocalFunctionOperation)operationSearch;