Skip to content

Add ArgumentKind.ParamCollection #72222

@AlekseyTs

Description

@AlekseyTs
namespace Microsoft.CodeAnalysis.Operations
{
    /// <summary>
    /// Kinds of arguments.
    /// </summary>
    public enum ArgumentKind
    {
        /// <summary>
        /// Represents unknown argument kind.
        /// </summary>
        None = 0x0,

        /// <summary>
        /// Argument value is explicitly supplied.
        /// </summary>
        Explicit = 0x1,

        /// <summary>
        /// Argument is a param array created by compilers for the matching C# params or VB ParamArray parameter. 
        /// Note, the value is an array creation expression that encapsulates all the elements, if any.
        /// </summary>
        ParamArray = 0x2,

        /// <summary>
        /// Argument is a default value supplied automatically by the compilers.
        /// </summary>
        DefaultValue = 0x3,

+       /// <summary>
+       /// Argument is a param collection created by compilers for the matching C# params parameter. 
+       /// Note, the value is a collection expression that encapsulates all the elements, if any.
+       /// </summary>
+       ParamCollection = 0x4,
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Concept-APIThis issue involves adding, removing, clarification, or modification of an API.Feature - ParamsCollectionsFeature Requestapi-approvedAPI was approved in API review, it can be implemented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions