The pipeline is finally reasonably clean

This commit is contained in:
2023-09-12 01:26:46 +01:00
parent 6693d93944
commit 8c866967a9
86 changed files with 1959 additions and 1393 deletions

View File

@@ -6,7 +6,7 @@ use itertools::Itertools;
use super::{Entry, Lexeme};
use crate::error::{ErrorPosition, ProjectError};
use crate::utils::BoxedIter;
use crate::{Location, Tok};
use crate::{Location, Tok, VName};
#[derive(Debug)]
pub struct LineNeedsPrefix {
@@ -234,7 +234,7 @@ impl ProjectError for GlobExport {
pub struct LexError {
pub errors: Vec<Simple<char>>,
pub source: Rc<String>,
pub file: Rc<Vec<String>>,
pub file: VName,
}
impl ProjectError for LexError {
fn description(&self) -> &str {
@@ -244,7 +244,7 @@ impl ProjectError for LexError {
let file = self.file.clone();
Box::new(self.errors.iter().map(move |s| ErrorPosition {
location: Location::Range {
file: file.clone(),
file: Rc::new(file.clone()),
range: s.span(),
source: self.source.clone(),
},