3 instantiations of BoundCollectionExpressionSpreadElement
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (2)
5408return new BoundCollectionExpressionSpreadElement( 5447return new BoundCollectionExpressionSpreadElement(
Generated\BoundNodes.xml.Generated.cs (1)
6655var 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)
897if (node is BoundCollectionExpressionSpreadElement spread)
Binder\Binder_Conversions.cs (5)
1067builder.Add(element is BoundCollectionExpressionSpreadElement spreadElement 1166builder.Add(element is BoundCollectionExpressionSpreadElement spreadElement ? 1187static BoundCollectionExpressionSpreadElement bindSpreadElement( 1188ref readonly CollectionExpressionConverter @this, BoundCollectionExpressionSpreadElement element, TypeSymbol elementType, Conversion elementConversion) 2406if (element is BoundCollectionExpressionSpreadElement spreadElement)
Binder\Binder_Expressions.cs (2)
6728private BoundCollectionExpressionSpreadElement BindCollectionExpressionSpreadElementAddMethod( 6730BoundCollectionExpressionSpreadElement element,
Binder\Binder.ValueChecks.cs (1)
4841if (element is BoundCollectionExpressionSpreadElement spreadElement)
Binder\RefSafetyAnalysis.cs (1)
1402if (element is BoundCollectionExpressionSpreadElement spreadElement)
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)
3141if (element is BoundCollectionExpressionSpreadElement spread)
BoundTree\BoundCollectionExpression.cs (1)
87if (Elements[i] is BoundCollectionExpressionSpreadElement spreadElement)
FlowAnalysis\AbstractFlowPass.cs (1)
2103public override BoundNode VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node)
FlowAnalysis\NullableWalker.cs (2)
4189case BoundCollectionExpressionSpreadElement spread: 4308public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node)
Generated\BoundNodes.xml.Generated.cs (8)
6651public BoundCollectionExpressionSpreadElement Update(BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount, BoundValuePlaceholder? elementPlaceholder, BoundStatement? iteratorBody) 6655var result = new BoundCollectionExpressionSpreadElement(this.Syntax, expression, expressionPlaceholder, conversion, enumeratorInfoOpt, lengthOrCount, elementPlaceholder, iteratorBody, this.HasErrors); 9425return VisitCollectionExpressionSpreadElement((BoundCollectionExpressionSpreadElement)node, arg); 9733public virtual R VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node, A arg) => this.DefaultVisit(node, arg); 9974public virtual BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) => this.DefaultVisit(node); 10790public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) 12234public override BoundNode? VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node) 17038public override TreeDumperNode VisitCollectionExpressionSpreadElement(BoundCollectionExpressionSpreadElement node, object? arg) => new TreeDumperNode("collectionExpressionSpreadElement", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (15)
121if (element is BoundCollectionExpressionSpreadElement spreadElement) 139if (element is BoundCollectionExpressionSpreadElement spreadElement) 168if (node.Elements is not [BoundCollectionExpressionSpreadElement singleSpread]) 228Elements: [BoundCollectionExpressionSpreadElement { Expression: { Type: NamedTypeSymbol spreadType } expr }], 506var rewrittenElement = element is BoundCollectionExpressionSpreadElement spreadElement ? 825if (node is { Elements: [BoundCollectionExpressionSpreadElement { Expression: { } spreadExpression } spreadElement] } 1009tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression arrayTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1138BoundCollectionExpressionSpreadElement spreadElement, 1385tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression spanTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1413tryOptimizeSpreadElement: (ArrayBuilder<BoundExpression> sideEffects, BoundExpression listTemp, BoundCollectionExpressionSpreadElement spreadElement, BoundExpression rewrittenSpreadOperand) => 1443var expression = element is BoundCollectionExpressionSpreadElement spreadElement ? 1472Func<ArrayBuilder<BoundExpression>, BoundExpression, BoundCollectionExpressionSpreadElement, BoundExpression, bool> tryOptimizeSpreadElement) 1481if (element is BoundCollectionExpressionSpreadElement spreadElement) 1521if (element is BoundCollectionExpressionSpreadElement spreadElement) 1560BoundCollectionExpressionSpreadElement node,
Operations\CSharpOperationFactory.cs (2)
1354return element is BoundCollectionExpressionSpreadElement spreadElement ? 1359private ISpreadOperation CreateBoundCollectionExpressionSpreadElement(BoundCollectionExpression expr, BoundCollectionExpressionSpreadElement element)