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