mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +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.
8 lines
663 B
Plaintext
8 lines
663 B
Plaintext
| statements.swift:3:8:3:13 | ... call to == ... | statements.swift:3:8:3:13 | ... call to == ... |
|
|
| statements.swift:10:17:10:24 | ... call to < ... | statements.swift:10:18:10:22 | ... call to < ... |
|
|
| statements.swift:39:9:39:14 | ... call to != ... | statements.swift:39:9:39:14 | ... call to != ... |
|
|
| statements.swift:65:4:65:19 | let ... = ... | statements.swift:65:9:65:15 | let ... |
|
|
| statements.swift:65:4:65:19 | let ... = ... | statements.swift:65:19:65:19 | x |
|
|
| statements.swift:67:4:67:20 | .some(...) = ... | statements.swift:67:9:67:16 | .some(...) |
|
|
| statements.swift:67:4:67:20 | .some(...) = ... | statements.swift:67:20:67:20 | x |
|