Skip to main content

python_plain_string_literal

Function python_plain_string_literal 

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

The text one plain string literal denotes.

Prefixed strings, interpolations, escapes, implicit concatenations, and malformed shapes return None. The returned slice is always the exact string_content AST span, never text recovered by delimiter parsing.