82 references to Local
Microsoft.CodeAnalysis.CSharp (82)
Binder\Binder_Invocation.cs (1)
2283
case BoundKind.
Local
:
Binder\Binder_Operators.cs (1)
4293
case BoundKind.
Local
:
Binder\Binder_Statements.cs (1)
1588
else if (op1.Kind is BoundKind.
Local
or BoundKind.Parameter)
Binder\Binder.ValueChecks.cs (6)
743
case BoundKind.
Local
:
1060
case BoundKind.
Local
:
3729
case BoundKind.
Local
:
4023
case BoundKind.
Local
:
4392
case BoundKind.
Local
:
5093
case BoundKind.
Local
:
Binder\LockOrUsingBinder.cs (1)
61
case BoundKind.
Local
:
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)
108
case BoundKind.
Local
:
CodeGen\EmitAddress.cs (2)
33
case BoundKind.
Local
:
396
case BoundKind.
Local
:
CodeGen\EmitExpression.cs (12)
130
case BoundKind.
Local
:
452
(receiver.Kind == BoundKind.
Local
&& IsStackLocal(((BoundLocal)receiver).LocalSymbol)) ||
1200
case BoundKind.
Local
:
1367
case BoundKind.
Local
:
1657
case BoundKind.
Local
:
2251
case BoundKind.
Local
:
2331
case BoundKind.
Local
:
2907
case BoundKind.
Local
:
2957
case BoundKind.
Local
:
3152
if (lhs.Kind == BoundKind.
Local
&& ((BoundLocal)lhs).LocalSymbol.SynthesizedKind.IsLongLived())
3231
case BoundKind.
Local
:
4108
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
:
1436
if (boundExpression.Kind == BoundKind.
Local
)
1710
if (exceptionSourceOpt.Kind == BoundKind.
Local
)
1955
top.Item1.Kind == BoundKind.
Local
&&
2367
if (exceptionSource.Kind == BoundKind.
Local
)
FlowAnalysis\AbstractFlowPass.cs (1)
560
case BoundKind.
Local
:
FlowAnalysis\DefiniteAssignment.cs (7)
789
case BoundKind.
Local
:
940
if (n.Kind == BoundKind.
Local
)
977
case BoundKind.
Local
:
1359
case BoundKind.
Local
:
1458
case BoundKind.
Local
:
1530
case BoundKind.
Local
:
2624
case BoundKind.
Local
:
FlowAnalysis\LocalDataFlowPass.cs (1)
219
case BoundKind.
Local
:
FlowAnalysis\ReadWriteWalker.cs (1)
190
case BoundKind.
Local
:
Generated\BoundNodes.xml.Generated.cs (3)
4548
: base(BoundKind.
Local
, syntax, type, hasErrors)
4561
: base(BoundKind.
Local
, syntax, type)
9315
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_AssignmentOperator.cs (1)
235
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 (3)
579
case BoundKind.
Local
:
1759
if (argument.Kind == BoundKind.
Local
)
1848
if (argument.Kind == BoundKind.
Local
)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (4)
850
case BoundKind.
Local
:
1021
case BoundKind.
Local
:
1050
goto case BoundKind.
Local
;
1051
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (5)
561
if (node.LengthOrCountAccess.Kind is not BoundKind.
Local
|| receiver.Kind is not (BoundKind.
Local
or BoundKind.Parameter))
910
if (node.LengthOrCountAccess.Kind is not BoundKind.
Local
|| receiver.Kind is not (BoundKind.
Local
or BoundKind.Parameter))
1107
if ((rewriteFlags & captureLength) != 0 && lengthAccess.Kind is not BoundKind.
Local
)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
637
case BoundKind.
Local
:
Lowering\LocalRewriter\LocalRewriter.cs (1)
1028
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\MethodToClassRewriter.cs (2)
261
if (originalLeft.Kind != BoundKind.
Local
)
297
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
:
940
case BoundKind.
Local
:
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
620
if (node.Left.Kind != BoundKind.
Local
)
Operations\CSharpOperationFactory.cs (1)
42
case BoundKind.
Local
: