mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Rename ra_tt -> tt
This commit is contained in:
parent
208b7bd7ba
commit
550d7fbe3c
22 changed files with 77 additions and 77 deletions
|
@ -1,15 +1,14 @@
|
|||
//! Rustc proc-macro server implementation with ra_tt
|
||||
//! Rustc proc-macro server implementation with tt
|
||||
//!
|
||||
//! Based on idea from https://github.com/fedochet/rust-proc-macro-expander
|
||||
//! The lib-proc-macro server backend is `TokenStream`-agnostic, such that
|
||||
//! we could provide any TokenStream implementation.
|
||||
//! The original idea from fedochet is using proc-macro2 as backend,
|
||||
//! we use ra_tt instead for better intergation with RA.
|
||||
//! we use tt instead for better intergation with RA.
|
||||
//!
|
||||
//! FIXME: No span and source file information is implemented yet
|
||||
|
||||
use crate::proc_macro::bridge::{self, server};
|
||||
use ra_tt as tt;
|
||||
|
||||
use std::collections::{Bound, HashMap};
|
||||
use std::hash::Hash;
|
||||
|
@ -153,9 +152,10 @@ pub struct TokenStreamBuilder {
|
|||
|
||||
/// Public implementation details for the `TokenStream` type, such as iterators.
|
||||
pub mod token_stream {
|
||||
use super::{tt, TokenStream, TokenTree};
|
||||
use std::str::FromStr;
|
||||
|
||||
use super::{TokenStream, TokenTree};
|
||||
|
||||
/// An iterator over `TokenStream`'s `TokenTree`s.
|
||||
/// The iteration is "shallow", e.g., the iterator doesn't recurse into delimited groups,
|
||||
/// and returns whole groups as token trees.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue