Rename ra_mbe -> mbe

This commit is contained in:
Aleksey Kladov 2020-08-13 10:08:11 +02:00
parent d42ba63976
commit 2f45cfc415
19 changed files with 34 additions and 33 deletions

36
Cargo.lock generated
View file

@ -635,6 +635,19 @@ version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
[[package]]
name = "mbe"
version = "0.0.0"
dependencies = [
"log",
"parser",
"rustc-hash",
"smallvec",
"syntax",
"test_utils",
"tt",
]
[[package]]
name = "memmap"
version = "0.7.0"
@ -894,8 +907,8 @@ dependencies = [
"difference",
"goblin",
"libloading",
"mbe",
"memmap",
"ra_mbe",
"ra_proc_macro",
"serde_derive",
"test_utils",
@ -946,7 +959,7 @@ dependencies = [
name = "ra_cfg"
version = "0.1.0"
dependencies = [
"ra_mbe",
"mbe",
"rustc-hash",
"syntax",
"tt",
@ -1006,12 +1019,12 @@ dependencies = [
"indexmap",
"itertools",
"log",
"mbe",
"once_cell",
"profile",
"ra_cfg",
"ra_db",
"ra_hir_expand",
"ra_mbe",
"rustc-hash",
"smallvec",
"stdx",
@ -1027,10 +1040,10 @@ dependencies = [
"arena",
"either",
"log",
"mbe",
"parser",
"profile",
"ra_db",
"ra_mbe",
"rustc-hash",
"syntax",
"test_utils",
@ -1109,19 +1122,6 @@ dependencies = [
"text_edit",
]
[[package]]
name = "ra_mbe"
version = "0.1.0"
dependencies = [
"log",
"parser",
"rustc-hash",
"smallvec",
"syntax",
"test_utils",
"tt",
]
[[package]]
name = "ra_proc_macro"
version = "0.1.0"
@ -1249,6 +1249,7 @@ dependencies = [
"log",
"lsp-server",
"lsp-types",
"mbe",
"mimalloc",
"oorandom",
"parking_lot",
@ -1262,7 +1263,6 @@ dependencies = [
"ra_hir_ty",
"ra_ide",
"ra_ide_db",
"ra_mbe",
"ra_project_model",
"ra_ssr",
"rayon",

View file

@ -1,20 +1,21 @@
[package]
edition = "2018"
name = "ra_mbe"
version = "0.1.0"
authors = ["rust-analyzer developers"]
name = "mbe"
version = "0.0.0"
license = "MIT OR Apache-2.0"
authors = ["rust-analyzer developers"]
edition = "2018"
[lib]
doctest = false
[dependencies]
syntax = { path = "../syntax" }
parser = { path = "../parser" }
tt = { path = "../tt" }
rustc-hash = "1.1.0"
smallvec = "1.2.0"
log = "0.4.8"
syntax = { path = "../syntax" }
parser = { path = "../parser" }
tt = { path = "../tt" }
[dev-dependencies]
test_utils = { path = "../test_utils" }

View file

@ -14,7 +14,7 @@ libloading = "0.6.0"
memmap = "0.7"
tt = { path = "../tt" }
ra_mbe = { path = "../ra_mbe" }
mbe = { path = "../mbe" }
ra_proc_macro = { path = "../ra_proc_macro" }
test_utils = { path = "../test_utils" }

View file

@ -182,7 +182,7 @@ pub mod token_stream {
fn from_str(src: &str) -> Result<TokenStream, LexError> {
let (subtree, _token_map) =
ra_mbe::parse_to_token_tree(src).ok_or("Failed to parse from mbe")?;
mbe::parse_to_token_tree(src).ok_or("Failed to parse from mbe")?;
let tt: tt::TokenTree = subtree.into();
Ok(tt.into())

View file

@ -15,4 +15,4 @@ syntax = { path = "../syntax" }
tt = { path = "../tt" }
[dev-dependencies]
mbe = { path = "../ra_mbe", package = "ra_mbe" }
mbe = { path = "../mbe" }

View file

@ -4,7 +4,7 @@
use std::slice::Iter as SliceIter;
use syntax::SmolStr;
use tt::SmolStr;
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum CfgExpr {

View file

@ -28,7 +28,7 @@ syntax = { path = "../syntax" }
profile = { path = "../profile" }
hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" }
test_utils = { path = "../test_utils" }
mbe = { path = "../ra_mbe", package = "ra_mbe" }
mbe = { path = "../mbe" }
ra_cfg = { path = "../ra_cfg" }
tt = { path = "../tt" }

View file

@ -19,5 +19,5 @@ syntax = { path = "../syntax" }
parser = { path = "../parser" }
profile = { path = "../profile" }
tt = { path = "../tt" }
mbe = { path = "../ra_mbe", package = "ra_mbe" }
mbe = { path = "../mbe" }
test_utils = { path = "../test_utils"}

View file

@ -60,5 +60,5 @@ winapi = "0.3.8"
[dev-dependencies]
expect = { path = "../expect" }
test_utils = { path = "../test_utils" }
mbe = { path = "../ra_mbe", package = "ra_mbe" }
mbe = { path = "../mbe" }
tt = { path = "../tt" }

View file

@ -195,7 +195,7 @@ impl TidyDocs {
"ra_hir",
"ra_hir_expand",
"ra_ide",
"ra_mbe",
"mbe",
"parser",
"profile",
"ra_project_model",