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

Unable to find documentation on some enum values like PointMemberAccessExpression #20344

Open
vamuzumd opened this issue Aug 28, 2020 · 4 comments · Fixed by dotnet/roslyn#47257
Labels
doc-idea Indicates issues that are suggestions for new topics [org][type][category] dotnet-roslyn-api/svc microsoft.codeanalysis/subsvc Pri2

Comments

@vamuzumd
Copy link

Have been looking around the exact meaning/usage of the enum PointMemberAccessExpression, but could not find any in docs. Would be great to provide a doc pointer link to each of these enums.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@Youssef1313
Copy link
Member

Youssef1313 commented Aug 29, 2020

This needs to be moved to dotnet/roslyn repository. The enum source code is currently lacking triple slash doc comments.

A small correction: you probably meant PointerMemberAccessExpression. To answer your question, this represents the arrow expression (->).

Taking the example of the doc:

public struct Coords
{
    public int X;
    public int Y;
    public override string ToString() => $"({X}, {Y})";
}

public class PointerMemberAccessExample
{
    public static unsafe void Main()
    {
        Coords coords;
        Coords* p = &coords;
        p->X = 3;
        p->Y = 4;
        Console.WriteLine(p->ToString());  // output: (3, 4)
    }
}

Here is the SyntaxTree of the relevant part:

image

@BillWagner
Copy link
Member

ping @sharwell Should this move to the roslyn repo?

@sharwell
Copy link
Member

@BillWagner I'm not sure. It seems reasonable for it to live in either location.

@IEvangelist IEvangelist added doc-idea Indicates issues that are suggestions for new topics [org][type][category] and removed ⌚ Not Triaged Not triaged labels Sep 1, 2020
@sharwell
Copy link
Member

sharwell commented Sep 8, 2020

This was accidentally closed. We documented a bunch of SyntaxKinds but haven't reached the particular member mentioned here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-idea Indicates issues that are suggestions for new topics [org][type][category] dotnet-roslyn-api/svc microsoft.codeanalysis/subsvc Pri2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants