mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-29 22:36:05 +03:00
refactor errors module
This commit is contained in:
parent
cce056be5d
commit
7a0827af48
@ -1,30 +0,0 @@
|
|||||||
//! Module containing errors returned when enforcing constraints in an Leo program
|
|
||||||
pub mod address;
|
|
||||||
pub use self::address::*;
|
|
||||||
|
|
||||||
pub mod boolean;
|
|
||||||
pub use self::boolean::*;
|
|
||||||
|
|
||||||
pub mod function;
|
|
||||||
pub use self::function::*;
|
|
||||||
|
|
||||||
pub mod expression;
|
|
||||||
pub use self::expression::*;
|
|
||||||
|
|
||||||
pub mod import;
|
|
||||||
pub use self::import::*;
|
|
||||||
|
|
||||||
pub mod integer;
|
|
||||||
pub use integer::*;
|
|
||||||
|
|
||||||
pub mod field;
|
|
||||||
pub use self::field::*;
|
|
||||||
|
|
||||||
pub mod group;
|
|
||||||
pub use self::group::*;
|
|
||||||
|
|
||||||
pub mod value;
|
|
||||||
pub use self::value::*;
|
|
||||||
|
|
||||||
pub mod statement;
|
|
||||||
pub use self::statement::*;
|
|
@ -1,5 +1,17 @@
|
|||||||
pub mod compiler;
|
pub mod compiler;
|
||||||
pub use self::compiler::*;
|
pub use self::compiler::*;
|
||||||
|
|
||||||
pub mod constraints;
|
pub mod expression;
|
||||||
pub use self::constraints::*;
|
pub use self::expression::*;
|
||||||
|
|
||||||
|
pub mod function;
|
||||||
|
pub use self::function::*;
|
||||||
|
|
||||||
|
pub mod import;
|
||||||
|
pub use self::import::*;
|
||||||
|
|
||||||
|
pub mod statement;
|
||||||
|
pub use self::statement::*;
|
||||||
|
|
||||||
|
pub mod value;
|
||||||
|
pub use self::value::*;
|
||||||
|
17
compiler/src/errors/value/mod.rs
Normal file
17
compiler/src/errors/value/mod.rs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
pub mod address;
|
||||||
|
pub use self::address::*;
|
||||||
|
|
||||||
|
pub mod boolean;
|
||||||
|
pub use self::boolean::*;
|
||||||
|
|
||||||
|
pub mod field;
|
||||||
|
pub use self::field::*;
|
||||||
|
|
||||||
|
pub mod group;
|
||||||
|
pub use self::group::*;
|
||||||
|
|
||||||
|
pub mod integer;
|
||||||
|
pub use self::integer::*;
|
||||||
|
|
||||||
|
pub mod value;
|
||||||
|
pub use self::value::*;
|
@ -1,4 +1,4 @@
|
|||||||
use crate::{errors::constraints::ImportError, ImportParser};
|
use crate::{errors::ImportError, ImportParser};
|
||||||
use leo_types::{Package, PackageAccess};
|
use leo_types::{Package, PackageAccess};
|
||||||
|
|
||||||
use std::{fs, fs::DirEntry, path::PathBuf};
|
use std::{fs, fs::DirEntry, path::PathBuf};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use crate::{errors::constraints::ImportError, ImportParser};
|
use crate::{errors::ImportError, ImportParser};
|
||||||
use leo_ast::LeoParser;
|
use leo_ast::LeoParser;
|
||||||
use leo_types::{ImportSymbol, Program, Span};
|
use leo_types::{ImportSymbol, Program, Span};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user