codepropertygraph
codepropertygraph copied to clipboard
Enums mostly unsupported
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.
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.