Module treesitter

Module treesitter 

Source
Available on crate feature tree-sitter only.
Expand description

Chunking code with tree-sitter and various tools

Modules§

chunk_code
Chunk code using tree-sitter
compress_code_outline
CompressCodeOutline is a transformer that reduces the size of the outline of a the parent file of a chunk to make it more relevant to the chunk.
metadata_qa_code
Generate questions and answers based on code chunks and add them as metadata
metadata_refs_defs_code
Adds references and definitions found in code as metadata to chunks
outline_code_tree_sitter
Add the outline of the code in the given file to the metadata of a node, using tree-sitter.
transformers

Structs§

CodeOutliner
Generates a summary of a code file.
CodeOutlinerBuilder
Builder for CodeOutliner.
CodeParser
CodeSplitter
Splits code files into meaningful chunks
CodeSplitterBuilder
Builder for CodeSplitter.
CodeTree
A code tree is a queryable representation of code
ReferencesAndDefinitions

Enums§

ChunkSize
Represents the size of a chunk, either as a fixed number of bytes or a range of bytes.
SupportedLanguages
Enum representing the supported programming languages in the Swiftide project.