22 references to IsSZArray
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Attributes.cs (1)
917
Debug.Assert(type.
IsSZArray
());
Binder\Binder_Expressions.cs (1)
3606
if (parameters[paramsIndex].Type.
IsSZArray
())
Binder\Binder_Invocation.cs (1)
681
!candidate.Member.GetParameters().Last().Type.
IsSZArray
())
Binder\Binder_Patterns.cs (1)
361
if (inputType.
IsSZArray
())
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (4)
1718
(source.
IsSZArray
() || source.IsSpan())
1723
(source.
IsSZArray
() || source.IsSpan() || source.IsReadOnlySpan())
2130
(source.
IsSZArray
() || source.IsSpan())
2135
(source.
IsSZArray
() || source.IsSpan() || source.IsReadOnlySpan())
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
1302
if ((final.IsParamsArray && final.Type.
IsSZArray
()) ||
1303
(final.IsParamsCollection && !final.Type.
IsSZArray
() && !disallowExpandedNonArrayParams &&
1315
if (binder.Flags.HasFlag(BinderFlags.AttributeArgument) && !type.
IsSZArray
())
Operations\CSharpOperationFactory_Methods.cs (1)
348
argumentKind = argument.Type?.
IsSZArray
() == true ? ArgumentKind.ParamArray : ArgumentKind.ParamCollection;
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (3)
210
Debug.Assert(field.Type.
IsSZArray
());
232
Debug.Assert(lastParam.Type.
IsSZArray
());
336
(!field.IsParams || field.Type.
IsSZArray
()); // [params T collection] is not recognized as a valid params parameter definition
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
135
Debug.Assert(field.Type.
IsSZArray
());
Symbols\Source\SourceComplexParameterSymbol.cs (2)
1509
public sealed override bool IsParamsArray => (_parameterSyntaxKind & ParameterFlags.ParamsParameter) != 0 && this.Type.
IsSZArray
();
1511
public sealed override bool IsParamsCollection => (_parameterSyntaxKind & ParameterFlags.ParamsParameter) != 0 && !this.Type.
IsSZArray
();
Symbols\Synthesized\SynthesizedParameterSymbol.cs (2)
383
public override bool IsParamsArray => _isParams && Type.
IsSZArray
();
385
public override bool IsParamsCollection => _isParams && !Type.
IsSZArray
();
Symbols\TypeWithAnnotations.cs (2)
901
internal override bool IsSZArray(TypeSymbol typeSymbol) => typeSymbol.
IsSZArray
();
974
internal override bool IsSZArray(TypeSymbol typeSymbol) => typeSymbol.
IsSZArray
();