1 write to IsParams
Microsoft.CodeAnalysis.CSharp (1)
Symbols\AnonymousTypes\AnonymousTypeField.cs (1)
52
this.
IsParams
= isParams;
12 references to IsParams
Microsoft.CodeAnalysis.CSharp (12)
Symbols\AnonymousTypes\AnonymousTypeField.cs (3)
58
return new AnonymousTypeField(Name, Location, type, RefKind, Scope, DefaultValue,
IsParams
, HasUnscopedRefAttribute);
67
&& x.
IsParams
== y.
IsParams
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (4)
206
if (field.
IsParams
)
230
if (fields is [.., {
IsParams
: true } lastParam, _])
331
needsIndexedName = needsIndexedName || field.
IsParams
|| field.DefaultValue is not null;
336
(!field.
IsParams
|| field.Type.IsSZArray()); // [params T collection] is not recognized as a valid params parameter definition
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.DelegatePublicSymbol.cs (1)
62
new SynthesizedDelegateInvokeMethod.ParameterDescription(field.TypeWithAnnotations, field.RefKind, field.Scope, field.DefaultValue, isParams: field.
IsParams
, hasUnscopedRefAttribute: field.HasUnscopedRefAttribute));
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (4)
110
hasParamsArray: typeDescr.Fields is [.., {
IsParams
: true }, _]);
133
if (field.
IsParams
)
141
new SynthesizedDelegateInvokeMethod.ParameterDescription(type, field.RefKind, field.Scope, field.DefaultValue, isParams: field.
IsParams
, hasUnscopedRefAttribute: field.HasUnscopedRefAttribute));
202
new SynthesizedDelegateInvokeMethod.ParameterDescription(typeMap.SubstituteType(field.Type), field.RefKind, field.Scope, field.DefaultValue, isParams: field.
IsParams
, hasUnscopedRefAttribute: field.HasUnscopedRefAttribute));