Skip to main content

decode_string_literal

Function decode_string_literal 

Source
pub fn decode_string_literal(
    lexeme: &str,
    span: Span,
) -> Result<String, CompileError>
Expand description

The value of a hole-free string lexeme (any form), for callers that hold the lexeme rather than the surrounding source. span locates the lexeme in the file so a (normally unreachable — the lexer already validated it) error points at the right place.