pub struct QueryEmitter<'src, 'g, R> { /* private fields */ }Expand description
Emits a compiled query from a BuildGraph.
Implementations§
Source§impl<'src, 'g, R: NodeKindResolver> QueryEmitter<'src, 'g, R>
impl<'src, 'g, R: NodeKindResolver> QueryEmitter<'src, 'g, R>
Sourcepub fn new(
graph: &'g BuildGraph<'src>,
type_info: &'g TypeInferenceResult<'src>,
resolver: R,
) -> Self
pub fn new( graph: &'g BuildGraph<'src>, type_info: &'g TypeInferenceResult<'src>, resolver: R, ) -> Self
Creates a new emitter.
Sourcepub fn with_trivia_kinds(self, kinds: Vec<NodeTypeId>) -> Self
pub fn with_trivia_kinds(self, kinds: Vec<NodeTypeId>) -> Self
Sets trivia node kinds (e.g., comments) to skip during execution.
Sourcepub fn emit(self) -> EmitResult<CompiledQuery>
pub fn emit(self) -> EmitResult<CompiledQuery>
Emits the compiled query.