mirror of
https://github.com/github/codeql.git
synced 2026-05-15 03:39:32 +02:00
Add the yeast crate (Yet another Elaborator for Abstract Syntax Trees), a framework for tree-sitter AST transformations/desugaring. Integrate it into the shared tree-sitter extractor. Key components: - shared/yeast/: New crate with query/match/transform pipeline for tree-sitter ASTs, with Ruby desugaring rules as an example - shared/tree-sitter-extractor: Pass parsed trees through yeast before TRAP extraction, applying language-specific desugaring rules Updated from the original hackathon branch to work with tree-sitter 0.24 and current main dependencies. 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>.