3 instantiations of BoundCollectionExpressionSpreadElement
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (2)
5321return new BoundCollectionExpressionSpreadElement( 5357return new BoundCollectionExpressionSpreadElement(
Generated\BoundNodes.xml.Generated.cs (1)
6538var result = new BoundCollectionExpressionSpreadElement(this.Syntax, expression, expressionPlaceholder, conversion, enumeratorInfoOpt, lengthOrCount, elementPlaceholder, iteratorBody, this.HasErrors);
42 references to BoundCollectionExpressionSpreadElement
Microsoft.CodeAnalysis.CSharp (42)
Binder\Binder_Attributes.cs (1)
891if (node is BoundCollectionExpressionSpreadElement spread)
Binder\Binder_Conversions.cs (4)
912BoundNode convertedElement = element is BoundCollectionExpressionSpreadElement spreadElement ? 953var convertedElement = element is BoundCollectionExpressionSpreadElement spreadElement ? 986BoundNode bindSpreadElement(BoundCollectionExpressionSpreadElement element, TypeSymbol elementType, Conversion elementConversion, BindingDiagnosticBag diagnostics) 1792if (element is BoundCollectionExpressionSpreadElement spreadElement)
Binder\Binder_Expressions.cs (2)
6603private BoundCollectionExpressionSpreadElement BindCollectionExpressionSpreadElementAddMethod( 6605BoundCollectionExpressionSpreadElement element,
Binder\Semantics\Conversions\Conversions.cs (2)
224BoundCollectionExpressionSpreadElement spreadElement => GetCollectionExpressionSpreadElementConversion(spreadElement, elementType, ref useSiteInfo), 231BoundCollectionExpressionSpreadElement element,
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
687if (element is BoundCollectionExpressionSpreadElement spread) 699BoundCollectionExpressionSpreadElement argument,
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3132if (element is BoundCollectionExpressionSpreadElement spread)
BoundTree\BoundCollectionExpression.cs (1)
22if (Elements[i] is BoundCollectionExpressionSpreadElement spreadElement)
FlowAnalysis\AbstractFlowPass.cs (1)
2102public override BoundNode VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node)
FlowAnalysis\NullableWalker.cs (2)
3955case BoundCollectionExpressionSpreadElement spread: 4059public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node)
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
129if (element is BoundCollectionExpressionSpreadElement spread)
Generated\BoundNodes.xml.Generated.cs (8)
6534public BoundCollectionExpressionSpreadElement Update(BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount, BoundValuePlaceholder? elementPlaceholder, BoundStatement? iteratorBody) 6538var result = new BoundCollectionExpressionSpreadElement(this.Syntax, expression, expressionPlaceholder, conversion, enumeratorInfoOpt, lengthOrCount, elementPlaceholder, iteratorBody, this.HasErrors); 9211return VisitCollectionExpressionSpreadElement((BoundCollectionExpressionSpreadElement)node, arg); 9512public virtual R VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node, A arg) => this.DefaultVisit(node, arg); 9748public virtual BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) => this.DefaultVisit(node); 10537public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) 11950public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) 16667public 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 ? 723if (node is { Elements: [BoundCollectionExpressionSpreadElement { Expression: { } spreadExpression } spreadElement] } 885tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression arrayTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1011BoundCollectionExpressionSpreadElement spreadElement, 1221tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression spanTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1246tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression listTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1276var expression = element is BoundCollectionExpressionSpreadElement spreadElement ? 1305Func<ArrayBuilder<BoundExpression>, BoundExpression, BoundCollectionExpressionSpreadElement, BoundExpression, bool> tryOptimizeSpreadElement) 1314if (element is BoundCollectionExpressionSpreadElement spreadElement) 1354if (element is BoundCollectionExpressionSpreadElement spreadElement) 1393BoundCollectionExpressionSpreadElement node,
Operations\CSharpOperationFactory.cs (2)
1260return element is BoundCollectionExpressionSpreadElement spreadElement ? 1265private ISpreadOperation CreateBoundCollectionExpressionSpreadElement(BoundCollectionExpression expr, BoundCollectionExpressionSpreadElement element)