85 references to Local
Microsoft.CodeAnalysis.CSharp (85)
Binder\Binder.ValueChecks.cs (7)
518
case BoundKind.
Local
:
836
case BoundKind.
Local
:
3394
case BoundKind.
Local
:
3715
case BoundKind.
Local
:
4109
case BoundKind.
Local
:
4801
case BoundKind.
Local
:
5764
case BoundKind.
Local
:
Binder\Binder_Invocation.cs (1)
2091
case BoundKind.
Local
:
Binder\Binder_Operators.cs (1)
2667
case BoundKind.
Local
:
Binder\Binder_Statements.cs (1)
1568
else if (op1.Kind is BoundKind.
Local
or BoundKind.Parameter)
Binder\LockOrUsingBinder.cs (1)
61
case BoundKind.
Local
:
BoundTree\BoundExpression.cs (2)
56
if ((Kind != BoundKind.
Local
&& Kind != BoundKind.Parameter) || this.WasConverted)
92
case BoundKind.
Local
when !WasConverted:
BoundTree\BoundExpressionExtensions.cs (1)
24
case BoundKind.
Local
:
BoundTree\BoundTreeVisitors.cs (1)
101
case BoundKind.
Local
:
BoundTree\Constructors.cs (1)
74
case BoundKind.
Local
:
CodeGen\EmitAddress.cs (2)
34
case BoundKind.
Local
:
357
case BoundKind.
Local
:
CodeGen\EmitExpression.cs (11)
130
case BoundKind.
Local
:
444
(receiver.Kind == BoundKind.
Local
&& IsStackLocal(((BoundLocal)receiver).LocalSymbol)) ||
1290
case BoundKind.
Local
:
1566
case BoundKind.
Local
:
2134
case BoundKind.
Local
:
2213
case BoundKind.
Local
:
2759
case BoundKind.
Local
:
2809
case BoundKind.
Local
:
3006
if (lhs.Kind == BoundKind.
Local
&& ((BoundLocal)lhs).LocalSymbol.SynthesizedKind.IsLongLived())
3068
case BoundKind.
Local
:
3940
case BoundKind.
Local
:
CodeGen\EmitStatement.cs (3)
536
(receiver.Kind == BoundKind.
Local
&& IsStackLocal(((BoundLocal)receiver).LocalSymbol)) ||
1145
case BoundKind.
Local
:
1281
case BoundKind.
Local
:
CodeGen\Optimizer.cs (7)
762
if (value != null && value.Kind == BoundKind.
Local
&& ((BoundLocal)value).LocalSymbol == local)
1031
(lhs.Kind is BoundKind.
Local
or BoundKind.Parameter or BoundKind.FieldAccess && lhs.GetRefKind() != RefKind.None),
1048
case BoundKind.
Local
:
1425
if (boundExpression.Kind == BoundKind.
Local
)
1697
if (exceptionSourceOpt.Kind == BoundKind.
Local
)
1936
top.Item1.Kind == BoundKind.
Local
&&
2299
if (exceptionSource.Kind == BoundKind.
Local
)
FlowAnalysis\AbstractFlowPass.cs (1)
560
case BoundKind.
Local
:
FlowAnalysis\DataFlowsOutWalker.cs (1)
149
case BoundKind.
Local
:
FlowAnalysis\DefiniteAssignment.cs (7)
828
case BoundKind.
Local
:
978
if (n.Kind == BoundKind.
Local
)
1015
case BoundKind.
Local
:
1397
case BoundKind.
Local
:
1496
case BoundKind.
Local
:
1568
case BoundKind.
Local
:
2596
case BoundKind.
Local
:
FlowAnalysis\LocalDataFlowPass.cs (1)
218
case BoundKind.
Local
:
FlowAnalysis\ReadWriteWalker.cs (1)
185
case BoundKind.
Local
:
Generated\BoundNodes.xml.Generated.cs (3)
4506
: base(BoundKind.
Local
, syntax, type, hasErrors)
4519
: base(BoundKind.
Local
, syntax, type)
9066
case BoundKind.
Local
:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
242
case BoundKind.
Local
:
Lowering\DiagnosticsPass_Warnings.cs (2)
36
case BoundKind.
Local
:
203
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter.cs (1)
1021
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
1184
Debug.Assert(left.Kind == BoundKind.
Local
&& left == binding.VariableAccess);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
519
if ((loweredInput.Kind == BoundKind.
Local
|| loweredInput.Kind == BoundKind.Parameter)
644
if (canShareInputs && (expr.Kind == BoundKind.Parameter || expr.Kind == BoundKind.
Local
) && _tempAllocator.TrySetTemp(temp, expr))
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
218
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
284
if (loweredRight.Kind == BoundKind.
Local
|| loweredRight.Kind == BoundKind.Parameter)
296
if (loweredRight.Kind == BoundKind.
Local
|| loweredRight.Kind == BoundKind.Parameter)
652
if (constantLeft == null && loweredLeft.Kind != BoundKind.
Local
&& loweredLeft.Kind != BoundKind.Parameter)
Lowering\LocalRewriter\LocalRewriter_Call.cs (4)
557
goto case BoundKind.
Local
;
559
case BoundKind.
Local
:
1538
if (argument.Kind == BoundKind.
Local
)
1627
if (argument.Kind == BoundKind.
Local
)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (4)
687
case BoundKind.
Local
:
857
case BoundKind.
Local
:
886
goto case BoundKind.
Local
;
887
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (5)
497
if (node.LengthOrCountAccess.Kind is not BoundKind.
Local
|| receiver.Kind is not (BoundKind.
Local
or BoundKind.Parameter))
799
if (node.LengthOrCountAccess.Kind is not BoundKind.
Local
|| receiver.Kind is not (BoundKind.
Local
or BoundKind.Parameter))
950
if ((rewriteFlags & captureLength) != 0 && lengthAccess.Kind is not BoundKind.
Local
)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
488
case BoundKind.
Local
:
Lowering\MethodToClassRewriter.cs (2)
484
if (originalLeft.Kind != BoundKind.
Local
)
520
if (rewrittenLeft.Kind != BoundKind.
Local
&& originalRight.Kind == BoundKind.ConvertedStackAllocExpression)
Lowering\SpillSequenceSpiller.cs (3)
352
assignment is not { Left.Kind: BoundKind.
Local
, Right.Kind: BoundKind.ArrayAccess }) // Optimize for some known to be safe scenarios.
395
case BoundKind.
Local
:
874
case BoundKind.
Local
:
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
811
if (node.Left.Kind != BoundKind.
Local
)
Operations\CSharpOperationFactory.cs (1)
43
case BoundKind.
Local
: