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