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

Source generator doesn't see DefaultMemberAttribute #73229

Open
jkurdek opened this issue Apr 25, 2024 · 1 comment
Open

Source generator doesn't see DefaultMemberAttribute #73229

jkurdek opened this issue Apr 25, 2024 · 1 comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@jkurdek
Copy link
Member

jkurdek commented Apr 25, 2024

When working with source generators we encountered the following:

public class C
{
    [IndexerName("MyIndexer")]   
    public int this[int x]
    {
        get => 1;
        set { }
    }
}

This generates DefaultMemberAttribute(MyIndexer) on class C. However, when inspecting properties of C from within transform function of IncrementalSourceGenerator this information is not available.

SharpLab

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 25, 2024
@CyrusNajmabadi
Copy link
Member

Can you supply a full repro?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

2 participants