Skip to main content

reconstruct

Function reconstruct 

Source
pub fn reconstruct<T, N>(root: N) -> Result<T, ReconstructError>
where N: ExternalCstNode, T: Reconstruct<N>,
Expand description

Reconstructs a typed syntax target from a parser-specific CST root.

ยงErrors

Returns ReconstructError when the root cannot reconstruct T.