60 instantiations of BoundSequence
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder.cs (1)
922
: new
BoundSequence
(scopeDesignator, locals, ImmutableArray<BoundExpression>.Empty, expression, getType()) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
5865
var result = new
BoundSequence
(this.Syntax, locals, sideEffects, value, type, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (2)
1136
return new
BoundSequence
(
1259
rewrittenExceptionSource = new
BoundSequence
(
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
191
var sequence = new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
71
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
437
return new
BoundSequence
(
460
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (11)
106
return new
BoundSequence
(
869
result = new
BoundSequence
(
1115
return new
BoundSequence
(
1304
return new
BoundSequence
(
1413
return new
BoundSequence
(
1497
return new
BoundSequence
(
1639
return new
BoundSequence
(
1751
return new
BoundSequence
(
1812
return new
BoundSequence
(
1900
return new
BoundSequence
(
1981
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_Call.cs (3)
531
return new
BoundSequence
(
1796
argument = new
BoundSequence
(
1863
actualArguments[argIndex] = new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
528
return new
BoundSequence
(
775
return new
BoundSequence
(
1029
return new
BoundSequence
(
1433
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (4)
61
return new
BoundSequence
(
158
rewrittenAssignment = new
BoundSequence
(node.Syntax, eventTemps.ToImmutableAndFree(), sequence.ToImmutableAndFree(), condition, condition.Type!);
168
new
BoundSequence
(
237
return new
BoundSequence
(syntax, [binaryResult.LocalSymbol], [assignmentToTemp], assignment, assignment.Type);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
1266
return new
BoundSequence
(
1388
return new
BoundSequence
(
1546
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
188
return new
BoundSequence
(syntax, tempSymbols, sideEffects.ToImmutableAndFree(), marshalCall, marshalCall.Type!);
Lowering\LocalRewriter\LocalRewriter_FunctionPointerInvocation.cs (1)
60
rewrittenInvocation = new
BoundSequence
(rewrittenInvocation.Syntax, temps.ToImmutableAndFree(), sideEffects: ImmutableArray<BoundExpression>.Empty, rewrittenInvocation, node.Type);
Lowering\LocalRewriter\LocalRewriter_Index.cs (1)
61
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
230
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
89
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (2)
51
assignment = new
BoundSequence
(syntax, [rightResult.LocalSymbol], [assignmentToTemp], assignment, assignment.Type);
70
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
182
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (3)
104
rewrittenObjectCreation = new
BoundSequence
(
173
return new
BoundSequence
(withExpr.Syntax, temps.ToImmutableAndFree(), sideEffects.ToImmutableAndFree(), value, type);
304
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
118
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
543
args[i] = new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (9)
235
return new
BoundSequence
(
334
return new
BoundSequence
(
436
return new
BoundSequence
(
505
new
BoundSequence
(
516
return new
BoundSequence
(
683
return new
BoundSequence
(
708
var tempAssignedAndOperandValue = new
BoundSequence
(
722
return new
BoundSequence
(
871
return new
BoundSequence
(
Lowering\LocalRewriter\LoweredDynamicOperation.cs (1)
75
return new
BoundSequence
(_factory.Syntax, _temps, ImmutableArray.Create(SiteInitialization), SiteInvocation, _resultType) { WasCompilerGenerated = true };
Lowering\MethodToClassRewriter.cs (1)
311
return new
BoundSequence
(
Lowering\SyntheticBoundNodeFactory.cs (3)
1081
return new
BoundSequence
(Syntax, ImmutableArray<LocalSymbol>.Empty, sideEffects.AsImmutableOrNull(), result, resultType) { WasCompilerGenerated = true };
1090
: new
BoundSequence
(Syntax, locals, sideEffects, result, result.Type) { WasCompilerGenerated = true };
1882
return new
BoundSequence
(
83 references to BoundSequence
Microsoft.CodeAnalysis.CSharp (83)
BoundTree\BoundNodeExtensions.cs (2)
45
if (expression.Kind == BoundKind.Sequence && ((
BoundSequence
)expression).SideEffects.IsDefaultOrEmpty)
48
expression = ((
BoundSequence
)expression).Value;
BoundTree\BoundTreeVisitors.cs (1)
78
return VisitSequence(node as
BoundSequence
, arg);
CodeGen\CodeGenerator_HasHome.cs (1)
166
return HasHome(((
BoundSequence
)expression).Value, addressKind, containingSymbol, peVerifyCompatEnabled, stackLocalsOpt);
CodeGen\EmitAddress.cs (5)
103
return EmitSequenceAddress((
BoundSequence
)expression, addressKind, used);
207
if (passByCopyExpr.Expression is
BoundSequence
sequence)
382
private LocalDefinition EmitSequenceAddress(
BoundSequence
sequence, AddressKind addressKind, bool used)
392
private static LocalSymbol DigForValueLocal(
BoundSequence
topSequence, BoundExpression value)
407
return DigForValueLocal(topSequence, ((
BoundSequence
)value).Value);
CodeGen\EmitExpression.cs (19)
184
EmitSequenceExpression((
BoundSequence
)expression, used);
882
private void EmitSequenceExpression(
BoundSequence
sequence, bool used)
903
private void DefineLocals(
BoundSequence
sequence)
918
private void FreeLocals(
BoundSequence
sequence)
937
private void DefineAndRecordLocals(
BoundSequence
sequence)
958
private void CloseScopeAndKeepLocals(
BoundSequence
sequence)
968
private void EmitSideEffects(
BoundSequence
sequence)
1217
var result = isDereferencedWhenEmittedAsNotUsedExpression(((
BoundSequence
)receiver).Value);
1372
return FieldLoadPrefersRef(((
BoundSequence
)receiver).Value);
1665
var seqValue = ((
BoundSequence
)(receiver)).Value;
1695
var seqValue = ((
BoundSequence
)(receiver)).Value;
2215
while (receiver is
BoundSequence
sequence)
2350
return IsRef(((
BoundSequence
)receiver).Value);
3069
var
sequence = (
BoundSequence
)assignmentTarget;
3296
var
sequence = (
BoundSequence
)expression;
4105
var
sequence = (
BoundSequence
)expr;
CodeGen\EmitStatement.cs (7)
603
var
seq = (
BoundSequence
)condition;
623
private void EmitSequenceCondBranch(
BoundSequence
sequence, ref object dest, bool sense)
1160
var
seq = (
BoundSequence
)exceptionSource;
1289
BoundSequence
sequence = null;
1293
sequence = (
BoundSequence
)expression;
CodeGen\Optimizer.cs (7)
649
public override BoundNode VisitSequence(
BoundSequence
node)
756
private bool IsNestedLocalOfCompoundOperator(LocalSymbol local,
BoundSequence
node)
897
var
sequence = node.Left as
BoundSequence
;
1084
Debug.Assert(!IsIndirectAssignment(node.Update(((
BoundSequence
)node.Left).Value, node.Right, node.IsRef, node.Type)),
1227
while (unwrappedSequence is
BoundSequence
sequence)
1648
while (unwrappedSequence is
BoundSequence
sequence)
Compilation\CSharpSemanticModel.cs (1)
842
while (expression is
BoundSequence
sequence)
FlowAnalysis\AbstractFlowPass.cs (1)
3194
public override BoundNode VisitSequence(
BoundSequence
node)
FlowAnalysis\DefiniteAssignment.cs (1)
2253
public override BoundNode VisitSequence(
BoundSequence
node)
Generated\BoundNodes.xml.Generated.cs (10)
5861
public
BoundSequence
Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression value, TypeSymbol type)
5865
var
result = new BoundSequence(this.Syntax, locals, sideEffects, value, type, this.HasErrors);
9388
return VisitSequence((
BoundSequence
)node, arg);
9715
public virtual R VisitSequence(
BoundSequence
node, A arg) => this.DefaultVisit(node, arg);
9956
public virtual BoundNode? VisitSequence(
BoundSequence
node) => this.DefaultVisit(node);
10691
public override BoundNode? VisitSequence(
BoundSequence
node)
12093
public override BoundNode? VisitSequence(
BoundSequence
node)
14245
public override BoundNode? VisitSequence(
BoundSequence
node)
14250
BoundSequence
updatedNode;
16813
public override TreeDumperNode VisitSequence(
BoundSequence
node, object? arg) => new TreeDumperNode("sequence", null, new TreeDumperNode[]
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
434
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\ClosureConversion\ClosureConversion.cs (3)
1149
private
BoundSequence
RewriteSequence(
BoundSequence
node, ArrayBuilder<BoundExpression> prologue, ArrayBuilder<LocalSymbol> newLocals)
1301
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (2)
191
var
sequence = new BoundSequence(
216
if (node is
BoundSequence
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
273
var
sequence = (
BoundSequence
)rewrittenLeft;
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
1629
BoundSequence
seq = (
BoundSequence
)left;
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
664
/// - Otherwise, <paramref name="rewrittenReceiver"/> is changed to a <see cref="
BoundSequence
"/> node with no locals,
923
BoundSequence
{ Value: BoundLocal l } => l,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
244
var
sequence = (
BoundSequence
)rewrittenNode;
1378
BoundSequence
seq = (
BoundSequence
)operand;
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
270
if (originalReceiver != rewrittenReceiver && rewrittenReceiver is
BoundSequence
sequence)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
324
BoundSequence
seq = (
BoundSequence
)loweredOperand;
708
var
tempAssignedAndOperandValue = new BoundSequence(
Lowering\LocalRewriter\LocalRewriter.cs (1)
1090
return CanBePassedByReference(((
BoundSequence
)expr).Value);
Lowering\SpillSequenceSpiller.cs (4)
339
var
sequence = (
BoundSequence
)expression;
542
ReferenceTypeReceiver:
BoundSequence
1532
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
413
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\SyntheticBoundNodeFactory.cs (1)
1077
public
BoundSequence
Sequence(BoundExpression[] sideEffects, BoundExpression result, TypeSymbol? type = null)
Operations\CSharpOperationFactory.cs (1)
2302
if (boundExpressionStatement.Expression is
BoundSequence
sequence)