Skip to main content

raw_statement_texts

Function raw_statement_texts 

Source
pub fn raw_statement_texts(stmts: &[TsStmt]) -> Vec<String>
Expand description

1B.5e: the text of every opaque statement (TsStmt::raw, raw_using, a Verbatim) in stmts, at any depth — inside a function body, a try, a switch case or an object method, not only at the top level. A producer that reads a tree for the names it uses asks for this to check what the tree cannot see: a shallow raw_text() over the top-level statements alone misses a nested one.