Structs§
- Ruby
Name Path - Ruby
Visitor - Walks a Ruby file and emits its declarations into
parsed.
Enums§
Functions§
- collect_
ruby_ identifiers - extract_
name_ path - extract_
name_ segments - Extracts the namespace segments from a class/module name node by walking the
AST (not by string-splitting
::). A plain(constant)yields one segment; a(scope_resolution)likeA::Bwalks itsscopeandnamefields to yield["A", "B"]. - is_
descendable_ container - Container node kinds the visitor recurses through to find conditionally
declared symbols (e.g. a
definside anif). Excludesmethod/singleton_method, whose bodies are treated as leaves. - parse_
ruby_ tree - Parses Ruby source into a tree-sitter tree, or
Noneif parsing fails. - qualified_
internal_ name - Renders a
constant/scope_resolutionreference node into the internal$-joined name used as aCodeUnitkey (e.g.A::B->A$B). - ruby_
field_ scope_ for_ assignment_ left - ruby_
field_ short_ name - ruby_
node_ text - Reads the source text backing a tree-sitter node.
- ruby_
variable_ field_ name