Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/span/src/lib.rs')
-rw-r--r--crates/span/src/lib.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/span/src/lib.rs b/crates/span/src/lib.rs
index 6b363e9050..0fe3275863 100644
--- a/crates/span/src/lib.rs
+++ b/crates/span/src/lib.rs
@@ -3,10 +3,12 @@ use std::fmt::{self, Write};
use salsa::InternId;
+mod ast_id;
mod hygiene;
mod map;
pub use self::{
+ ast_id::{AstIdMap, AstIdNode, ErasedFileAstId, FileAstId},
hygiene::{SyntaxContextData, SyntaxContextId, Transparency},
map::{RealSpanMap, SpanMap},
};
@@ -26,10 +28,6 @@ pub struct FileRange {
pub range: TextRange,
}
-/// See crates\hir-expand\src\ast_id_map.rs
-/// This is a type erased FileAstId.
-pub type ErasedFileAstId = la_arena::Idx<syntax::SyntaxNodePtr>;
-
// The first index is always the root node's AstId
/// The root ast id always points to the encompassing file, using this in spans is discouraged as
/// any range relative to it will be effectively absolute, ruining the entire point of anchored