Skip to main content

LAMBDA_WILDCARD_PREFIX

Constant LAMBDA_WILDCARD_PREFIX 

Source
pub const LAMBDA_WILDCARD_PREFIX: &str = "__wild";
Expand description

#2896: the prefix of the hidden name a wildcard lambda parameter (_) is given — __wild<offset>, with an empty span at the _. The parameter takes its type from the expected function type like a named one; the unique name keeps (_, _) => … from emitting duplicate TS identifiers, and no user identifier can spell it, so nothing in the body can refer to it.