mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 13:10:19 +00:00
8 lines
272 B
Rust
8 lines
272 B
Rust
|
use crate::{ir::SourceProgram, parser::parse_statements, type_check::type_check_program};
|
||
|
|
||
|
#[salsa::tracked]
|
||
|
pub fn compile(db: &dyn crate::Db, source_program: SourceProgram) {
|
||
|
let program = parse_statements(db, source_program);
|
||
|
type_check_program(db, program);
|
||
|
}
|