Deduplicate Edition enum

This commit is contained in:
Lukas Wirth 2024-04-14 15:29:01 +02:00
parent e7852803c5
commit 9c75e9fa7d
8 changed files with 65 additions and 62 deletions

View file

@ -4,11 +4,11 @@
use std::{fmt, hash::Hash};
use stdx::{always, itertools::Itertools};
use syntax::{TextRange, TextSize};
use vfs::FileId;
use crate::{
ErasedFileAstId, Span, SpanAnchor, SpanData, SyntaxContextId, ROOT_ERASED_FILE_AST_ID,
ErasedFileAstId, Span, SpanAnchor, SpanData, SyntaxContextId, TextRange, TextSize,
ROOT_ERASED_FILE_AST_ID,
};
/// Maps absolute text ranges for the corresponding file to the relevant span data.