1 implementation of Locals
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
4193public ImmutableArray<ILocalSymbol> Locals { get; }
13 references to Locals
Microsoft.CodeAnalysis (5)
Operations\ControlFlowGraphBuilder.cs (5)
3576var locals = new RegionBuilder(ControlFlowRegionKind.LocalLifetime, locals: operation.Locals); 4464if (!operation.Locals.IsEmpty && operation.LoopControlVariable.Kind == OperationKind.VariableDeclarator) 4513var localsRegion = new RegionBuilder(ControlFlowRegionKind.LocalLifetime, locals: operation.Locals); 4735ImmutableArray<ILocalSymbol> locals = operation.Locals; 5735EnterRegion(new RegionBuilder(ControlFlowRegionKind.LocalLifetime, locals: operation.Locals));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests.cs (2)
312Assert.Equal(RefKind.RefReadOnly, op.Locals.Single().RefKind); 380Assert.Equal(RefKind.RefReadOnly, op.Locals.Single().RefKind);
Microsoft.CodeAnalysis.Features (3)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (2)
153if (model.GetOperation(foreachStatement, cancellationToken) is not IForEachLoopOperation operation || operation.Locals.Length != 1) 158var foreachVariable = operation.Locals[0];
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
88if (semanticModel.GetOperation(forStatement, cancellationToken) is not ILoopOperation { Locals.Length: 1 })
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (1)
645LogLocals(operation.Locals);
Compilation\TestOperationVisitor.cs (2)
292VisitLocals(operation.Locals); 360VisitLocals(operation.Locals);