Skip to main content

Crate sinter_extract

Crate sinter_extract 

Source

Structs§

Extractor
One reusable extractor per (language, thread): parser and compiled query are pooled here, never rebuilt per file.
FileFacts
Everything extraction produces for one file. Content-addressed: the hash is the incrementality key — same bytes, same facts. The persisted set of FileFacts is the source of truth every derived table rebuilds from.
LanguageSpec
ManifestSpec
A language is data: a grammar, a capture query, and comment node kinds. The engine consumes only this struct — adding a language adds a row here and a .scm file, never engine code.
ModuleRoot
A discovered package root: files under dir belong to package name for language language.

Enums§

ExtractError

Statics§

LANGUAGES

Functions§

manifest_root
Parse one candidate file into a module root, if its basename matches a language’s manifest spec. rel_path is repo-relative.
spec_for_path
Spec for a file, by extension.