chore: add Planner

This commit is contained in:
Shunsuke Shibayama 2023-10-05 15:10:27 +09:00
parent 3085229801
commit e71c0d7720
7 changed files with 250 additions and 14 deletions

View file

@ -1,6 +1,7 @@
use std::path::{Path, PathBuf};
use erg_common::config::ErgConfig;
use erg_common::pathutil::NormalizedPathBuf;
use crate::context::Context;
@ -48,7 +49,7 @@ impl SharedCompilerResource {
self_
}
pub fn inherit(&self, path: PathBuf) -> Self {
pub fn inherit<P: Into<NormalizedPathBuf>>(&self, path: P) -> Self {
let mut _self = self.clone();
_self.promises.path = path.into();
_self