Skip to content

add method to UntypedNode for checking if the underlying node's kind matches a typed node's kind - #25

Merged
Jakobeha merged 1 commit into
Jakobeha:mainfrom
bramadityaw:untypednode-method-is
May 14, 2026
Merged

Jakobeha merged 1 commit into
Jakobeha:mainfrom
bramadityaw:untypednode-method-is

Conversation

@bramadityaw

Copy link
Copy Markdown

Sometimes, we don't really need to use the result of UntypedNode::downcast and only need to check if it can be downcasted. This pull request adds a method for UntypedNode that does exactly that with a similar API to UntypedNode::downcast.

@bramadityaw

Copy link
Copy Markdown
Author

what tests that I need to add for this feature?

@Jakobeha
Jakobeha merged commit 5ff1c16 into Jakobeha:main May 14, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants