Skip to main content

static_string_value

Function static_string_value 

Source
pub fn static_string_value(e: &Expr) -> Option<String>
Expand description

If e is a literal string / single-segment interpolated string / bareword, return its constant text. Used for require "LITERAL" / require Mod::Name. Returns None for any dynamic expression — the analyzer can’t follow those.