mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
migrate analysis and server to 2018
This commit is contained in:
parent
2dd6858d03
commit
bb298158eb
21 changed files with 42 additions and 36 deletions
|
@ -1,13 +1,13 @@
|
|||
use std::sync::Arc;
|
||||
use ra_syntax::File;
|
||||
use ra_editor::LineIndex;
|
||||
use {
|
||||
use crate::{
|
||||
FileId,
|
||||
db::{Query, QueryCtx, QueryRegistry},
|
||||
symbol_index::SymbolIndex,
|
||||
};
|
||||
|
||||
pub(crate) use db::{file_text, file_set};
|
||||
pub(crate) use crate::db::{file_text, file_set};
|
||||
|
||||
pub(crate) fn file_syntax(ctx: QueryCtx, file_id: FileId) -> File {
|
||||
(&*ctx.get(FILE_SYNTAX, file_id)).clone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue