mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-26 11:55:04 +00:00
Rename ra_mbe -> mbe
This commit is contained in:
parent
d42ba63976
commit
2f45cfc415
19 changed files with 34 additions and 33 deletions
36
Cargo.lock
generated
36
Cargo.lock
generated
|
@ -635,6 +635,19 @@ version = "2.0.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
|
checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "mbe"
|
||||||
|
version = "0.0.0"
|
||||||
|
dependencies = [
|
||||||
|
"log",
|
||||||
|
"parser",
|
||||||
|
"rustc-hash",
|
||||||
|
"smallvec",
|
||||||
|
"syntax",
|
||||||
|
"test_utils",
|
||||||
|
"tt",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "memmap"
|
name = "memmap"
|
||||||
version = "0.7.0"
|
version = "0.7.0"
|
||||||
|
@ -894,8 +907,8 @@ dependencies = [
|
||||||
"difference",
|
"difference",
|
||||||
"goblin",
|
"goblin",
|
||||||
"libloading",
|
"libloading",
|
||||||
|
"mbe",
|
||||||
"memmap",
|
"memmap",
|
||||||
"ra_mbe",
|
|
||||||
"ra_proc_macro",
|
"ra_proc_macro",
|
||||||
"serde_derive",
|
"serde_derive",
|
||||||
"test_utils",
|
"test_utils",
|
||||||
|
@ -946,7 +959,7 @@ dependencies = [
|
||||||
name = "ra_cfg"
|
name = "ra_cfg"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ra_mbe",
|
"mbe",
|
||||||
"rustc-hash",
|
"rustc-hash",
|
||||||
"syntax",
|
"syntax",
|
||||||
"tt",
|
"tt",
|
||||||
|
@ -1006,12 +1019,12 @@ dependencies = [
|
||||||
"indexmap",
|
"indexmap",
|
||||||
"itertools",
|
"itertools",
|
||||||
"log",
|
"log",
|
||||||
|
"mbe",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"profile",
|
"profile",
|
||||||
"ra_cfg",
|
"ra_cfg",
|
||||||
"ra_db",
|
"ra_db",
|
||||||
"ra_hir_expand",
|
"ra_hir_expand",
|
||||||
"ra_mbe",
|
|
||||||
"rustc-hash",
|
"rustc-hash",
|
||||||
"smallvec",
|
"smallvec",
|
||||||
"stdx",
|
"stdx",
|
||||||
|
@ -1027,10 +1040,10 @@ dependencies = [
|
||||||
"arena",
|
"arena",
|
||||||
"either",
|
"either",
|
||||||
"log",
|
"log",
|
||||||
|
"mbe",
|
||||||
"parser",
|
"parser",
|
||||||
"profile",
|
"profile",
|
||||||
"ra_db",
|
"ra_db",
|
||||||
"ra_mbe",
|
|
||||||
"rustc-hash",
|
"rustc-hash",
|
||||||
"syntax",
|
"syntax",
|
||||||
"test_utils",
|
"test_utils",
|
||||||
|
@ -1109,19 +1122,6 @@ dependencies = [
|
||||||
"text_edit",
|
"text_edit",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "ra_mbe"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"log",
|
|
||||||
"parser",
|
|
||||||
"rustc-hash",
|
|
||||||
"smallvec",
|
|
||||||
"syntax",
|
|
||||||
"test_utils",
|
|
||||||
"tt",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ra_proc_macro"
|
name = "ra_proc_macro"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
@ -1249,6 +1249,7 @@ dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"lsp-server",
|
"lsp-server",
|
||||||
"lsp-types",
|
"lsp-types",
|
||||||
|
"mbe",
|
||||||
"mimalloc",
|
"mimalloc",
|
||||||
"oorandom",
|
"oorandom",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
|
@ -1262,7 +1263,6 @@ dependencies = [
|
||||||
"ra_hir_ty",
|
"ra_hir_ty",
|
||||||
"ra_ide",
|
"ra_ide",
|
||||||
"ra_ide_db",
|
"ra_ide_db",
|
||||||
"ra_mbe",
|
|
||||||
"ra_project_model",
|
"ra_project_model",
|
||||||
"ra_ssr",
|
"ra_ssr",
|
||||||
"rayon",
|
"rayon",
|
||||||
|
|
|
@ -1,20 +1,21 @@
|
||||||
[package]
|
[package]
|
||||||
edition = "2018"
|
name = "mbe"
|
||||||
name = "ra_mbe"
|
version = "0.0.0"
|
||||||
version = "0.1.0"
|
|
||||||
authors = ["rust-analyzer developers"]
|
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
|
authors = ["rust-analyzer developers"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
doctest = false
|
doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
syntax = { path = "../syntax" }
|
|
||||||
parser = { path = "../parser" }
|
|
||||||
tt = { path = "../tt" }
|
|
||||||
rustc-hash = "1.1.0"
|
rustc-hash = "1.1.0"
|
||||||
smallvec = "1.2.0"
|
smallvec = "1.2.0"
|
||||||
log = "0.4.8"
|
log = "0.4.8"
|
||||||
|
|
||||||
|
syntax = { path = "../syntax" }
|
||||||
|
parser = { path = "../parser" }
|
||||||
|
tt = { path = "../tt" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
test_utils = { path = "../test_utils" }
|
test_utils = { path = "../test_utils" }
|
|
@ -14,7 +14,7 @@ libloading = "0.6.0"
|
||||||
memmap = "0.7"
|
memmap = "0.7"
|
||||||
|
|
||||||
tt = { path = "../tt" }
|
tt = { path = "../tt" }
|
||||||
ra_mbe = { path = "../ra_mbe" }
|
mbe = { path = "../mbe" }
|
||||||
ra_proc_macro = { path = "../ra_proc_macro" }
|
ra_proc_macro = { path = "../ra_proc_macro" }
|
||||||
test_utils = { path = "../test_utils" }
|
test_utils = { path = "../test_utils" }
|
||||||
|
|
||||||
|
|
|
@ -182,7 +182,7 @@ pub mod token_stream {
|
||||||
|
|
||||||
fn from_str(src: &str) -> Result<TokenStream, LexError> {
|
fn from_str(src: &str) -> Result<TokenStream, LexError> {
|
||||||
let (subtree, _token_map) =
|
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();
|
let tt: tt::TokenTree = subtree.into();
|
||||||
Ok(tt.into())
|
Ok(tt.into())
|
||||||
|
|
|
@ -15,4 +15,4 @@ syntax = { path = "../syntax" }
|
||||||
tt = { path = "../tt" }
|
tt = { path = "../tt" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
mbe = { path = "../ra_mbe", package = "ra_mbe" }
|
mbe = { path = "../mbe" }
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
use std::slice::Iter as SliceIter;
|
use std::slice::Iter as SliceIter;
|
||||||
|
|
||||||
use syntax::SmolStr;
|
use tt::SmolStr;
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub enum CfgExpr {
|
pub enum CfgExpr {
|
||||||
|
|
|
@ -28,7 +28,7 @@ syntax = { path = "../syntax" }
|
||||||
profile = { path = "../profile" }
|
profile = { path = "../profile" }
|
||||||
hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" }
|
hir_expand = { path = "../ra_hir_expand", package = "ra_hir_expand" }
|
||||||
test_utils = { path = "../test_utils" }
|
test_utils = { path = "../test_utils" }
|
||||||
mbe = { path = "../ra_mbe", package = "ra_mbe" }
|
mbe = { path = "../mbe" }
|
||||||
ra_cfg = { path = "../ra_cfg" }
|
ra_cfg = { path = "../ra_cfg" }
|
||||||
tt = { path = "../tt" }
|
tt = { path = "../tt" }
|
||||||
|
|
||||||
|
|
|
@ -19,5 +19,5 @@ syntax = { path = "../syntax" }
|
||||||
parser = { path = "../parser" }
|
parser = { path = "../parser" }
|
||||||
profile = { path = "../profile" }
|
profile = { path = "../profile" }
|
||||||
tt = { path = "../tt" }
|
tt = { path = "../tt" }
|
||||||
mbe = { path = "../ra_mbe", package = "ra_mbe" }
|
mbe = { path = "../mbe" }
|
||||||
test_utils = { path = "../test_utils"}
|
test_utils = { path = "../test_utils"}
|
||||||
|
|
|
@ -60,5 +60,5 @@ winapi = "0.3.8"
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
expect = { path = "../expect" }
|
expect = { path = "../expect" }
|
||||||
test_utils = { path = "../test_utils" }
|
test_utils = { path = "../test_utils" }
|
||||||
mbe = { path = "../ra_mbe", package = "ra_mbe" }
|
mbe = { path = "../mbe" }
|
||||||
tt = { path = "../tt" }
|
tt = { path = "../tt" }
|
||||||
|
|
|
@ -195,7 +195,7 @@ impl TidyDocs {
|
||||||
"ra_hir",
|
"ra_hir",
|
||||||
"ra_hir_expand",
|
"ra_hir_expand",
|
||||||
"ra_ide",
|
"ra_ide",
|
||||||
"ra_mbe",
|
"mbe",
|
||||||
"parser",
|
"parser",
|
||||||
"profile",
|
"profile",
|
||||||
"ra_project_model",
|
"ra_project_model",
|
||||||
|
|
Loading…
Reference in a new issue