NomicFoundation / slang

Solidity compiler tooling by @NomicFoundation
https://nomicfoundation.github.io/slang/
MIT License
242 stars 19 forks source link

update `NodeVariant` API #1166

Open OmarTawfik opened 23 hours ago

OmarTawfik commented 23 hours ago

In the jco fork, we need to update the generated APIs for typescript_enum. The APIs are generated using the enum's name as a suffix:

  1. Rename the generated type NodeVariant to NodeKind.
  2. Rename the generated property nodeVariant to type.
  3. Generate doc-comments for all the generated APIs, like nodeVariant, asNonterminalNode, isNonterminalNode, etc...