mirascript-core 0.1.105

Compiler and bytecode definitions for the MiraScript language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Conservative, intraprocedural reachability analysis. This pass never changes the AST or bytecode.

mod analyzer;
mod flow;

use crate::{diagnostic::DiagnosticsCollector, parser::Script};

use analyzer::Analyzer;
use flow::Flow;

pub(crate) fn analyze(script: &Script<'_>, diagnostics: &mut DiagnosticsCollector<'_, '_>) {
    Analyzer::new(diagnostics).block(&script.0, script.1.as_deref(), false);
}