refactor errors module

This commit is contained in:
collin 2020-07-08 03:18:30 -07:00
parent cce056be5d
commit 7a0827af48
15 changed files with 33 additions and 34 deletions

View File

@ -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::*;

View File

@ -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::*;

View 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::*;

View File

@ -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};

View File

@ -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};