Merge pull request #19448 from d10c/d10c/ruby-printast-order-fix

Ruby printAst: fix order for synth children of real parents
This commit is contained in:
Nora Dimitrijević
2025-05-15 18:17:01 +02:00
committed by GitHub
3 changed files with 22 additions and 10 deletions

View File

@@ -0,0 +1,6 @@
---
category: fix
---
### Bug Fixes
* The Ruby printAst.qll library now orders AST nodes slightly differently: child nodes that do not literally appear in the source code, but whose parent nodes do, are assigned a deterministic order based on a combination of source location and logical order within the parent. This fixes the non-deterministic ordering that sometimes occurred depending on evaluation order. The effect may also be visible in downstream uses of the printAst library, such as the AST view in the VSCode extension.