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)
5792var result = new BoundSequence(this.Syntax, locals, sideEffects, value, type, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (1)
1121return new BoundSequence(
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
190return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
71return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
342return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (10)
105return new BoundSequence( 850result = new BoundSequence( 1096return new BoundSequence( 1285return new BoundSequence( 1394return new BoundSequence( 1620return new BoundSequence( 1732return new BoundSequence( 1793return new BoundSequence( 1881return new BoundSequence( 1962return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
511return new BoundSequence( 1641actualArguments[argIndex] = new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
1195return new BoundSequence( 1317return new BoundSequence( 1471return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
89return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
182return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (4)
234return new BoundSequence( 333return new BoundSequence( 547var tempAssignedAndOperandValue = new BoundSequence( 710return new BoundSequence(
Lowering\LocalRewriter\LoweredDynamicOperation.cs (1)
75return new BoundSequence(_factory.Syntax, _temps, ImmutableArray.Create(SiteInitialization), SiteInvocation, _resultType) { WasCompilerGenerated = true };
Lowering\MethodToClassRewriter.cs (1)
534return new BoundSequence(
Lowering\SyntheticBoundNodeFactory.cs (2)
1030: new BoundSequence(Syntax, locals, sideEffects, result, result.Type) { WasCompilerGenerated = true }; 1842return new BoundSequence(
85 references to BoundSequence
Microsoft.CodeAnalysis.CSharp (85)
BoundTree\BoundNode.cs (1)
593public override BoundNode? VisitSequence(BoundSequence node)
BoundTree\BoundNode_Source.cs (1)
334case BoundSequence sequence:
BoundTree\BoundNodeExtensions.cs (2)
45if (expression.Kind == BoundKind.Sequence && ((BoundSequence)expression).SideEffects.IsDefaultOrEmpty) 48expression = ((BoundSequence)expression).Value;
BoundTree\BoundTreeVisitors.cs (1)
78return VisitSequence(node as BoundSequence, arg);
CodeGen\CodeGenerator_HasHome.cs (1)
112return HasHome(((BoundSequence)expression).Value, addressKind, containingSymbol, peVerifyCompatEnabled, stackLocalsOpt);
CodeGen\EmitAddress.cs (5)
97return EmitSequenceAddress((BoundSequence)expression, addressKind); 189if (passByCopyExpr.Expression is BoundSequence sequence) 341private LocalDefinition EmitSequenceAddress(BoundSequence sequence, AddressKind addressKind) 351private static LocalSymbol DigForValueLocal(BoundSequence topSequence, BoundExpression value) 365return DigForValueLocal(topSequence, ((BoundSequence)value).Value);
CodeGen\EmitExpression.cs (18)
190EmitSequenceExpression((BoundSequence)expression, used); 848private void EmitSequenceExpression(BoundSequence sequence, bool used) 869private void DefineLocals(BoundSequence sequence) 884private void FreeLocals(BoundSequence sequence) 903private void DefineAndRecordLocals(BoundSequence sequence) 924private void CloseScopeAndKeepLocals(BoundSequence sequence) 934private void EmitSideEffects(BoundSequence sequence) 1295return FieldLoadPrefersRef(((BoundSequence)receiver).Value); 1574var seqValue = ((BoundSequence)(receiver)).Value; 1604var seqValue = ((BoundSequence)(receiver)).Value; 2098while (receiver is BoundSequence sequence) 2229return IsRef(((BoundSequence)receiver).Value); 2916var sequence = (BoundSequence)assignmentTarget; 3127var sequence = (BoundSequence)expression; 3937var sequence = (BoundSequence)expr;
CodeGen\EmitStatement.cs (7)
603var seq = (BoundSequence)condition; 623private void EmitSequenceCondBranch(BoundSequence sequence, ref object dest, bool sense) 1137var seq = (BoundSequence)exceptionSource; 1262BoundSequence sequence = null; 1266sequence = (BoundSequence)expression;
CodeGen\Optimizer.cs (7)
650public override BoundNode VisitSequence(BoundSequence node) 757private bool IsNestedLocalOfCompoundOperator(LocalSymbol local, BoundSequence node) 898var sequence = node.Left as BoundSequence; 1073Debug.Assert(!IsIndirectAssignment(node.Update(((BoundSequence)node.Left).Value, node.Right, node.IsRef, node.Type)), 1216while (unwrappedSequence is BoundSequence sequence) 1635while (unwrappedSequence is BoundSequence sequence)
Compilation\CSharpSemanticModel.cs (1)
826while (expression is BoundSequence sequence)
FlowAnalysis\AbstractFlowPass.cs (1)
3151public override BoundNode VisitSequence(BoundSequence node)
FlowAnalysis\DefiniteAssignment.cs (1)
2279public override BoundNode VisitSequence(BoundSequence node)
Generated\BoundNodes.xml.Generated.cs (10)
5788public BoundSequence Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression value, TypeSymbol type) 5792var result = new BoundSequence(this.Syntax, locals, sideEffects, value, type, this.HasErrors); 9138return VisitSequence((BoundSequence)node, arg); 9457public virtual R VisitSequence(BoundSequence node, A arg) => this.DefaultVisit(node, arg); 9693public virtual BoundNode? VisitSequence(BoundSequence node) => this.DefaultVisit(node); 10406public override BoundNode? VisitSequence(BoundSequence node) 11672public override BoundNode? VisitSequence(BoundSequence node) 13749public override BoundNode? VisitSequence(BoundSequence node) 13754BoundSequence updatedNode; 16275public override TreeDumperNode VisitSequence(BoundSequence node, object? arg) => new TreeDumperNode("sequence", null, new TreeDumperNode[]
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
434public override BoundNode VisitSequence(BoundSequence node)
Lowering\ClosureConversion\ClosureConversion.cs (3)
1134private BoundSequence RewriteSequence(BoundSequence node, ArrayBuilder<BoundExpression> prologue, ArrayBuilder<LocalSymbol> newLocals) 1288public override BoundNode VisitSequence(BoundSequence node)
Lowering\LocalRewriter\LocalRewriter.cs (1)
1078return CanBePassedByReference(((BoundSequence)expr).Value);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
240var sequence = (BoundSequence)rewrittenLeft;
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
1610BoundSequence seq = (BoundSequence)left;
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
870BoundSequence { Value: BoundLocal l } => l,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
246var sequence = (BoundSequence)rewrittenNode; 1307BoundSequence seq = (BoundSequence)operand;
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
237if (originalReceiver != rewrittenReceiver && rewrittenReceiver is BoundSequence sequence)
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (2)
217case BoundSequence { SideEffects.Length: 0, Value: BoundCall sequenceCall } sequence: 240case BoundSequence
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
323BoundSequence seq = (BoundSequence)loweredOperand; 547var tempAssignedAndOperandValue = new BoundSequence(
Lowering\MethodToClassRewriter.cs (1)
164public override BoundNode VisitSequence(BoundSequence node)
Lowering\SpillSequenceSpiller.cs (4)
339var sequence = (BoundSequence)expression; 542ReferenceTypeReceiver: BoundSequence 1448public override BoundNode VisitSequence(BoundSequence node)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
392public override BoundNode VisitSequence(BoundSequence node)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
277public override BoundNode VisitSequence(BoundSequence node)
Lowering\SyntheticBoundNodeFactory.cs (1)
1017public BoundSequence Sequence(BoundExpression[] sideEffects, BoundExpression result, TypeSymbol? type = null)
Operations\CSharpOperationFactory.cs (1)
2217if (boundExpressionStatement.Expression is BoundSequence sequence)