3 instantiations of BoundCollectionExpressionSpreadElement
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (2)
5391return new BoundCollectionExpressionSpreadElement( 5427return new BoundCollectionExpressionSpreadElement(
Generated\BoundNodes.xml.Generated.cs (1)
6639var result = new BoundCollectionExpressionSpreadElement(this.Syntax, expression, expressionPlaceholder, conversion, enumeratorInfoOpt, lengthOrCount, elementPlaceholder, iteratorBody, this.HasErrors);
44 references to BoundCollectionExpressionSpreadElement
Microsoft.CodeAnalysis.CSharp (44)
Binder\Binder_Attributes.cs (1)
891if (node is BoundCollectionExpressionSpreadElement spread)
Binder\Binder_Conversions.cs (5)
1008builder.Add(element is BoundCollectionExpressionSpreadElement spreadElement 1098builder.Add(element is BoundCollectionExpressionSpreadElement spreadElement ? 1119static BoundCollectionExpressionSpreadElement bindSpreadElement( 1120ref readonly CollectionExpressionConverter @this, BoundCollectionExpressionSpreadElement element, TypeSymbol elementType, Conversion elementConversion) 2328if (element is BoundCollectionExpressionSpreadElement spreadElement)
Binder\Binder_Expressions.cs (2)
6731private BoundCollectionExpressionSpreadElement BindCollectionExpressionSpreadElementAddMethod( 6733BoundCollectionExpressionSpreadElement element,
Binder\Semantics\Conversions\Conversions.cs (2)
225BoundCollectionExpressionSpreadElement spreadElement => GetCollectionExpressionSpreadElementConversion(spreadElement, elementType, ref useSiteInfo), 232BoundCollectionExpressionSpreadElement element,
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
689if (element is BoundCollectionExpressionSpreadElement spread) 701BoundCollectionExpressionSpreadElement argument,
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3139if (element is BoundCollectionExpressionSpreadElement spread)
BoundTree\BoundCollectionExpression.cs (1)
87if (Elements[i] is BoundCollectionExpressionSpreadElement spreadElement)
FlowAnalysis\AbstractFlowPass.cs (1)
2102public override BoundNode VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node)
FlowAnalysis\NullableWalker.cs (2)
4072case BoundCollectionExpressionSpreadElement spread: 4191public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node)
FlowAnalysis\NullableWalker.DebugVerifier.cs (2)
131if (element is BoundCollectionExpressionSpreadElement spread) 152public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node)
Generated\BoundNodes.xml.Generated.cs (8)
6635public BoundCollectionExpressionSpreadElement Update(BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount, BoundValuePlaceholder? elementPlaceholder, BoundStatement? iteratorBody) 6639var result = new BoundCollectionExpressionSpreadElement(this.Syntax, expression, expressionPlaceholder, conversion, enumeratorInfoOpt, lengthOrCount, elementPlaceholder, iteratorBody, this.HasErrors); 9320return VisitCollectionExpressionSpreadElement((BoundCollectionExpressionSpreadElement)node, arg); 9623public virtual R VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node, A arg) => this.DefaultVisit(node, arg); 9861public virtual BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) => this.DefaultVisit(node); 10658public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) 12082public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) 16825public override TreeDumperNode VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node, object? arg) => new TreeDumperNode("collectionExpressionSpreadElement", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (15)
126if (element is BoundCollectionExpressionSpreadElement spreadElement) 144if (element is BoundCollectionExpressionSpreadElement spreadElement) 173if (node.Elements is not [BoundCollectionExpressionSpreadElement singleSpread]) 233Elements: [BoundCollectionExpressionSpreadElement { Expression: { Type: NamedTypeSymbol spreadType } expr }], 441var rewrittenElement = element is BoundCollectionExpressionSpreadElement spreadElement ? 760if (node is { Elements: [BoundCollectionExpressionSpreadElement { Expression: { } spreadExpression } spreadElement] } 944tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression arrayTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1073BoundCollectionExpressionSpreadElement spreadElement, 1315tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression spanTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1343tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression listTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1373var expression = element is BoundCollectionExpressionSpreadElement spreadElement ? 1402Func<ArrayBuilder<BoundExpression>, BoundExpression, BoundCollectionExpressionSpreadElement, BoundExpression, bool> tryOptimizeSpreadElement) 1411if (element is BoundCollectionExpressionSpreadElement spreadElement) 1451if (element is BoundCollectionExpressionSpreadElement spreadElement) 1490BoundCollectionExpressionSpreadElement node,
Operations\CSharpOperationFactory.cs (2)
1310return element is BoundCollectionExpressionSpreadElement spreadElement ? 1315private ISpreadOperation CreateBoundCollectionExpressionSpreadElement(BoundCollectionExpression expr, BoundCollectionExpressionSpreadElement element)