mirror of
https://github.com/github/codeql.git
synced 2026-05-14 19:29:28 +02:00
yeast.md:
- Template section: document implicit context from rule!, show
explicit BuildCtx::new with 3 params (ast, captures, fresh)
- Complete example: rewrite using rule! macro instead of manual
Rule::new with closures
- Add rule! macro section documenting full and shorthand forms
- Document capture multiplicity (Id, Vec<Id>, Option<Id>)
yeast-macros/src/lib.rs:
- query!: remove references to field*: and standalone @capture
- tree!: document #{expr}, $fresh, {expr} syntax
- trees!: document {..expr} splice and (@capture)* splice
- rule!: document shorthand form, Option<Id> for ? captures
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
CodeQL Shared Libraries
This folder contains shared, language-agnostic CodeQL libraries.
Libraries are organized into separate query packs, in order to allow for
individual versioning. For example, the shared static single assignment (SSA)
library exists in the codeql/ssa pack, which can be referenced by adding
dependencies:
codeql/ssa: 0.0.1
to qlpack.yml.
All shared libraries will belong to a codeql/<name> pack, and live in the
namespace codeql.<name>.