Structs§
- Enclosing
Context - Lexical
Scope Cache - One scan’s memo of lexical scope reconstructions for one file, keyed by the reconstruction’s anchor range and flags, with the file’s recovered namespace regions that the key and the reconstruction both read.
- ScanCtx
- Scan
State
Enums§
- Bare
Call Target Resolution - Block
Using Call Target Resolution - Lexical
Scope Resolution - Qualified
Receiver Base - What a receiver spelled as a qualified name denotes.
Functions§
- build_
source_ using_ index - Build the per-file structured using index for
file. - effective_
using_ bindings_ for_ name nodemay be any node offile’s tree; the projection reaches the tree root itself when it needs one.Node::parentre-descends from the root on every call (tree-sitter 0.24+), so climbing to the root eagerly at each call site cost a near-full-AST scan per reference on a large flat file (#1927); a name with no candidate bindings never pays for it.- enclosing_
lexical_ scope_ components - enclosing_
namespace_ components - initialized_
ordinary_ type_ imports - ordinary_
using_ declaration_ type_ node - prepare_
file - prewarm_
project_ using_ index - Build the immutable project-wide using index before a parallel file scan.
- qualified_
receiver_ base - resolve_
bare_ call_ target - resolve_
block_ using_ call_ target - Resolve a direct using-declaration in the nearest concrete block before
class-member lookup. A block declaration such as
using std::swap;adds that name to the block scope and hides a same-named member. If the imported target is not indexed, retain its structured path as boundary evidence. - resolve_
ordinary_ using_ declaration_ owner - resolve_
type_ components_ lexically_ at - resolve_
type_ components_ lexically_ at_ preserving_ alias - Resolve a type at its lexical reference site while retaining the identity of an alias that C++ lookup selects.
- resolve_
type_ node_ lexically - resolve_
type_ node_ lexically_ for_ target - resolve_
using_ enum_ declaration_ owner - scan_
prepared_ file - using_
enum_ declaration_ type_ node