Skip to content

Commit d8276e7

Browse files
committed
comments in ast.rs
1 parent 6c6d053 commit d8276e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libsyntax/ast.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ pub enum token_tree {
568568
// a delimited sequence (the delimiters appear as the first
569569
// and last elements of the vector)
570570
tt_delim(@mut ~[token_tree]),
571+
571572
// These only make sense for right-hand-sides of MBE macros:
572573

573574
// a kleene-style repetition sequence with a span, a tt_forest,
@@ -646,6 +647,10 @@ pub enum matcher_ {
646647

647648
pub type mac = Spanned<mac_>;
648649

650+
// represents a macro invocation. The Path indicates which macro
651+
// is being invoked, and the vector of token-trees contains the source
652+
// of the macro invocation.
653+
// There's only one flavor, now, so this could presumably be simplified.
649654
#[deriving(Clone, Eq, Encodable, Decodable, IterBytes)]
650655
pub enum mac_ {
651656
mac_invoc_tt(Path,~[token_tree]), // new macro-invocation

0 commit comments

Comments
 (0)