Skip to main content

string_literal_value

Function string_literal_value 

Source
pub fn string_literal_value(
    source_file: &SourceFile,
    string: &StringLiteralValue,
) -> Wtf8Buf
Expand description

The value of a string literal.

The parser has nowhere to keep a lone surrogate in the value it hands over, and leaves a replacement character standing in for one, so a literal that carries any is read again from the source it was written in.