mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 07:05:47 +02:00
Add canonicalization to source & use paths (#421)
Also added file path print to FileNotFound error
This commit is contained in:
@ -24,6 +24,17 @@ pub struct ImportPattern {
|
||||
}
|
||||
|
||||
impl ImportPattern {
|
||||
pub fn new() -> Self {
|
||||
ImportPattern {
|
||||
head: ImportPatternHead {
|
||||
name: vec![],
|
||||
span: Span::unknown(),
|
||||
},
|
||||
members: vec![],
|
||||
hidden: HashSet::new(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn span(&self) -> Span {
|
||||
let mut spans = vec![self.head.span];
|
||||
|
||||
@ -50,3 +61,9 @@ impl ImportPattern {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for ImportPattern {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user