From ec55e2e8f0d880eaefffbc6705107775092ce831 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Thu, 14 Oct 2021 06:30:55 -0700 Subject: [PATCH] Moving modules around --- schala-lang/language/src/lib.rs | 1 - schala-lang/language/src/symbol_table.rs | 3 ++- schala-lang/language/src/{ => symbol_table}/source_map.rs | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename schala-lang/language/src/{ => symbol_table}/source_map.rs (100%) diff --git a/schala-lang/language/src/lib.rs b/schala-lang/language/src/lib.rs index 54b45b9..2b97e3d 100644 --- a/schala-lang/language/src/lib.rs +++ b/schala-lang/language/src/lib.rs @@ -30,7 +30,6 @@ mod scope_resolution; mod builtin; mod reduced_ast; mod eval; -mod source_map; mod error; mod schala; diff --git a/schala-lang/language/src/symbol_table.rs b/schala-lang/language/src/symbol_table.rs index 2ba2023..d1fc056 100644 --- a/schala-lang/language/src/symbol_table.rs +++ b/schala-lang/language/src/symbol_table.rs @@ -5,7 +5,6 @@ use std::fmt; use std::fmt::Write; use crate::tokenizing::LineNumber; -use crate::source_map::SourceMap; use crate::ast; use crate::ast::{ItemId, TypeBody, TypeSingletonName, Signature, Statement, StatementKind, ModuleSpecifier}; use crate::typechecking::TypeName; @@ -24,6 +23,8 @@ macro_rules! fqsn { }; } +mod source_map; +use source_map::SourceMap; mod symbol_trie; use symbol_trie::SymbolTrie; mod test; diff --git a/schala-lang/language/src/source_map.rs b/schala-lang/language/src/symbol_table/source_map.rs similarity index 100% rename from schala-lang/language/src/source_map.rs rename to schala-lang/language/src/symbol_table/source_map.rs