Skip to main content

python_is_bare_string_statement

Function python_is_bare_string_statement 

Source
pub fn python_is_bare_string_statement(statement: &Node<'_>) -> bool
Expand description

Whether statement is a bare string statement: an expression_statement whose sole value is a string or concatenated_string, past any parentheses around it. Asked of a node alone, with no chain — the LOC walk’s \ finder descends to a statement that is a sibling’s descendant (#1819).