86 references to Local
Microsoft.CodeAnalysis.CSharp (85)
Binder\Binder.ValueChecks.cs (6)
748
case BoundKind.
Local
:
1081
case BoundKind.
Local
:
3763
case BoundKind.
Local
:
4053
case BoundKind.
Local
:
4417
case BoundKind.
Local
:
5077
case BoundKind.
Local
:
Binder\Binder_Invocation.cs (1)
2246
case BoundKind.
Local
:
Binder\Binder_Operators.cs (1)
4265
case BoundKind.
Local
:
Binder\Binder_Statements.cs (1)
1588
else if (op1.Kind is BoundKind.
Local
or BoundKind.Parameter)
Binder\LockOrUsingBinder.cs (1)
61
case BoundKind.
Local
:
BoundTree\BoundExpression.cs (2)
61
if ((Kind != BoundKind.
Local
&& Kind != BoundKind.Parameter) || this.WasConverted)
97
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\CodeGenerator_HasHome.cs (1)
90
case BoundKind.
Local
:
CodeGen\EmitAddress.cs (2)
32
case BoundKind.
Local
:
355
case BoundKind.
Local
:
CodeGen\EmitExpression.cs (11)
130
case BoundKind.
Local
:
444
(receiver.Kind == BoundKind.
Local
&& IsStackLocal(((BoundLocal)receiver).LocalSymbol)) ||
1301
case BoundKind.
Local
:
1577
case BoundKind.
Local
:
2165
case BoundKind.
Local
:
2245
case BoundKind.
Local
:
2803
case BoundKind.
Local
:
2853
case BoundKind.
Local
:
3050
if (lhs.Kind == BoundKind.
Local
&& ((BoundLocal)lhs).LocalSymbol.SynthesizedKind.IsLongLived())
3112
case BoundKind.
Local
:
3983
case BoundKind.
Local
:
CodeGen\EmitStatement.cs (3)
536
(receiver.Kind == BoundKind.
Local
&& IsStackLocal(((BoundLocal)receiver).LocalSymbol)) ||
1168
case BoundKind.
Local
:
1308
case BoundKind.
Local
:
CodeGen\Optimizer.cs (7)
761
if (value != null && value.Kind == BoundKind.
Local
&& ((BoundLocal)value).LocalSymbol == local)
1040
(lhs.Kind is BoundKind.
Local
or BoundKind.Parameter or BoundKind.FieldAccess && lhs.GetRefKind() != RefKind.None),
1057
case BoundKind.
Local
:
1434
if (boundExpression.Kind == BoundKind.
Local
)
1708
if (exceptionSourceOpt.Kind == BoundKind.
Local
)
1947
top.Item1.Kind == BoundKind.
Local
&&
2358
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)
780
case BoundKind.
Local
:
931
if (n.Kind == BoundKind.
Local
)
968
case BoundKind.
Local
:
1350
case BoundKind.
Local
:
1449
case BoundKind.
Local
:
1521
case BoundKind.
Local
:
2553
case BoundKind.
Local
:
FlowAnalysis\LocalDataFlowPass.cs (1)
218
case BoundKind.
Local
:
FlowAnalysis\ReadWriteWalker.cs (1)
190
case BoundKind.
Local
:
Generated\BoundNodes.xml.Generated.cs (3)
4564
: base(BoundKind.
Local
, syntax, type, hasErrors)
4577
: base(BoundKind.
Local
, syntax, type)
9333
case BoundKind.
Local
:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
247
case BoundKind.
Local
:
Lowering\DiagnosticsPass_Warnings.cs (2)
36
case BoundKind.
Local
:
203
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter.cs (1)
1030
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
1192
Debug.Assert(left.Kind == BoundKind.
Local
&& left == binding.VariableAccess);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
554
if ((loweredInput.Kind == BoundKind.
Local
|| loweredInput.Kind == BoundKind.Parameter)
679
if (canShareInputs && (expr.Kind == BoundKind.Parameter || expr.Kind == BoundKind.
Local
) && _tempAllocator.TrySetTemp(temp, expr))
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
230
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (3)
291
if (loweredRight.Kind == BoundKind.
Local
|| loweredRight.Kind == BoundKind.Parameter)
303
if (loweredRight.Kind == BoundKind.
Local
|| loweredRight.Kind == BoundKind.Parameter)
660
if (constantLeft == null && loweredLeft.Kind != BoundKind.
Local
&& loweredLeft.Kind != BoundKind.Parameter)
Lowering\LocalRewriter\LocalRewriter_Call.cs (4)
574
goto case BoundKind.
Local
;
576
case BoundKind.
Local
:
1622
if (argument.Kind == BoundKind.
Local
)
1711
if (argument.Kind == BoundKind.
Local
)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (4)
818
case BoundKind.
Local
:
988
case BoundKind.
Local
:
1017
goto case BoundKind.
Local
;
1018
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (5)
536
if (node.LengthOrCountAccess.Kind is not BoundKind.
Local
|| receiver.Kind is not (BoundKind.
Local
or BoundKind.Parameter))
839
if (node.LengthOrCountAccess.Kind is not BoundKind.
Local
|| receiver.Kind is not (BoundKind.
Local
or BoundKind.Parameter))
990
if ((rewriteFlags & captureLength) != 0 && lengthAccess.Kind is not BoundKind.
Local
)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
636
case BoundKind.
Local
:
Lowering\MethodToClassRewriter.cs (2)
259
if (originalLeft.Kind != BoundKind.
Local
)
295
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
:
885
case BoundKind.
Local
:
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
620
if (node.Left.Kind != BoundKind.
Local
)
Operations\CSharpOperationFactory.cs (1)
42
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
);