mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
By explicitly marking children in the `schema.yml` file, an internal `getAChild` predicate is implemented, that is in turn used in `AstNode` to implement `getParent`. This is yet to be used in the control flow library to replace the hand-rolled implementation. A further, more complex step is to use the same information to fully generate the core implementation of `PrintAst` (including the accessor string). This will be done later. The `parent` tests use the same swift code as the extractor tests, and this is currently enforced by `sync-files.py`. Notice that `qltest.sh` had to be modified to deal with multiple files, which was not working yet.
4 lines
192 B
Plaintext
4 lines
192 B
Plaintext
| statements.swift:2:3:8:3 | for ... in ... { ... } | label1 |
|
|
| statements.swift:10:3:12:3 | while ... { ... } | label2 |
|
|
| statements.swift:15:3:17:18 | repeat { ... } while ... | label3 |
|