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)
5861var result = new BoundSequence(this.Syntax, locals, sideEffects, value, type, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (2)
1136return new BoundSequence( 1259rewrittenExceptionSource = new BoundSequence(
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
191var sequence = new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
71return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
423return new BoundSequence( 446return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (11)
106return new BoundSequence( 869result = new BoundSequence( 1115return new BoundSequence( 1304return new BoundSequence( 1413return new BoundSequence( 1497return new BoundSequence( 1639return new BoundSequence( 1751return new BoundSequence( 1812return new BoundSequence( 1900return new BoundSequence( 1981return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_Call.cs (3)
529return new BoundSequence( 1660argument = new BoundSequence( 1727actualArguments[argIndex] = new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
463return new BoundSequence( 710return new BoundSequence( 964return new BoundSequence( 1363return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (4)
61return new BoundSequence( 158rewrittenAssignment = new BoundSequence(node.Syntax, eventTemps.ToImmutableAndFree(), sequence.ToImmutableAndFree(), condition, condition.Type!); 168new BoundSequence( 237return new BoundSequence(syntax, [binaryResult.LocalSymbol], [assignmentToTemp], assignment, assignment.Type);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
1266return new BoundSequence( 1388return new BoundSequence( 1546return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
188return new BoundSequence(syntax, tempSymbols, sideEffects.ToImmutableAndFree(), marshalCall, marshalCall.Type!);
Lowering\LocalRewriter\LocalRewriter_FunctionPointerInvocation.cs (1)
60rewrittenInvocation = new BoundSequence(rewrittenInvocation.Syntax, temps.ToImmutableAndFree(), sideEffects: ImmutableArray<BoundExpression>.Empty, rewrittenInvocation, node.Type);
Lowering\LocalRewriter\LocalRewriter_Index.cs (1)
61return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
230return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_IsOperator.cs (1)
89return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (2)
51assignment = new BoundSequence(syntax, [rightResult.LocalSymbol], [assignmentToTemp], assignment, assignment.Type); 70return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
182return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (3)
104rewrittenObjectCreation = new BoundSequence( 173return new BoundSequence(withExpr.Syntax, temps.ToImmutableAndFree(), sideEffects.ToImmutableAndFree(), value, type); 304return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
118return new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
543args[i] = new BoundSequence(
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (9)
235return new BoundSequence( 334return new BoundSequence( 436return new BoundSequence( 505new BoundSequence( 516return new BoundSequence( 683return new BoundSequence( 708var tempAssignedAndOperandValue = new BoundSequence( 722return new BoundSequence( 871return new BoundSequence(
Lowering\LocalRewriter\LoweredDynamicOperation.cs (1)
75return new BoundSequence(_factory.Syntax, _temps, ImmutableArray.Create(SiteInitialization), SiteInvocation, _resultType) { WasCompilerGenerated = true };
Lowering\MethodToClassRewriter.cs (1)
311return new BoundSequence(
Lowering\SyntheticBoundNodeFactory.cs (3)
1060return new BoundSequence(Syntax, ImmutableArray<LocalSymbol>.Empty, sideEffects.AsImmutableOrNull(), result, resultType) { WasCompilerGenerated = true }; 1069: new BoundSequence(Syntax, locals, sideEffects, result, result.Type) { WasCompilerGenerated = true }; 1861return new BoundSequence(
85 references to BoundSequence
Microsoft.CodeAnalysis.CSharp (85)
BoundTree\BoundNode.cs (1)
649public override BoundNode? VisitSequence(BoundSequence node)
BoundTree\BoundNode_Source.cs (1)
322case 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); 859private void EmitSequenceExpression(BoundSequence sequence, bool used) 880private void DefineLocals(BoundSequence sequence) 895private void FreeLocals(BoundSequence sequence) 914private void DefineAndRecordLocals(BoundSequence sequence) 935private void CloseScopeAndKeepLocals(BoundSequence sequence) 945private void EmitSideEffects(BoundSequence sequence) 1306return FieldLoadPrefersRef(((BoundSequence)receiver).Value); 1585var seqValue = ((BoundSequence)(receiver)).Value; 1615var seqValue = ((BoundSequence)(receiver)).Value; 2135while (receiver is BoundSequence sequence) 2267return IsRef(((BoundSequence)receiver).Value); 2966var sequence = (BoundSequence)assignmentTarget; 3177var sequence = (BoundSequence)expression; 3986var sequence = (BoundSequence)expr;
CodeGen\EmitStatement.cs (7)
603var seq = (BoundSequence)condition; 623private void EmitSequenceCondBranch(BoundSequence sequence, ref object dest, bool sense) 1160var seq = (BoundSequence)exceptionSource; 1289BoundSequence sequence = null; 1293sequence = (BoundSequence)expression;
CodeGen\Optimizer.cs (7)
649public override BoundNode VisitSequence(BoundSequence node) 756private bool IsNestedLocalOfCompoundOperator(LocalSymbol local, BoundSequence node) 897var sequence = node.Left as BoundSequence; 1084Debug.Assert(!IsIndirectAssignment(node.Update(((BoundSequence)node.Left).Value, node.Right, node.IsRef, node.Type)), 1227while (unwrappedSequence is BoundSequence sequence) 1648while (unwrappedSequence is BoundSequence sequence)
Compilation\CSharpSemanticModel.cs (1)
842while (expression is BoundSequence sequence)
FlowAnalysis\AbstractFlowPass.cs (1)
3184public override BoundNode VisitSequence(BoundSequence node)
FlowAnalysis\DefiniteAssignment.cs (1)
2244public override BoundNode VisitSequence(BoundSequence node)
Generated\BoundNodes.xml.Generated.cs (10)
5857public BoundSequence Update(ImmutableArray<LocalSymbol> locals, ImmutableArray<BoundExpression> sideEffects, BoundExpression value, TypeSymbol type) 5861var result = new BoundSequence(this.Syntax, locals, sideEffects, value, type, this.HasErrors); 9384return VisitSequence((BoundSequence)node, arg); 9711public virtual R VisitSequence(BoundSequence node, A arg) => this.DefaultVisit(node, arg); 9952public virtual BoundNode? VisitSequence(BoundSequence node) => this.DefaultVisit(node); 10687public override BoundNode? VisitSequence(BoundSequence node) 12089public override BoundNode? VisitSequence(BoundSequence node) 14241public override BoundNode? VisitSequence(BoundSequence node) 14246BoundSequence updatedNode; 16808public 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)
1149private BoundSequence RewriteSequence(BoundSequence node, ArrayBuilder<BoundExpression> prologue, ArrayBuilder<LocalSymbol> newLocals) 1301public override BoundNode VisitSequence(BoundSequence node)
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (2)
191var sequence = new BoundSequence( 216if (node is BoundSequence
Lowering\LocalRewriter\LocalRewriter.cs (1)
1090return CanBePassedByReference(((BoundSequence)expr).Value);
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
259var sequence = (BoundSequence)rewrittenLeft;
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (2)
1629BoundSequence seq = (BoundSequence)left;
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
659/// - Otherwise, <paramref name="rewrittenReceiver"/> is changed to a <see cref="BoundSequence"/> node with no locals, 891BoundSequence { Value: BoundLocal l } => l,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
244var sequence = (BoundSequence)rewrittenNode; 1378BoundSequence seq = (BoundSequence)operand;
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
270if (originalReceiver != rewrittenReceiver && rewrittenReceiver is BoundSequence sequence)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (3)
324BoundSequence seq = (BoundSequence)loweredOperand; 708var tempAssignedAndOperandValue = new BoundSequence(
Lowering\SpillSequenceSpiller.cs (4)
339var sequence = (BoundSequence)expression; 542ReferenceTypeReceiver: BoundSequence 1462public override BoundNode VisitSequence(BoundSequence node)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
413public override BoundNode VisitSequence(BoundSequence node)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
281public override BoundNode VisitSequence(BoundSequence node)
Lowering\SyntheticBoundNodeFactory.cs (1)
1056public BoundSequence Sequence(BoundExpression[] sideEffects, BoundExpression result, TypeSymbol? type = null)
Operations\CSharpOperationFactory.cs (1)
2283if (boundExpressionStatement.Expression is BoundSequence sequence)