Skip to main content

parse_ruby_require_call

Function parse_ruby_require_call 

Source
pub fn parse_ruby_require_call(
    node: Node<'_>,
    source: &str,
) -> Option<ImportInfo>
Expand description

Parses a require/require_relative/load/autoload call into an ImportInfo. The required path string is stored in identifier; the kind is recoverable from raw_snippet.