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