analyze

Function analyze 

Source
pub fn analyze<'src>(
    text: &'src str,
    path: &'src str,
) -> Result<(AnalyzedProgram<'src>, Vec<Diagnostic<'src>>), Vec<Diagnostic<'src>>>
Expand description

Analyzes rush source code and returns an analyzed (annotated) AST. The Ok(_) variant also returns non-error diagnostics. However, the Err(_) variant returns a Vec<Diagnostic> which contains at least one error