chore: Move Location type to language (#8527)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-02-28 12:41:31 +01:00 committed by GitHub
parent 2f6b290084
commit a3174be565
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View file

@ -90,6 +90,7 @@ use util::{
};
pub use fs::*;
pub use language::Location;
#[cfg(any(test, feature = "test-support"))]
pub use prettier::FORMAT_SUFFIX as TEST_PRETTIER_FORMAT_SUFFIX;
pub use project_core::project_settings;
@ -315,12 +316,6 @@ pub struct ProjectPath {
pub path: Arc<Path>,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct Location {
pub buffer: Model<Buffer>,
pub range: Range<language::Anchor>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct InlayHint {
pub position: language::Anchor,