fix: ensure parent pointers are correctly set for transformed nodes · TypeScriptToLua/TypeScriptToLua@316f968 · GitHub
Skip to content

Commit 316f968

Browse files
authored
fix: ensure parent pointers are correctly set for transformed nodes
Previously, the `setParent` function was applied to `updatedBlock` instead of `result`, which could lead to incorrect parent pointers in the final transformed AST. This fix ensures that parent pointers are correctly set for the final transformed node (`result`) and its subtree, maintaining the integrity of the AST during transformations.
1 parent 7ebbff5 commit 316f968

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎src/transformation/pre-transformers/using-transformer.ts‎

Lines changed: 6 additions & 5 deletions

0 commit comments

Comments
 (0)