feat(nodes): add ConstantNode support with Anchor parsing#958
feat(nodes): add ConstantNode support with Anchor parsing#958tanmay4l wants to merge 5 commits intocodama-idl:mainfrom
Conversation
🦋 Changeset detectedLatest commit: 6ea901a The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Hi, thanks for the PR! This is looking pretty good. The only thing I'm unsure of is whether on not the On one hand, this would make the On the other hand, this make the What do you think? |
hmm interesting point about ConstantValueNode. I kept them separate because program constants need name field, which ConstantValueNode doesn't have. also constants[0].constant.value feels awkward. But I see your point about reuse. |
|
Hey sorry for the late reply, I was actually gonna review this properly this week. Are you still okay keeping this PR open? |
sure haha ( ill resolve conflict ) |
lorisleiva
left a comment
There was a problem hiding this comment.
Thanks for this PR and again sorry for the super later review.
I've made a few comments, lmk what you think.
I also think you're missing an important test file in the packages/visitors-core/test/nodes folder (e.g. look at the packages/visitors-core/test/nodes/DefinedTypeNode.test.ts file for reference).
P.S.: Don't forget to rebase.
|
Bump for this feature getting in. We'd like to use it in https://github.com/faremeter/flex . We can help with review/getting it landed, if anyone needs anything. |
I apologize for the delay. I’m back now and will push the updated code soon. |
lorisleiva
left a comment
There was a problem hiding this comment.
Thank for the changes! I've just got a few minor comments left but after that we should be good to merge.
#69 cc @lorisleiva