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

Parent-child relationship in TaggedTemplateLiteral #1238

Closed
kuzjka opened this issue Jun 17, 2022 · 1 comment
Closed

Parent-child relationship in TaggedTemplateLiteral #1238

kuzjka opened this issue Jun 17, 2022 · 1 comment
Labels
bug Issues considered a bug

Comments

@kuzjka
Copy link
Contributor

kuzjka commented Jun 17, 2022

Hi,

Our team is really happy to see string templates and tagged string templates support in Rhino 1.7.14.

However, I have noticed that descendants of TaggedTemplateLiteral node, which are tag (target) and string literal, don't have parent relationship with TaggedTemplateLiteral node.

It looks a little illogical to me, and among other things, breaks getAstRoot().

If parent is not set intentionally, please let me know.

I'll try to prepare a PR with tests and a fix soon.

Best regards,
Ihor.

@rbri
Copy link
Collaborator

rbri commented Jun 21, 2022

LGTM

@p-bakker p-bakker added bug Issues considered a bug labels Jul 1, 2022
@gbrail gbrail closed this as completed in 2daadfc Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues considered a bug
Projects
None yet
Development

No branches or pull requests

3 participants