9 overrides of IsParamsCollection
Microsoft.CodeAnalysis.CSharp (9)
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
77public override bool IsParamsCollection => false;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
1015public override bool IsParamsCollection
Symbols\SignatureOnlyParameterSymbol.cs (1)
48public override bool IsParamsCollection { get { return _isParamsCollection; } }
Symbols\Source\SourceClonedParameterSymbol.cs (1)
52public override bool IsParamsCollection
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1573public sealed override bool IsParamsCollection => (_parameterSyntaxKind & ParameterFlags.ParamsParameter) != 0 && !this.Type.IsSZArray();
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
68public override bool IsParamsCollection
Symbols\Source\ThisParameterSymbol.cs (1)
43public sealed override bool IsParamsCollection
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
68public override bool IsParamsCollection
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
99public override bool IsParamsCollection
67 references to IsParamsCollection
Microsoft.CodeAnalysis.CSharp (16)
Binder\Semantics\Conversions\Conversions.cs (1)
438isParamsArray: 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)
534x.IsParamsCollection == y.IsParamsCollection) &&
Lowering\LocalRewriter\LocalRewriter.cs (2)
334delegateInvoke.Parameters.Any(static (p) => p.IsParamsCollection)) 337if (node.Symbol.Parameters.LastOrDefault(static (p) => p.IsParamsCollection) is { } parameter)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
744delegateInvoke.Parameters.Any(static (p) => p.IsParamsCollection))
Symbols\ParameterSymbol.cs (1)
136internal bool IsParams => IsParamsArray || IsParamsCollection;
Symbols\PublicModel\ParameterSymbol.cs (1)
69bool IParameterSymbol.IsParamsCollection => _underlying.IsParamsCollection;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
1007isParamsCollection: param.IsParamsCollection, 1081isParamsCollection: param.IsParamsCollection,
Symbols\Source\ParameterHelpers.cs (2)
375if (parameters.LastOrDefault(static (p) => p.IsParamsCollection) is { } parameter) 383if (parameters.LastOrDefault(static (p) => p.IsParamsCollection) is { } parameter)
Symbols\Source\SourceClonedParameterSymbol.cs (1)
54get { return !_suppressOptional && _originalParam.IsParamsCollection; }
Symbols\Source\SourceParameterSymbolBase.cs (1)
81else if (parameter.IsParamsCollection)
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
101get { return _underlyingParameter.IsParamsCollection; }
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenOverridingAndHiding.cs (3)
4113Assert.False(parameterA.IsParamsCollection); 4121Assert.False(parameterB.IsParamsCollection); 4139Assert.False(parameter.IsParamsCollection);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests.cs (3)
3456Assert.False(attrs.First().AttributeConstructor.Parameters.Last().IsParamsCollection); 3595Assert.False(attrs.First().AttributeConstructor.Parameters.Last().IsParamsCollection); 8819Assert.False(yParam.IsParamsCollection);
Attributes\AttributeTests_WellKnownAttributes.cs (1)
9745Assert.False(param.IsParamsCollection);
Attributes\WellKnownAttributesTestBase.cs (1)
90Assert.False(parameter.IsParamsCollection);
Semantics\ParamsCollectionTests.cs (1)
39Assert.Equal(isParamCollection, parameter.IsParamsCollection);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\LambdaTests.cs (17)
8351Assert.False(((SourceParameterSymbol)lambdas[0].Parameters.Single()).IsParamsCollection); 8355Assert.False(((SourceParameterSymbol)lambdas[1].Parameters.Single()).IsParamsCollection); 8361Assert.False(((SourceParameterSymbol)lambdas[2].Parameters[0]).IsParamsCollection); 8364Assert.False(((SourceParameterSymbol)lambdas[2].Parameters[1]).IsParamsCollection); 8386Assert.False(((SourceParameterSymbol)lambdas[0].Parameters[0]).IsParamsCollection); 8389Assert.False(((SourceParameterSymbol)lambdas[0].Parameters[1]).IsParamsCollection); 8392Assert.False(((SourceParameterSymbol)lambdas[0].Parameters[2]).IsParamsCollection); 8398Assert.False(((SourceParameterSymbol)lambdas[1].Parameters[0]).IsParamsCollection); 8401Assert.False(((SourceParameterSymbol)lambdas[1].Parameters[1]).IsParamsCollection); 8404Assert.False(((SourceParameterSymbol)lambdas[1].Parameters[2]).IsParamsCollection); 8428Assert.False(lam1.DelegateParameters().Single().IsParamsCollection); 8436Assert.False(lam3Parameters[0].IsParamsCollection); 8439Assert.False(lam3Parameters[1].IsParamsCollection); 8576Assert.False(parameter.IsParamsCollection); 8627Assert.False(parameter.IsParamsCollection); 8708Assert.True(parameter.IsParamsCollection); 8763Assert.True(parameter.IsParamsCollection);
Semantics\LocalFunctionTests.cs (4)
2629Assert.False(parameter.IsParamsCollection); 2679Assert.False(parameter.IsParamsCollection); 2761Assert.True(parameter.IsParamsCollection); 2815Assert.True(parameter.IsParamsCollection);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
Symbols\Metadata\MetadataMemberTests.cs (2)
278Assert.False(p3.IsParamsCollection); 375Assert.False(p1.IsParamsCollection);
Symbols\Metadata\PE\LoadingIndexers.cs (5)
922Assert.False(readWrite.Parameters.Last().IsParamsCollection); 929Assert.False(readOnly.Parameters.Last().IsParamsCollection); 936Assert.False(writeOnly.Parameters.Last().IsParamsCollection); 1012Assert.False(readWrite.Parameters.Last().IsParamsCollection); //favour setter 1019Assert.False(readOnly.Parameters.Last().IsParamsCollection); //favour setter
Symbols\Source\CustomModifierCopyTests.cs (12)
653Assert.False(baseM.Parameters.Single().IsParamsCollection); 656Assert.False(baseN.Parameters.Single().IsParamsCollection); 659Assert.False(derivedM.Parameters.Single().IsParamsCollection); 662Assert.False(derivedN.Parameters.Single().IsParamsCollection); 665Assert.False(derived2M.Parameters.Single().IsParamsCollection); 668Assert.False(derived2N.Parameters.Single().IsParamsCollection); 824Assert.False(baseIndexer1.Parameters.Single().IsParamsCollection); 827Assert.False(baseIndexer2.Parameters.Single().IsParamsCollection); 830Assert.False(derivedIndexer1.Parameters.Single().IsParamsCollection); 833Assert.False(derivedIndexer2.Parameters.Single().IsParamsCollection); 836Assert.False(derived2Indexer1.Parameters.Single().IsParamsCollection); 839Assert.False(derived2Indexer2.Parameters.Single().IsParamsCollection);
Symbols\TypeTests.cs (1)
1577Assert.False(paras[1].IsParamsCollection);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
115Assert.False(symbol.IsParamsCollection);