diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-22 15:20:42 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-22 15:20:42 +0100 |
commit | a99de65573d59d6398f472b0d42daabe9e8a5410 (patch) | |
tree | ffaa695301e2483e8a3ec360f0dcec79281ab2c1 /crates/mbe | |
parent | d56e52402eedbd738b5161cd1e5a8c152cb65e21 (diff) | |
parent | dc1577d58d0339b3d77739e33ae5e527ae6f6589 (diff) |
Merge #8923
8923: Add even more docs r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/mbe')
-rw-r--r-- | crates/mbe/src/subtree_source.rs | 4 | ||||
-rw-r--r-- | crates/mbe/src/syntax_bridge.rs | 2 | ||||
-rw-r--r-- | crates/mbe/src/tt_iter.rs | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/crates/mbe/src/subtree_source.rs b/crates/mbe/src/subtree_source.rs index a05cab0f3..bde370fdb 100644 --- a/crates/mbe/src/subtree_source.rs +++ b/crates/mbe/src/subtree_source.rs | |||
@@ -1,4 +1,6 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! Our parser is generic over the source of tokens it parses. |
2 | //! | ||
3 | //! This module defines tokens sourced from declarative macros. | ||
2 | 4 | ||
3 | use parser::{Token, TokenSource}; | 5 | use parser::{Token, TokenSource}; |
4 | use syntax::{lex_single_syntax_kind, SmolStr, SyntaxKind, SyntaxKind::*, T}; | 6 | use syntax::{lex_single_syntax_kind, SmolStr, SyntaxKind, SyntaxKind::*, T}; |
diff --git a/crates/mbe/src/syntax_bridge.rs b/crates/mbe/src/syntax_bridge.rs index a7c8c13c6..b13168bd3 100644 --- a/crates/mbe/src/syntax_bridge.rs +++ b/crates/mbe/src/syntax_bridge.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! Conversions between [`SyntaxNode`] and [`tt::TokenTree`]. |
2 | 2 | ||
3 | use parser::{FragmentKind, ParseError, TreeSink}; | 3 | use parser::{FragmentKind, ParseError, TreeSink}; |
4 | use rustc_hash::FxHashMap; | 4 | use rustc_hash::FxHashMap; |
diff --git a/crates/mbe/src/tt_iter.rs b/crates/mbe/src/tt_iter.rs index 195b8cf30..99a8d250b 100644 --- a/crates/mbe/src/tt_iter.rs +++ b/crates/mbe/src/tt_iter.rs | |||
@@ -1,4 +1,5 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! A "Parser" structure for token trees. We use this when parsing a declarative |
2 | //! macro definition into a list of patterns and templates. | ||
2 | 3 | ||
3 | use crate::{subtree_source::SubtreeTokenSource, ExpandError, ExpandResult}; | 4 | use crate::{subtree_source::SubtreeTokenSource, ExpandError, ExpandResult}; |
4 | 5 | ||