pub type ScopeResolverHandle = Arc<dyn ScopeResolver + Send + Sync>;Expand description
N.1.4b (2026-06-10): a sharable, thread-safe scope resolver
handle threaded through grammar dispatch. The host wraps the
active document’s Arc<SyntaxSnapshot> (which impls
lattice_grammar::ScopeResolver) in this alias, bundles it into a
DispatchEnv, and passes it to Document::dispatch_with_env;
the actor hands it to execute_with_env so tree-sitter text objects
(af/ac/aa/al) resolve against the live tree. Send + Sync
because the actor message crosses the dispatch channel onto the
document-actor thread. The bare ScopeResolver trait lives in
lattice-grammar (tree-sitter-agnostic); this threading-layer
alias adds the Arc + Send + Sync shape per the handle
convention (cf. CommandRegistryHandle).
Aliased Type§
pub struct ScopeResolverHandle { /* private fields */ }