mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
parent
2b69c84396
commit
fdbd6bb11a
171 changed files with 419 additions and 29 deletions
|
@ -1,7 +1,7 @@
|
|||
/// `mbe` (short for Macro By Example) crate contains code for handling
|
||||
/// `macro_rules` macros. It uses `TokenTree` (from `ra_tt` package) as the
|
||||
/// interface, although it contains some code to bridge `SyntaxNode`s and
|
||||
/// `TokenTree`s as well!
|
||||
//! `mbe` (short for Macro By Example) crate contains code for handling
|
||||
//! `macro_rules` macros. It uses `TokenTree` (from `ra_tt` package) as the
|
||||
//! interface, although it contains some code to bridge `SyntaxNode`s and
|
||||
//! `TokenTree`s as well!
|
||||
|
||||
mod parser;
|
||||
mod mbe_expander;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use crate::{
|
||||
mbe_expander::{Binding, Bindings, Fragment},
|
||||
parser::{parse_pattern, Op, RepeatKind, Separator},
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_parser::{Token, TokenSource};
|
||||
use ra_syntax::{classify_literal, SmolStr, SyntaxKind, SyntaxKind::*, T};
|
||||
use std::cell::{Cell, Ref, RefCell};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_parser::{
|
||||
FragmentKind::{self, *},
|
||||
ParseError, TreeSink,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct TtIter<'a> {
|
||||
pub(crate) inner: std::slice::Iter<'a, tt::TokenTree>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue