From 67aa158e1373b1eb2b6de152f21b095674c5e303 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 1 Jul 2024 14:17:49 -0700 Subject: [PATCH] more --- rox_compiler/src/compile.rs | 10 +++++----- src/main.rs | 26 ++++++++++++++------------ 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/rox_compiler/src/compile.rs b/rox_compiler/src/compile.rs index 190ed6e..8871be0 100644 --- a/rox_compiler/src/compile.rs +++ b/rox_compiler/src/compile.rs @@ -17,7 +17,7 @@ use crate::common::{sanitize,Style,PropertiesOverride}; //eventually: #[derive(Debug)] #[allow(dead_code)]//idk why this thinks it's dead code, the errors are printed out in various places -enum QueryResolveError{ +pub enum QueryResolveError{ NotFound,//0 results Ambiguous,//>1 results JoinError(tokio::task::JoinError), @@ -234,7 +234,7 @@ struct CompileNode{ } #[derive(Debug)] -enum CompileNodeError{ +pub enum CompileNodeError{ IO(std::io::Error), ScriptWithOverrides(ScriptWithOverridesError), InvalidHintOrClass(Option,ScriptHint), @@ -375,7 +375,7 @@ impl CompileNode{ } #[derive(Debug)] -enum ScriptHint{ +pub enum ScriptHint{ Script, LocalScript, ModuleScript, @@ -409,8 +409,8 @@ enum TooComplicated{ } pub struct CompileConfig{ - input_folder:PathBuf, - style:Option