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

Enums mostly unsupported #1060

Open
m1cm1c opened this issue Dec 20, 2020 · 1 comment
Open

Enums mostly unsupported #1060

m1cm1c opened this issue Dec 20, 2020 · 1 comment

Comments

@m1cm1c
Copy link
Contributor

m1cm1c commented Dec 20, 2020

Enums are mostly unsupported. In particular, I noticed the following issues:

  • There is no way of showing all symbolic values an enum can take. They just do not occur in the AST.
  • There is no way of showing a single numeric value an enum can take. They just do not occur in the AST.
  • The types of identifier nodes of enum fields are set to ANY. I'm not talking about the identifier nodes of variables of the enum's type. These are set correctly. But the identifiers of enum fields (i.e. their symbolic names) are not.
@m1cm1c
Copy link
Contributor Author

m1cm1c commented Dec 20, 2020

I'm not talking about the identifier nodes of variables of the enum's type. These are set correctly.

They are. But I just noticed that they are set in a way incompatible to the enum's TYPE_DECL node because in TYPE_DECL nodes, keyword enum is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant