Clean up project imports

This commit is contained in:
Jeff 2024-09-02 04:27:11 -04:00
parent a5a35b6d8c
commit d32061ebba
5 changed files with 7 additions and 8 deletions

View File

@ -2,7 +2,7 @@
use annotate_snippets::{Level, Renderer, Snippet};
use std::fmt::Display;
use crate::{ast::Span, AnalysisError, ContextError, LexError, ParseError, RuntimeError};
use crate::{Span, AnalysisError, ContextError, LexError, ParseError, RuntimeError};
/// An error that occurred during the execution of the Dust language and its
/// corresponding source code.

View File

@ -5,7 +5,7 @@
//! - [`Lexer`], which lexes the input a token at a time
use std::fmt::{self, Display, Formatter};
use crate::{ast::Span, Token};
use crate::{Span, Token};
/// Lexes the input and return a vector of tokens and their positions.
///

View File

@ -34,7 +34,7 @@ pub mod vm;
pub use analyzer::{analyze, AnalysisError, Analyzer};
pub use ast::{AbstractSyntaxTree, AstError, Expression, Node, Span, Statement};
pub use built_in_function::{BuiltInFunction, BuiltInFunctionError};
pub use constructor::Constructor;
pub use constructor::{ConstructError, Constructor};
pub use context::{Context, ContextData, ContextError};
pub use core_library::core_library;
pub use dust_error::DustError;

View File

@ -17,7 +17,7 @@ use std::{
use serde::{Deserialize, Serialize};
use crate::{constructor::Constructor, BuiltInFunction, Identifier};
use crate::{Constructor, BuiltInFunction, Identifier};
/// Description of a kind of value.
///

View File

@ -20,10 +20,9 @@ use crate::{
OperatorExpression, PrimitiveValueExpression, RangeExpression, Span, Statement,
StructDefinition, StructExpression,
},
constructor::ConstructError,
parse, Analyzer, BuiltInFunctionError, Context, ContextData, ContextError, DustError,
Evaluation, Expression, Function, FunctionCallError, Identifier, ParseError, StructType, Type,
Value, ValueData, ValueError,
parse, Analyzer, BuiltInFunctionError, ConstructError, Context, ContextData, ContextError,
DustError, Evaluation, Expression, Function, FunctionCallError, Identifier, ParseError,
StructType, Type, Value, ValueData, ValueError,
};
/// Run the source code and return the result.