[fine] File name in error messages
Going to need to normalize that name though, because right now it really *really* sucks to have a big \\?\ kinda name. Probably normalize it relative to the base directory.
This commit is contained in:
parent
a21f18da6e
commit
1199646e29
16 changed files with 52 additions and 34 deletions
|
|
@ -105,7 +105,8 @@ impl Runtime {
|
|||
ModuleSource::SourceText(source) => {
|
||||
let source: Rc<str> = source.into();
|
||||
let (tree, lines) = parse(&source);
|
||||
let semantics = Rc::new(Semantics::new(source, tree, lines));
|
||||
let semantics =
|
||||
Rc::new(Semantics::new(name.clone().into(), source, tree, lines));
|
||||
|
||||
let mut normalized_imports = Vec::new();
|
||||
for import in semantics.imports() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue