31 instantiations of BoundSequence
Microsoft.CodeAnalysis.CSharp (31)
Binder\Binder.cs (1)
862
: new
BoundSequence
(scopeDesignator, locals, ImmutableArray<BoundExpression>.Empty, expression, getType()) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
5790
var result = new
BoundSequence
(this.Syntax, locals, sideEffects, value, type, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (1)
1121
return new
BoundSequence
(
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
190
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
71
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
342
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (10)
105
return new
BoundSequence
(
856
result = new
BoundSequence
(
1102
return new
BoundSequence
(
1291
return new
BoundSequence
(
1400
return new
BoundSequence
(
1626
return new
BoundSequence
(
1738
return new
BoundSequence
(
1799
return new
BoundSequence
(
1887
return new
BoundSequence
(
1968
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
511
return new
BoundSequence
(
1641
actualArguments[argIndex] = new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
1193
return new
BoundSequence
(
1315
return new
BoundSequence
(
1469
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
89
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
182
return new
BoundSequence
(
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (4)
234
return new
BoundSequence
(
333
return new
BoundSequence
(
547
var tempAssignedAndOperandValue = new
BoundSequence
(
710
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)
534
return new
BoundSequence
(
Lowering\SyntheticBoundNodeFactory.cs (2)
1038
: new
BoundSequence
(Syntax, locals, sideEffects, result, result.Type) { WasCompilerGenerated = true };
1850
return new
BoundSequence
(
83 references to BoundSequence
Microsoft.CodeAnalysis.CSharp (83)
BoundTree\BoundNode.cs (1)
593
public override BoundNode? VisitSequence(
BoundSequence
node)
BoundTree\BoundNode_Source.cs (1)
334
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\CodeGenerator_HasHome.cs (1)
112
return HasHome(((
BoundSequence
)expression).Value, addressKind, containingSymbol, peVerifyCompatEnabled, stackLocalsOpt);
CodeGen\EmitAddress.cs (5)
97
return EmitSequenceAddress((
BoundSequence
)expression, addressKind);
189
if (passByCopyExpr.Expression is
BoundSequence
sequence)
341
private LocalDefinition EmitSequenceAddress(
BoundSequence
sequence, AddressKind addressKind)
351
private static LocalSymbol DigForValueLocal(
BoundSequence
topSequence, BoundExpression value)
365
return DigForValueLocal(topSequence, ((
BoundSequence
)value).Value);
CodeGen\EmitExpression.cs (18)
190
EmitSequenceExpression((
BoundSequence
)expression, used);
848
private void EmitSequenceExpression(
BoundSequence
sequence, bool used)
869
private void DefineLocals(
BoundSequence
sequence)
884
private void FreeLocals(
BoundSequence
sequence)
903
private void DefineAndRecordLocals(
BoundSequence
sequence)
924
private void CloseScopeAndKeepLocals(
BoundSequence
sequence)
934
private void EmitSideEffects(
BoundSequence
sequence)
1295
return FieldLoadPrefersRef(((
BoundSequence
)receiver).Value);
1574
var seqValue = ((
BoundSequence
)(receiver)).Value;
1604
var seqValue = ((
BoundSequence
)(receiver)).Value;
2098
while (receiver is
BoundSequence
sequence)
2229
return IsRef(((
BoundSequence
)receiver).Value);
2916
var
sequence = (
BoundSequence
)assignmentTarget;
3127
var
sequence = (
BoundSequence
)expression;
3963
var
sequence = (
BoundSequence
)expr;
CodeGen\EmitStatement.cs (7)
603
var
seq = (
BoundSequence
)condition;
623
private void EmitSequenceCondBranch(
BoundSequence
sequence, ref object dest, bool sense)
1137
var
seq = (
BoundSequence
)exceptionSource;
1262
BoundSequence
sequence = null;
1266
sequence = (
BoundSequence
)expression;
CodeGen\Optimizer.cs (7)
650
public override BoundNode VisitSequence(
BoundSequence
node)
757
private bool IsNestedLocalOfCompoundOperator(LocalSymbol local,
BoundSequence
node)
898
var
sequence = node.Left as
BoundSequence
;
1073
Debug.Assert(!IsIndirectAssignment(node.Update(((
BoundSequence
)node.Left).Value, node.Right, node.IsRef, node.Type)),
1216
while (unwrappedSequence is
BoundSequence
sequence)
1635
while (unwrappedSequence is
BoundSequence
sequence)
Compilation\CSharpSemanticModel.cs (1)
826
while (expression is
BoundSequence
sequence)
FlowAnalysis\AbstractFlowPass.cs (1)
3155
public override BoundNode VisitSequence(
BoundSequence
node)
FlowAnalysis\DefiniteAssignment.cs (1)
2279
public override BoundNode VisitSequence(
BoundSequence
node)
Generated\BoundNodes.xml.Generated.cs (10)
5786
public
BoundSequence
Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression value, TypeSymbol type)
5790
var
result = new BoundSequence(this.Syntax, locals, sideEffects, value, type, this.HasErrors);
9172
return VisitSequence((
BoundSequence
)node, arg);
9491
public virtual R VisitSequence(
BoundSequence
node, A arg) => this.DefaultVisit(node, arg);
9727
public virtual BoundNode? VisitSequence(
BoundSequence
node) => this.DefaultVisit(node);
10440
public override BoundNode? VisitSequence(
BoundSequence
node)
11706
public override BoundNode? VisitSequence(
BoundSequence
node)
13782
public override BoundNode? VisitSequence(
BoundSequence
node)
13787
BoundSequence
updatedNode;
16307
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)
1134
private
BoundSequence
RewriteSequence(
BoundSequence
node, ArrayBuilder<BoundExpression> prologue, ArrayBuilder<LocalSymbol> newLocals)
1288
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\LocalRewriter\LocalRewriter.cs (1)
1078
return CanBePassedByReference(((
BoundSequence
)expr).Value);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
240
var
sequence = (
BoundSequence
)rewrittenLeft;
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
1616
BoundSequence
seq = (
BoundSequence
)left;
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
870
BoundSequence
{ Value: BoundLocal l } => l,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
244
var
sequence = (
BoundSequence
)rewrittenNode;
1305
BoundSequence
seq = (
BoundSequence
)operand;
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
237
if (originalReceiver != rewrittenReceiver && rewrittenReceiver is
BoundSequence
sequence)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
323
BoundSequence
seq = (
BoundSequence
)loweredOperand;
547
var
tempAssignedAndOperandValue = new BoundSequence(
Lowering\MethodToClassRewriter.cs (1)
164
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\SpillSequenceSpiller.cs (4)
339
var
sequence = (
BoundSequence
)expression;
542
ReferenceTypeReceiver:
BoundSequence
1448
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
392
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
277
public override BoundNode VisitSequence(
BoundSequence
node)
Lowering\SyntheticBoundNodeFactory.cs (1)
1025
public
BoundSequence
Sequence(BoundExpression[] sideEffects, BoundExpression result, TypeSymbol? type = null)
Operations\CSharpOperationFactory.cs (1)
2217
if (boundExpressionStatement.Expression is
BoundSequence
sequence)