Rename ra_hir_expand -> hir_expand
This commit is contained in:
parent
ed20a857f4
commit
b7aa4898e0
40
Cargo.lock
generated
40
Cargo.lock
generated
@ -463,6 +463,23 @@ dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hir_expand"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"arena",
|
||||
"base_db",
|
||||
"either",
|
||||
"log",
|
||||
"mbe",
|
||||
"parser",
|
||||
"profile",
|
||||
"rustc-hash",
|
||||
"syntax",
|
||||
"test_utils",
|
||||
"tt",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "home"
|
||||
version = "0.5.3"
|
||||
@ -1017,11 +1034,11 @@ dependencies = [
|
||||
"arrayvec",
|
||||
"base_db",
|
||||
"either",
|
||||
"hir_expand",
|
||||
"itertools",
|
||||
"log",
|
||||
"profile",
|
||||
"ra_hir_def",
|
||||
"ra_hir_expand",
|
||||
"ra_hir_ty",
|
||||
"rustc-hash",
|
||||
"stdx",
|
||||
@ -1040,13 +1057,13 @@ dependencies = [
|
||||
"either",
|
||||
"expect",
|
||||
"fst",
|
||||
"hir_expand",
|
||||
"indexmap",
|
||||
"itertools",
|
||||
"log",
|
||||
"mbe",
|
||||
"once_cell",
|
||||
"profile",
|
||||
"ra_hir_expand",
|
||||
"rustc-hash",
|
||||
"smallvec",
|
||||
"stdx",
|
||||
@ -1055,23 +1072,6 @@ dependencies = [
|
||||
"tt",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ra_hir_expand"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"arena",
|
||||
"base_db",
|
||||
"either",
|
||||
"log",
|
||||
"mbe",
|
||||
"parser",
|
||||
"profile",
|
||||
"rustc-hash",
|
||||
"syntax",
|
||||
"test_utils",
|
||||
"tt",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ra_hir_ty"
|
||||
version = "0.1.0"
|
||||
@ -1084,11 +1084,11 @@ dependencies = [
|
||||
"chalk-solve",
|
||||
"ena",
|
||||
"expect",
|
||||
"hir_expand",
|
||||
"itertools",
|
||||
"log",
|
||||
"profile",
|
||||
"ra_hir_def",
|
||||
"ra_hir_expand",
|
||||
"rustc-hash",
|
||||
"scoped-tls",
|
||||
"smallvec",
|
||||
|
@ -1,9 +1,9 @@
|
||||
[package]
|
||||
edition = "2018"
|
||||
name = "ra_hir_expand"
|
||||
version = "0.1.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
name = "hir_expand"
|
||||
version = "0.0.0"
|
||||
license = "MIT OR Apache-2.0"
|
||||
authors = ["rust-analyzer developers"]
|
||||
edition = "2018"
|
||||
|
||||
[lib]
|
||||
doctest = false
|
@ -1,4 +1,4 @@
|
||||
//! `ra_hir_expand` deals with macro expansion.
|
||||
//! `hir_expand` deals with macro expansion.
|
||||
//!
|
||||
//! Specifically, it implements a concept of `MacroFile` -- a file whose syntax
|
||||
//! tree originates not from the text of some `FileId`, but from some macro
|
@ -20,6 +20,6 @@ stdx = { path = "../stdx" }
|
||||
syntax = { path = "../syntax" }
|
||||
base_db = { path = "../base_db" }
|
||||
profile = { path = "../profile" }
|
||||
hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" }
|
||||
hir_expand = { path = "../hir_expand" }
|
||||
hir_def = { path = "../ra_hir_def", package = "ra_hir_def" }
|
||||
hir_ty = { path = "../ra_hir_ty", package = "ra_hir_ty" }
|
||||
|
@ -815,7 +815,7 @@ pub struct MacroDef {
|
||||
impl MacroDef {
|
||||
/// FIXME: right now, this just returns the root module of the crate that
|
||||
/// defines this macro. The reasons for this is that macros are expanded
|
||||
/// early, in `ra_hir_expand`, where modules simply do not exist yet.
|
||||
/// early, in `hir_expand`, where modules simply do not exist yet.
|
||||
pub fn module(self, db: &dyn HirDatabase) -> Option<Module> {
|
||||
let krate = self.id.krate?;
|
||||
let module_id = db.crate_def_map(krate).root;
|
||||
|
@ -21,12 +21,11 @@ indexmap = "1.4.0"
|
||||
smallvec = "1.4.0"
|
||||
|
||||
stdx = { path = "../stdx" }
|
||||
|
||||
arena = { path = "../arena" }
|
||||
base_db = { path = "../base_db" }
|
||||
syntax = { path = "../syntax" }
|
||||
profile = { path = "../profile" }
|
||||
hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" }
|
||||
hir_expand = { path = "../hir_expand" }
|
||||
test_utils = { path = "../test_utils" }
|
||||
mbe = { path = "../mbe" }
|
||||
cfg = { path = "../cfg" }
|
||||
|
@ -19,7 +19,7 @@ rustc-hash = "1.1.0"
|
||||
stdx = { path = "../stdx" }
|
||||
|
||||
hir_def = { path = "../ra_hir_def", package = "ra_hir_def" }
|
||||
hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" }
|
||||
hir_expand = { path = "../hir_expand" }
|
||||
arena = { path = "../arena" }
|
||||
base_db = { path = "../base_db" }
|
||||
profile = { path = "../profile" }
|
||||
|
@ -193,7 +193,7 @@ fn finish(self) {
|
||||
|
||||
let poorly_documented = [
|
||||
"ra_hir",
|
||||
"ra_hir_expand",
|
||||
"hir_expand",
|
||||
"ra_ide",
|
||||
"mbe",
|
||||
"parser",
|
||||
|
Loading…
Reference in New Issue
Block a user