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