Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ArgumentKind.ParamCollection #72222

Closed
Tracked by #71137
AlekseyTs opened this issue Feb 22, 2024 · 1 comment
Closed
Tracked by #71137

Add ArgumentKind.ParamCollection #72222

AlekseyTs opened this issue Feb 22, 2024 · 1 comment
Labels
api-approved API was approved in API review, it can be implemented Concept-API This issue involves adding, removing, clarification, or modification of an API. Feature Request New Feature - ParamsCollections

Comments

@AlekseyTs
Copy link
Contributor

AlekseyTs commented Feb 22, 2024

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,
    }
}
@AlekseyTs AlekseyTs added Concept-API This issue involves adding, removing, clarification, or modification of an API. Feature Request api-ready-for-review API is ready for review, it is NOT ready for implementation labels Feb 22, 2024
@333fred
Copy link
Member

333fred commented Mar 7, 2024

API Review

  • No comments

Conclusion: Ship it

@333fred 333fred added api-approved API was approved in API review, it can be implemented and removed api-ready-for-review API is ready for review, it is NOT ready for implementation labels Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-approved API was approved in API review, it can be implemented Concept-API This issue involves adding, removing, clarification, or modification of an API. Feature Request New Feature - ParamsCollections
Projects
None yet
Development

No branches or pull requests

2 participants