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

update NodeVariant API #1166

Closed
OmarTawfik opened this issue Nov 26, 2024 · 0 comments · Fixed by #1180
Closed

update NodeVariant API #1166

OmarTawfik opened this issue Nov 26, 2024 · 0 comments · Fixed by #1180
Assignees

Comments

@OmarTawfik
Copy link
Contributor

OmarTawfik commented Nov 26, 2024

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 NodeType.
  2. Rename the generated property nodeVariant to type.
  3. Generate doc-comments for all the generated APIs, like nodeVariant, asNonterminalNode, isNonterminalNode, etc...
github-merge-queue bot pushed a commit that referenced this issue Dec 12, 2024
Updates our JCO submodule to include the changes in
NomicFoundation/jco#5. Includes one other change to fully integrate
these changes, which is to change `NodeVariant` to `NodeType` in
`codegen/../cst/index.mts` so that the expected imports align with the
new generated exports.

* [x] Depends on #1169
* [x] Depends on NomicFoundation/jco#5

Closes #1166 
Closes #1171
@github-project-automation github-project-automation bot moved this from ⏳ Todo to ✅ Done in Slang - 2024 H2 Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants