Skip to main content

Module syntax

Module syntax 

Source
Expand description

Pure Ruby node helpers shared by the declaration walk, the structural spec, the import binder and both usage-graph scans.

These were free functions at the top of analyzer/ruby/mod.rs, above the RubyAnalyzer struct: nothing here needs an analyzer handle, only a tree_sitter::Node and the source text it points into.

Functionsยง

is_runtime_node
Whether an argument-list child is a runtime value rather than a parameter, comment or symbol-key slot. Also read by the parked Ruby value-semantics lowerer, which enumerates call arguments the same way.
ruby_call_arguments
ruby_first_call_argument
ruby_semantic_identifier_range
Returns the source range of the semantic identifier carried by a Ruby symbol.
single_static_string_content_node