9 overrides of IsParamsCollection
Microsoft.CodeAnalysis.CSharp (9)
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
77
public override bool
IsParamsCollection
=> false;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1015
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)
1573
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)
43
public sealed override bool
IsParamsCollection
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
68
public override bool
IsParamsCollection
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
99
public override bool
IsParamsCollection
67 references to IsParamsCollection
Microsoft.CodeAnalysis.CSharp (16)
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)
534
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 (2)
375
if (parameters.LastOrDefault(static (p) => p.
IsParamsCollection
) is { } parameter)
383
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)
81
else if (parameter.
IsParamsCollection
)
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
101
get { return _underlyingParameter.
IsParamsCollection
; }
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenOverridingAndHiding.cs (3)
4113
Assert.False(parameterA.
IsParamsCollection
);
4121
Assert.False(parameterB.
IsParamsCollection
);
4139
Assert.False(parameter.
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)
39
Assert.Equal(isParamCollection, parameter.
IsParamsCollection
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\LambdaTests.cs (17)
8351
Assert.False(((SourceParameterSymbol)lambdas[0].Parameters.Single()).
IsParamsCollection
);
8355
Assert.False(((SourceParameterSymbol)lambdas[1].Parameters.Single()).
IsParamsCollection
);
8361
Assert.False(((SourceParameterSymbol)lambdas[2].Parameters[0]).
IsParamsCollection
);
8364
Assert.False(((SourceParameterSymbol)lambdas[2].Parameters[1]).
IsParamsCollection
);
8386
Assert.False(((SourceParameterSymbol)lambdas[0].Parameters[0]).
IsParamsCollection
);
8389
Assert.False(((SourceParameterSymbol)lambdas[0].Parameters[1]).
IsParamsCollection
);
8392
Assert.False(((SourceParameterSymbol)lambdas[0].Parameters[2]).
IsParamsCollection
);
8398
Assert.False(((SourceParameterSymbol)lambdas[1].Parameters[0]).
IsParamsCollection
);
8401
Assert.False(((SourceParameterSymbol)lambdas[1].Parameters[1]).
IsParamsCollection
);
8404
Assert.False(((SourceParameterSymbol)lambdas[1].Parameters[2]).
IsParamsCollection
);
8428
Assert.False(lam1.DelegateParameters().Single().
IsParamsCollection
);
8436
Assert.False(lam3Parameters[0].
IsParamsCollection
);
8439
Assert.False(lam3Parameters[1].
IsParamsCollection
);
8576
Assert.False(parameter.
IsParamsCollection
);
8627
Assert.False(parameter.
IsParamsCollection
);
8708
Assert.True(parameter.
IsParamsCollection
);
8763
Assert.True(parameter.
IsParamsCollection
);
Semantics\LocalFunctionTests.cs (4)
2629
Assert.False(parameter.
IsParamsCollection
);
2679
Assert.False(parameter.
IsParamsCollection
);
2761
Assert.True(parameter.
IsParamsCollection
);
2815
Assert.True(parameter.
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
);