3 instantiations of BoundCollectionExpressionSpreadElement
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (2)
5362return new BoundCollectionExpressionSpreadElement( 5398return new BoundCollectionExpressionSpreadElement(
Generated\BoundNodes.xml.Generated.cs (1)
6563var result = new BoundCollectionExpressionSpreadElement(this.Syntax, expression, expressionPlaceholder, conversion, enumeratorInfoOpt, lengthOrCount, elementPlaceholder, iteratorBody, this.HasErrors);
43 references to BoundCollectionExpressionSpreadElement
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder_Attributes.cs (1)
891if (node is BoundCollectionExpressionSpreadElement spread)
Binder\Binder_Conversions.cs (4)
918BoundNode convertedElement = element is BoundCollectionExpressionSpreadElement spreadElement ? 959var convertedElement = element is BoundCollectionExpressionSpreadElement spreadElement ? 992BoundNode bindSpreadElement(BoundCollectionExpressionSpreadElement element, TypeSymbol elementType, Conversion elementConversion, BindingDiagnosticBag diagnostics) 1798if (element is BoundCollectionExpressionSpreadElement spreadElement)
Binder\Binder_Expressions.cs (2)
6644private BoundCollectionExpressionSpreadElement BindCollectionExpressionSpreadElementAddMethod( 6646BoundCollectionExpressionSpreadElement element,
Binder\Semantics\Conversions\Conversions.cs (2)
224BoundCollectionExpressionSpreadElement spreadElement => GetCollectionExpressionSpreadElementConversion(spreadElement, elementType, ref useSiteInfo), 231BoundCollectionExpressionSpreadElement element,
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
689if (element is BoundCollectionExpressionSpreadElement spread) 701BoundCollectionExpressionSpreadElement argument,
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3138if (element is BoundCollectionExpressionSpreadElement spread)
BoundTree\BoundCollectionExpression.cs (1)
22if (Elements[i] is BoundCollectionExpressionSpreadElement spreadElement)
FlowAnalysis\AbstractFlowPass.cs (1)
2101public override BoundNode VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node)
FlowAnalysis\NullableWalker.cs (2)
3954case BoundCollectionExpressionSpreadElement spread: 4058public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node)
FlowAnalysis\NullableWalker.DebugVerifier.cs (2)
129if (element is BoundCollectionExpressionSpreadElement spread) 150public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node)
Generated\BoundNodes.xml.Generated.cs (8)
6559public BoundCollectionExpressionSpreadElement Update(BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount, BoundValuePlaceholder? elementPlaceholder, BoundStatement? iteratorBody) 6563var result = new BoundCollectionExpressionSpreadElement(this.Syntax, expression, expressionPlaceholder, conversion, enumeratorInfoOpt, lengthOrCount, elementPlaceholder, iteratorBody, this.HasErrors); 9240return VisitCollectionExpressionSpreadElement((BoundCollectionExpressionSpreadElement)node, arg); 9541public virtual R VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node, A arg) => this.DefaultVisit(node, arg); 9777public virtual BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) => this.DefaultVisit(node); 10566public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) 11980public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) 16693public override TreeDumperNode VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node, object? arg) => new TreeDumperNode("collectionExpressionSpreadElement", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (15)
101if (element is BoundCollectionExpressionSpreadElement spreadElement) 119if (element is BoundCollectionExpressionSpreadElement spreadElement) 148if (node.Elements is not [BoundCollectionExpressionSpreadElement singleSpread]) 208Elements: [BoundCollectionExpressionSpreadElement { Expression: { Type: NamedTypeSymbol spreadType } expr }], 410var rewrittenElement = element is BoundCollectionExpressionSpreadElement spreadElement ? 726if (node is { Elements: [BoundCollectionExpressionSpreadElement { Expression: { } spreadExpression } spreadElement] } 910tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression arrayTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1039BoundCollectionExpressionSpreadElement spreadElement, 1271tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression spanTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1299tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression listTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1329var expression = element is BoundCollectionExpressionSpreadElement spreadElement ? 1358Func<ArrayBuilder<BoundExpression>, BoundExpression, BoundCollectionExpressionSpreadElement, BoundExpression, bool> tryOptimizeSpreadElement) 1367if (element is BoundCollectionExpressionSpreadElement spreadElement) 1407if (element is BoundCollectionExpressionSpreadElement spreadElement) 1446BoundCollectionExpressionSpreadElement node,
Operations\CSharpOperationFactory.cs (2)
1260return element is BoundCollectionExpressionSpreadElement spreadElement ? 1265private ISpreadOperation CreateBoundCollectionExpressionSpreadElement(BoundCollectionExpression expr, BoundCollectionExpressionSpreadElement element)