use std::sync::Arc;
use crate::project::{PkgHandle, file::FileContents};
use super::{diagnostic::FileDiagnostics, location::OriginTable};
pub struct BuildCtx {
pub pkg: PkgHandle,
pub origins: OriginTable,
pub diagnostics: FileDiagnostics,
}
impl BuildCtx {
pub fn new(pkg: PkgHandle, file: Arc<FileContents>) -> Self {
Self {
pkg,
origins: OriginTable::new(file),
diagnostics: FileDiagnostics::default(),
}
}
}