49 instantiations of BoundSequence
Microsoft.CodeAnalysis.CSharp (49)
Binder\Binder.cs (1)
851
: new
BoundSequence
(scopeDesignator, locals, ImmutableArray<BoundExpression>.Empty, expression, getType()) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
5680
var result = new
BoundSequence
(this.Syntax, locals, sideEffects, value, type, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (2)
1105
return new
BoundSequence
(
1230
rewrittenExceptionSource = new
BoundSequence
(
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
209
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
71
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
350
return new
BoundSequence
(
371
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (11)
103
return new
BoundSequence
(
837
result = new
BoundSequence
(
1045
return new
BoundSequence
(
1204
return new
BoundSequence
(
1313
return new
BoundSequence
(
1397
return new
BoundSequence
(
1539
return new
BoundSequence
(
1652
return new
BoundSequence
(
1713
return new
BoundSequence
(
1801
return new
BoundSequence
(
1882
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_Call.cs (3)
276
return new
BoundSequence
(
1446
arguments[a] = new
BoundSequence
(
1514
actualArguments[argIndex] = new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
97
rewrittenAssignment = new
BoundSequence
(node.Syntax, eventTemps.ToImmutableAndFree(), sequence.ToImmutableAndFree(), condition, condition.Type!);
107
new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
1053
return new
BoundSequence
(
1170
return new
BoundSequence
(
1314
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
179
return new
BoundSequence
(syntax, tempSymbols, sideEffects.ToImmutableAndFree(), marshalCall, marshalCall.Type!);
Lowering\LocalRewriter\LocalRewriter_FunctionPointerInvocation.cs (1)
56
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)
160
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
89
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (1)
50
new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
173
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (3)
97
rewrittenObjectCreation = new
BoundSequence
(
166
return new
BoundSequence
(withExpr.Syntax, temps.ToImmutableAndFree(), sideEffects.ToImmutableAndFree(), value, type);
292
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
118
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (6)
229
return new
BoundSequence
(
328
return new
BoundSequence
(
517
return new
BoundSequence
(
541
var tempAssignedAndOperandValue = new
BoundSequence
(
555
return new
BoundSequence
(
693
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)
525
return new
BoundSequence
(
Lowering\SyntheticBoundNodeFactory.cs (3)
958
return new
BoundSequence
(Syntax, ImmutableArray<LocalSymbol>.Empty, sideEffects.AsImmutableOrNull(), result, resultType) { WasCompilerGenerated = true };
967
: new
BoundSequence
(Syntax, locals, sideEffects, result, result.Type) { WasCompilerGenerated = true };
1714
return new
BoundSequence
(
83 references to BoundSequence
Microsoft.CodeAnalysis.CSharp (83)
Binder\Binder.ValueChecks.cs (1)
4654
return HasHome(((
BoundSequence
)expression).Value, addressKind, containingSymbol, peVerifyCompatEnabled, stackLocalsOpt);
BoundTree\BoundNode.cs (1)
531
public override BoundNode? VisitSequence(
BoundSequence
node)
BoundTree\BoundNode_Source.cs (1)
313
case
BoundSequence
sequence:
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\EmitAddress.cs (5)
99
return EmitSequenceAddress((
BoundSequence
)expression, addressKind);
186
if (passByCopyExpr.Expression is
BoundSequence
sequence)
338
private LocalDefinition EmitSequenceAddress(
BoundSequence
sequence, AddressKind addressKind)
348
private static LocalSymbol DigForValueLocal(
BoundSequence
topSequence, BoundExpression value)
362
return DigForValueLocal(topSequence, ((
BoundSequence
)value).Value);
CodeGen\EmitExpression.cs (18)
185
EmitSequenceExpression((
BoundSequence
)expression, used);
834
private void EmitSequenceExpression(
BoundSequence
sequence, bool used)
855
private void DefineLocals(
BoundSequence
sequence)
870
private void FreeLocals(
BoundSequence
sequence)
889
private void DefineAndRecordLocals(
BoundSequence
sequence)
910
private void CloseScopeAndKeepLocals(
BoundSequence
sequence)
920
private void EmitSideEffects(
BoundSequence
sequence)
1255
return FieldLoadPrefersRef(((
BoundSequence
)receiver).Value);
1534
var seqValue = ((
BoundSequence
)(receiver)).Value;
1564
var seqValue = ((
BoundSequence
)(receiver)).Value;
1878
while (receiver is
BoundSequence
sequence)
2009
return IsRef(((
BoundSequence
)receiver).Value);
2698
var
sequence = (
BoundSequence
)assignmentTarget;
2909
var
sequence = (
BoundSequence
)expression;
3663
var
sequence = (
BoundSequence
)expr;
CodeGen\EmitStatement.cs (7)
603
var
seq = (
BoundSequence
)condition;
623
private void EmitSequenceCondBranch(
BoundSequence
sequence, ref object dest, bool sense)
1112
var
seq = (
BoundSequence
)exceptionSource;
1237
BoundSequence
sequence = null;
1241
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
;
1072
Debug.Assert(!IsIndirectAssignment(node.Update(((
BoundSequence
)node.Left).Value, node.Right, node.IsRef, node.Type)),
1152
while (unwrappedSequence is
BoundSequence
sequence)
1568
while (unwrappedSequence is
BoundSequence
sequence)
Compilation\CSharpSemanticModel.cs (1)
826
while (expression is
BoundSequence
sequence)
FlowAnalysis\AbstractFlowPass.cs (1)
2959
public override BoundNode VisitSequence(
BoundSequence
node)
FlowAnalysis\DefiniteAssignment.cs (1)
2123
public override BoundNode VisitSequence(
BoundSequence
node)
Generated\BoundNodes.xml.Generated.cs (10)
5676
public
BoundSequence
Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression value, TypeSymbol type)
5680
var
result = new BoundSequence(this.Syntax, locals, sideEffects, value, type, this.HasErrors);
8813
return VisitSequence((
BoundSequence
)node, arg);
9119
public virtual R VisitSequence(
BoundSequence
node, A arg) => this.DefaultVisit(node, arg);
9347
public virtual BoundNode? VisitSequence(
BoundSequence
node) => this.DefaultVisit(node);
10048
public override BoundNode? VisitSequence(
BoundSequence
node)
11276
public override BoundNode? VisitSequence(
BoundSequence
node)
13281
public override BoundNode? VisitSequence(
BoundSequence
node)
13286
BoundSequence
updatedNode;
15714
public override TreeDumperNode VisitSequence(
BoundSequence
node, object? arg) => new TreeDumperNode("sequence", null, new TreeDumperNode[]
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
416
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\ClosureConversion\ClosureConversion.cs (3)
1118
private
BoundSequence
RewriteSequence(
BoundSequence
node, ArrayBuilder<BoundExpression> prologue, ArrayBuilder<LocalSymbol> newLocals)
1272
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\LocalRewriter\LocalRewriter.cs (1)
951
return CanBePassedByReference(((
BoundSequence
)expr).Value);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
244
var
sequence = (
BoundSequence
)rewrittenLeft;
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
1529
BoundSequence
seq = (
BoundSequence
)left;
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
628
BoundSequence
{ Value: BoundLocal l } => l,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
239
var
sequence = (
BoundSequence
)rewrittenNode;
1160
BoundSequence
seq = (
BoundSequence
)operand;
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
233
if (originalReceiver != rewrittenReceiver && rewrittenReceiver is
BoundSequence
sequence)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
318
BoundSequence
seq = (
BoundSequence
)loweredOperand;
541
var
tempAssignedAndOperandValue = new BoundSequence(
Lowering\MethodToClassRewriter.cs (1)
164
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\SpillSequenceSpiller.cs (4)
340
var
sequence = (
BoundSequence
)expression;
471
ReferenceTypeReceiver:
BoundSequence
1356
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
366
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
272
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\SyntheticBoundNodeFactory.cs (1)
954
public
BoundSequence
Sequence(BoundExpression[] sideEffects, BoundExpression result, TypeSymbol? type = null)
Operations\CSharpOperationFactory.cs (1)
2106
if (boundExpressionStatement.Expression is
BoundSequence
sequence)