Skip to main content

Module extractor

Module extractor 

Source

Structs§

EnclosingContext
ScanCtx
ScanState

Enums§

BareCallTargetResolution
BlockUsingCallTargetResolution
LexicalScopeResolution

Functions§

build_source_using_index
Build the per-file structured using index for file.
effective_using_bindings_for_name
node may be any node of file’s tree; the projection reaches the tree root itself when it needs one. Node::parent re-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.
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_node_lexically
resolve_type_node_lexically_for_target
resolve_using_enum_declaration_owner
scan_prepared_file
using_enum_declaration_type_node