mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
WIP: submodule resolution bug
This commit is contained in:
parent
1b824d78e1
commit
26c758e67f
11 changed files with 169 additions and 37 deletions
|
@ -6,6 +6,7 @@ use std::fmt::Write as _;
|
|||
use erg_common::consts::ERG_MODE;
|
||||
use erg_common::error::Location;
|
||||
use erg_common::io::Input;
|
||||
use erg_common::pathutil::NormalizedPathBuf;
|
||||
use erg_common::set::Set as HashSet;
|
||||
// use erg_common::dict::Dict as HashMap;
|
||||
use erg_common::traits::{Locational, NestedDisplay, Stream};
|
||||
|
@ -6167,6 +6168,7 @@ pub struct InlineModule {
|
|||
pub input: Input,
|
||||
pub ast: AST,
|
||||
pub import: Call,
|
||||
pub module_path: NormalizedPathBuf,
|
||||
}
|
||||
|
||||
impl NestedDisplay for InlineModule {
|
||||
|
@ -6188,7 +6190,12 @@ impl InlineModule {
|
|||
}
|
||||
|
||||
impl InlineModule {
|
||||
pub const fn new(input: Input, ast: AST, import: Call) -> Self {
|
||||
Self { input, ast, import }
|
||||
pub const fn new(input: Input, ast: AST, import: Call, module_path: NormalizedPathBuf) -> Self {
|
||||
Self {
|
||||
input,
|
||||
ast,
|
||||
import,
|
||||
module_path,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue