just 1.57.0

🤖 Just a command runner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

#[derive(Debug)]
pub(crate) struct Compilation<'src> {
  pub(crate) asts: HashMap<(Modulepath, PathBuf), Ast<'src>>,
  pub(crate) justfile: Justfile<'src>,
  pub(crate) overrides: HashMap<Number, String>,
  pub(crate) root: PathBuf,
}

impl<'src> Compilation<'src> {
  pub(crate) fn root_ast(&self) -> &Ast<'src> {
    self
      .asts
      .get(&(Modulepath::default(), self.root.clone()))
      .unwrap()
  }
}