4 writes to IsParamsArrayOrCollection
Microsoft.CodeAnalysis.CSharp (4)
BoundTree\BoundArrayCreation.cs (1)
17base.IsParamsArrayOrCollection = value;
BoundTree\BoundCollectionExpression.cs (1)
42base.IsParamsArrayOrCollection = value;
BoundTree\BoundExpression.cs (1)
521base.IsParamsArrayOrCollection = value;
BoundTree\BoundNode.cs (1)
162this.IsParamsArrayOrCollection = true;
25 references to IsParamsArrayOrCollection
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Attributes.cs (3)
352Debug.Assert(arguments.Count(a => a.IsParamsArrayOrCollection) == (boundAttribute.ConstructorExpanded ? 1 : 0)); 384Debug.Assert(!arguments[argIndex].IsParamsArrayOrCollection || arguments[argIndex] is BoundArrayCreation); 389(arguments[argIndex].IsParamsArrayOrCollection && arguments[argIndex] is BoundArrayCreation { Bounds: [BoundLiteral { ConstantValueOpt.Value: 0 }] }) ?
Binder\Binder_Invocation.cs (1)
1771Debug.Assert(collection.IsParamsArrayOrCollection);
BoundTree\BoundArrayCreation.cs (1)
13return base.IsParamsArrayOrCollection;
BoundTree\BoundCollectionExpression.cs (1)
38return base.IsParamsArrayOrCollection;
BoundTree\BoundExpression.cs (1)
517return base.IsParamsArrayOrCollection;
BoundTree\BoundNode.cs (2)
160if (original.IsParamsArrayOrCollection) 360Debug.Assert(value || !IsParamsArrayOrCollection);
FlowAnalysis\NullableWalker.cs (3)
6787Debug.Assert(!arguments.Any(a => a.IsParamsArrayOrCollection)); 7001Debug.Assert(arguments.Count(a => a.IsParamsArrayOrCollection) <= 1); 7006if (argument.IsParamsArrayOrCollection)
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
68if (expression.IsParamsArrayOrCollection)
Lowering\LocalRewriter\LocalRewriter_Call.cs (7)
1021Debug.Assert(rewrittenArguments.Count(a => a.IsParamsArrayOrCollection) <= (expanded ? 1 : 0)); 1133if (possibleParamsArray.IsParamsArrayOrCollection && !_inExpressionLambda && ((BoundArrayCreation)possibleParamsArray).Bounds is [BoundLiteral { ConstantValueOpt.Value: 0 }]) 1259Debug.Assert(paramsArray.IsParamsArrayOrCollection); 1316Debug.Assert(rewrittenArguments.Count(a => a.IsParamsArrayOrCollection) <= (expanded ? 1 : 0)); 1327if (argument.IsParamsArrayOrCollection) 1350Debug.Assert(arguments[p].IsParamsArrayOrCollection); 1511if (argument.IsParamsArrayOrCollection)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
347if (expanded && actualArguments[actualArguments.Length - 1] is { IsParamsArrayOrCollection: true } array)
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (3)
303Debug.Assert(memberInit.Arguments.Count(a => a.IsParamsArrayOrCollection) <= (memberInit.Expanded ? 1 : 0)); 408Debug.Assert(!arrayAccess.Indices.Any(a => a.IsParamsArrayOrCollection)); 601if (arg.IsParamsArrayOrCollection)
Operations\CSharpOperationFactory_Methods.cs (1)
346else if (argument.IsParamsArrayOrCollection)