9 overrides of IsParamsCollection
Microsoft.CodeAnalysis.CSharp (9)
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
75
public override bool
IsParamsCollection
=> false;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1002
public override bool
IsParamsCollection
Symbols\SignatureOnlyParameterSymbol.cs (1)
48
public override bool
IsParamsCollection
{ get { return _isParamsCollection; } }
Symbols\Source\SourceClonedParameterSymbol.cs (1)
52
public override bool
IsParamsCollection
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1508
public sealed override bool
IsParamsCollection
=> (_parameterSyntaxKind & ParameterFlags.ParamsParameter) != 0 && !this.Type.IsSZArray();
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
68
public override bool
IsParamsCollection
Symbols\Source\ThisParameterSymbol.cs (1)
38
public sealed override bool
IsParamsCollection
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
68
public override bool
IsParamsCollection
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
94
public override bool
IsParamsCollection
59 references to IsParamsCollection
Microsoft.CodeAnalysis.CSharp (15)
Binder\Semantics\Conversions\Conversions.cs (1)
438
isParamsArray: parameter.IsParamsArray, isParamsCollection: parameter.
IsParamsCollection
, parameter.RefKind);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
1314
(final.
IsParamsCollection
&& !final.Type.IsSZArray() && !disallowExpandedNonArrayParams &&
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
527
x.
IsParamsCollection
== y.
IsParamsCollection
) &&
Lowering\LocalRewriter\LocalRewriter.cs (2)
334
delegateInvoke.Parameters.Any(static (p) => p.
IsParamsCollection
))
337
if (node.Symbol.Parameters.LastOrDefault(static (p) => p.
IsParamsCollection
) is { } parameter)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
744
delegateInvoke.Parameters.Any(static (p) => p.
IsParamsCollection
))
Symbols\ParameterSymbol.cs (1)
136
internal bool IsParams => IsParamsArray ||
IsParamsCollection
;
Symbols\PublicModel\ParameterSymbol.cs (1)
69
bool IParameterSymbol.IsParamsCollection => _underlying.
IsParamsCollection
;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
1007
isParamsCollection: param.
IsParamsCollection
,
1081
isParamsCollection: param.
IsParamsCollection
,
Symbols\Source\ParameterHelpers.cs (1)
375
if (parameters.LastOrDefault(static (p) => p.
IsParamsCollection
) is { } parameter)
Symbols\Source\SourceClonedParameterSymbol.cs (1)
54
get { return !_suppressOptional && _originalParam.
IsParamsCollection
; }
Symbols\Source\SourceParameterSymbolBase.cs (1)
83
else if (parameter.
IsParamsCollection
)
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
96
get { return _underlyingParameter.
IsParamsCollection
; }
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenOverridingAndHiding.cs (3)
4113
Assert.False(parameterA.
IsParamsCollection
);
4121
Assert.False(parameterB.
IsParamsCollection
);
4139
Assert.False(parameter.
IsParamsCollection
);
Emit\NoPiaEmbedTypes.cs (1)
3325
Assert.False(m1.Parameters[0].
IsParamsCollection
);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests.cs (3)
3456
Assert.False(attrs.First().AttributeConstructor.Parameters.Last().
IsParamsCollection
);
3595
Assert.False(attrs.First().AttributeConstructor.Parameters.Last().
IsParamsCollection
);
8819
Assert.False(yParam.
IsParamsCollection
);
Attributes\AttributeTests_WellKnownAttributes.cs (1)
9745
Assert.False(param.
IsParamsCollection
);
Attributes\WellKnownAttributesTestBase.cs (1)
90
Assert.False(parameter.
IsParamsCollection
);
Semantics\ParamsCollectionTests.cs (1)
47
Assert.Equal(isParamCollection, parameter.
IsParamsCollection
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\LambdaTests.cs (13)
8358
Assert.False(((SourceParameterSymbol)lambdas[0].Parameters.Single()).
IsParamsCollection
);
8362
Assert.False(((SourceParameterSymbol)lambdas[1].Parameters.Single()).
IsParamsCollection
);
8368
Assert.False(((SourceParameterSymbol)lambdas[2].Parameters[0]).
IsParamsCollection
);
8371
Assert.False(((SourceParameterSymbol)lambdas[2].Parameters[1]).
IsParamsCollection
);
8393
Assert.False(((SourceParameterSymbol)lambdas[0].Parameters[0]).
IsParamsCollection
);
8396
Assert.False(((SourceParameterSymbol)lambdas[0].Parameters[1]).
IsParamsCollection
);
8399
Assert.False(((SourceParameterSymbol)lambdas[0].Parameters[2]).
IsParamsCollection
);
8405
Assert.False(((SourceParameterSymbol)lambdas[1].Parameters[0]).
IsParamsCollection
);
8408
Assert.False(((SourceParameterSymbol)lambdas[1].Parameters[1]).
IsParamsCollection
);
8411
Assert.False(((SourceParameterSymbol)lambdas[1].Parameters[2]).
IsParamsCollection
);
8435
Assert.False(lam1.DelegateParameters().Single().
IsParamsCollection
);
8443
Assert.False(lam3Parameters[0].
IsParamsCollection
);
8446
Assert.False(lam3Parameters[1].
IsParamsCollection
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
Symbols\Metadata\MetadataMemberTests.cs (2)
278
Assert.False(p3.
IsParamsCollection
);
375
Assert.False(p1.
IsParamsCollection
);
Symbols\Metadata\PE\LoadingIndexers.cs (5)
922
Assert.False(readWrite.Parameters.Last().
IsParamsCollection
);
929
Assert.False(readOnly.Parameters.Last().
IsParamsCollection
);
936
Assert.False(writeOnly.Parameters.Last().
IsParamsCollection
);
1012
Assert.False(readWrite.Parameters.Last().
IsParamsCollection
); //favour setter
1019
Assert.False(readOnly.Parameters.Last().
IsParamsCollection
); //favour setter
Symbols\Source\CustomModifierCopyTests.cs (12)
653
Assert.False(baseM.Parameters.Single().
IsParamsCollection
);
656
Assert.False(baseN.Parameters.Single().
IsParamsCollection
);
659
Assert.False(derivedM.Parameters.Single().
IsParamsCollection
);
662
Assert.False(derivedN.Parameters.Single().
IsParamsCollection
);
665
Assert.False(derived2M.Parameters.Single().
IsParamsCollection
);
668
Assert.False(derived2N.Parameters.Single().
IsParamsCollection
);
824
Assert.False(baseIndexer1.Parameters.Single().
IsParamsCollection
);
827
Assert.False(baseIndexer2.Parameters.Single().
IsParamsCollection
);
830
Assert.False(derivedIndexer1.Parameters.Single().
IsParamsCollection
);
833
Assert.False(derivedIndexer2.Parameters.Single().
IsParamsCollection
);
836
Assert.False(derived2Indexer1.Parameters.Single().
IsParamsCollection
);
839
Assert.False(derived2Indexer2.Parameters.Single().
IsParamsCollection
);
Symbols\TypeTests.cs (1)
1577
Assert.False(paras[1].
IsParamsCollection
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
115
Assert.False(symbol.
IsParamsCollection
);