89 references to Local
Microsoft.CodeAnalysis.CSharp (88)
Binder\Binder.ValueChecks.cs (7)
395
case BoundKind.
Local
:
666
case BoundKind.
Local
:
2962
case BoundKind.
Local
:
3211
case BoundKind.
Local
:
3532
case BoundKind.
Local
:
3939
case BoundKind.
Local
:
4632
case BoundKind.
Local
:
Binder\Binder_Invocation.cs (1)
1754
case BoundKind.
Local
:
Binder\Binder_Operators.cs (1)
2624
case BoundKind.
Local
:
Binder\Binder_Statements.cs (1)
1577
else if (op1.Kind is BoundKind.
Local
or BoundKind.Parameter)
Binder\LockOrUsingBinder.cs (1)
61
case BoundKind.
Local
:
BoundTree\BoundExpression.cs (2)
37
if ((Kind != BoundKind.
Local
&& Kind != BoundKind.Parameter) || this.WasConverted)
72
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)
72
case BoundKind.
Local
:
CodeGen\EmitAddress.cs (2)
34
case BoundKind.
Local
:
352
case BoundKind.
Local
:
CodeGen\EmitExpression.cs (11)
129
case BoundKind.
Local
:
429
(receiver.Kind == BoundKind.
Local
&& IsStackLocal(((BoundLocal)receiver).LocalSymbol)) ||
1250
case BoundKind.
Local
:
1526
case BoundKind.
Local
:
1914
case BoundKind.
Local
:
1993
case BoundKind.
Local
:
2542
case BoundKind.
Local
:
2591
case BoundKind.
Local
:
2788
if (lhs.Kind == BoundKind.
Local
&& ((BoundLocal)lhs).LocalSymbol.SynthesizedKind.IsLongLived())
2850
case BoundKind.
Local
:
3666
case BoundKind.
Local
:
CodeGen\EmitStatement.cs (3)
536
(receiver.Kind == BoundKind.
Local
&& IsStackLocal(((BoundLocal)receiver).LocalSymbol)) ||
1120
case BoundKind.
Local
:
1256
case BoundKind.
Local
:
CodeGen\Optimizer.cs (7)
761
if (value != null && value.Kind == BoundKind.
Local
&& ((BoundLocal)value).LocalSymbol == local)
1030
(lhs.Kind is BoundKind.
Local
or BoundKind.Parameter or BoundKind.FieldAccess && lhs.GetRefKind() != RefKind.None),
1047
case BoundKind.
Local
:
1358
if (boundExpression.Kind == BoundKind.
Local
)
1630
if (exceptionSourceOpt.Kind == BoundKind.
Local
)
1869
top.Item1.Kind == BoundKind.
Local
&&
2176
if (exceptionSource.Kind == BoundKind.
Local
)
FlowAnalysis\AbstractFlowPass.cs (1)
561
case BoundKind.
Local
:
FlowAnalysis\DataFlowsOutWalker.cs (1)
149
case BoundKind.
Local
:
FlowAnalysis\DefiniteAssignment.cs (7)
807
case BoundKind.
Local
:
942
if (n.Kind == BoundKind.
Local
)
979
case BoundKind.
Local
:
1336
case BoundKind.
Local
:
1429
case BoundKind.
Local
:
1497
case BoundKind.
Local
:
2432
case BoundKind.
Local
:
FlowAnalysis\LocalDataFlowPass.cs (1)
213
case BoundKind.
Local
:
FlowAnalysis\NullableWalker.cs (1)
9202
case BoundKind.
Local
:
FlowAnalysis\ReadWriteWalker.cs (1)
175
case BoundKind.
Local
:
Generated\BoundNodes.xml.Generated.cs (3)
4395
: base(BoundKind.
Local
, syntax, type, hasErrors)
4408
: base(BoundKind.
Local
, syntax, type)
8742
case BoundKind.
Local
:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
244
case BoundKind.
Local
:
Lowering\DiagnosticsPass_Warnings.cs (2)
36
case BoundKind.
Local
:
203
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter.cs (1)
898
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)
221
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
282
if (loweredRight.Kind == BoundKind.
Local
|| loweredRight.Kind == BoundKind.Parameter)
294
if (loweredRight.Kind == BoundKind.
Local
|| loweredRight.Kind == BoundKind.Parameter)
650
if (constantLeft == null && loweredLeft.Kind != BoundKind.
Local
&& loweredLeft.Kind != BoundKind.Parameter)
Lowering\LocalRewriter\LocalRewriter_Call.cs (4)
323
goto case BoundKind.
Local
;
325
case BoundKind.
Local
:
1409
if (argument?.Kind == BoundKind.
Local
)
1499
if (argument.Kind == BoundKind.
Local
)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (4)
675
case BoundKind.
Local
:
841
case BoundKind.
Local
:
870
goto case BoundKind.
Local
;
871
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (5)
264
if (node.LengthOrCountAccess.Kind is not BoundKind.
Local
|| receiver.Kind is not (BoundKind.
Local
or BoundKind.Parameter))
572
if (node.LengthOrCountAccess.Kind is not BoundKind.
Local
|| receiver.Kind is not (BoundKind.
Local
or BoundKind.Parameter))
725
if ((rewriteFlags & captureLength) != 0 && lengthAccess.Kind is not BoundKind.
Local
)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
484
case BoundKind.
Local
:
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (2)
554
goto case BoundKind.
Local
;
556
case BoundKind.
Local
:
Lowering\MethodToClassRewriter.cs (2)
475
if (originalLeft.Kind != BoundKind.
Local
)
511
if (rewrittenLeft.Kind != BoundKind.
Local
&& originalRight.Kind == BoundKind.ConvertedStackAllocExpression)
Lowering\SpillSequenceSpiller.cs (3)
353
assignment is not { Left.Kind: BoundKind.
Local
, Right.Kind: BoundKind.ArrayAccess }) // Optimize for some known to be safe scenarios.
396
case BoundKind.
Local
:
803
case BoundKind.
Local
:
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
793
if (node.Left.Kind != BoundKind.
Local
)
Operations\CSharpOperationFactory.cs (1)
43
case BoundKind.
Local
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\ConstantTests.cs (1)
1448
return ParseAndGetConstantFoldingSteps(source, node => node.Kind != BoundKind.Literal && node.Kind != BoundKind.
Local
);