85 references to Local
Microsoft.CodeAnalysis.CSharp (85)
Binder\Binder.ValueChecks.cs (6)
495case BoundKind.Local: 813case BoundKind.Local: 3371case BoundKind.Local: 3692case BoundKind.Local: 4086case BoundKind.Local: 4777case BoundKind.Local:
Binder\Binder_Invocation.cs (1)
2091case BoundKind.Local:
Binder\Binder_Operators.cs (1)
2667case BoundKind.Local:
Binder\Binder_Statements.cs (1)
1570else 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\CodeGenerator_HasHome.cs (1)
90case BoundKind.Local:
CodeGen\EmitAddress.cs (2)
32case BoundKind.Local: 355case 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)
4507: base(BoundKind.Local, syntax, type, hasErrors) 4520: base(BoundKind.Local, syntax, type) 9067case 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)
556goto case BoundKind.Local; 558case BoundKind.Local: 1537if (argument.Kind == BoundKind.Local) 1626if (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)
829if (node.Left.Kind != BoundKind.Local)
Operations\CSharpOperationFactory.cs (1)
43case BoundKind.Local: