Commit 2cb2ff1
committed
chore: replace deep copies with shallow spreads in cqn4sql
\`copy()\` in \`getTransformedColumn\`, the ORDER BY / GROUP BY transformer,
and \`getTransformedFrom\` all only mutate top-level properties on the result,
making a full recursive deep copy unnecessary. Shallow spread suffices.
\`calculateOnCondition\` still uses \`copy()\` — it mutates nested token
objects in-place during iteration, so a shallow copy would corrupt the
original token stream.1 parent f75e32b commit 2cb2ff1
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
| 646 | + | |
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| |||
1322 | 1322 | | |
1323 | 1323 | | |
1324 | 1324 | | |
1325 | | - | |
| 1325 | + | |
1326 | 1326 | | |
1327 | 1327 | | |
1328 | 1328 | | |
| |||
2014 | 2014 | | |
2015 | 2015 | | |
2016 | 2016 | | |
2017 | | - | |
| 2017 | + | |
2018 | 2018 | | |
2019 | 2019 | | |
2020 | 2020 | | |
| |||
0 commit comments