Skip to main content

text_idents

Function text_idents 

Source
pub fn text_idents(program: &TsProgram) -> Vec<String>
Expand description

1A.39b (Decision D): every TsExpr::Ident of program that is not an identifier path ([A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*)*) and every TsBindingName::Ident that is not an identifier, sorted and deduplicated. Such a text is expression text or a name built from it held in a variable-like node: it hides what it uses from unbound_names and from the printer’s precedence. Member chains (globalThis.Number, this.state) pass: they print as they read and their head is what the closure sees.