Skip to main content

Module extractor

Module extractor 

Source

Structs§

EnclosingContext
LexicalScopeCache
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
ScanState

Enums§

BareCallTargetResolution
BlockUsingCallTargetResolution
LexicalScopeResolution
QualifiedReceiverBase
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
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.
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