mirror of
https://github.com/github/codeql.git
synced 2026-01-21 10:24:47 +01:00
This will add helpers to get the underlying raw entities or constructor
arguments on stubs for synthesized classes.
For example a schema like:
```
@synth.from_class(A)
class B:
pass
@synth.on_arguments(base=A, index=int)
class C:
pass
```
will generate
```
cached
private Raw::A getUnderlyingEntity() { this = Synth::TB(result) }
```
in the `B.qll` stub and
```
cached
private Raw::A getUnderlyingBase() { this = Synth::TC(result, _) }
cached
private int getUnderlyingIndex() { this = Synth::TC(_, result) }
```
in the `C.qll` stub.
As stubs these can be freely changed later on.
17 lines
301 B
Plaintext
17 lines
301 B
Plaintext
# directory created by bazel run //swift:create-extractor-pack
|
|
/extractor-pack
|
|
|
|
# output files created by running tests
|
|
*.o
|
|
|
|
# compilation database
|
|
compile_commands.json
|
|
|
|
# CLion project data and build directories
|
|
/.idea
|
|
/cmake*
|
|
|
|
# VSCode default build directory and project directory
|
|
/build
|
|
/.vscode
|