Function passerine::compiler::hoist::hoist[][src]

pub fn hoist(cst: Spanned<CST>) -> Result<(Spanned<SST>, Scope), Syntax>

Simple function that a scoped syntax tree (SST) from an CST. Replaces all symbols with unique identifiers; symbols by the same name in different scopes will get different identifiers. Also resolves closure captures and closure hoisting.