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

Non-consistent behavior between insert("after", ...) and insertAfter(...) #169

Open
lm-sousa opened this issue Oct 12, 2024 · 1 comment
Labels

Comments

@lm-sousa
Copy link
Member

When calling insert and insertAfter different behaviour is exhibited.
Below is a JS translation of the CxxTest.testNoParsing test. The version on the left (insert("after", ...)) passes the test. The one on the right (insertAfter(...)) doesn't.
Below is also a comparison between the original LARA code and the JS translation.

image

image

Additionally the following warning is shown when executing the insertAfter(...) version:

Can only insert Decl nodes in a file, tried to insert a 'statement'

@lm-sousa lm-sousa added the bug label Oct 12, 2024
@lm-sousa
Copy link
Member Author

The same also occurs in CxxTest.testFileRebuild

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant