summaryrefslogtreecommitdiff
path: root/src/parse/lex.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-02-18 19:30:27 +1100
committerJohn Hodge <tpg@mutabah.net>2016-02-18 19:30:27 +1100
commitcf87314dde3af9468f3e24e29191412e8a2d19f7 (patch)
tree8c240a20e46458554e91a95ad704ef8670af05b0 /src/parse/lex.cpp
parent651ab293f3bfa117dae618edb9a4a9f328e07a91 (diff)
downloadmrust-cf87314dde3af9468f3e24e29191412e8a2d19f7.tar.gz
(semibroken) Defer macro expansion
Diffstat (limited to 'src/parse/lex.cpp')
-rw-r--r--src/parse/lex.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp
index a3187cda..cb97022d 100644
--- a/src/parse/lex.cpp
+++ b/src/parse/lex.cpp
@@ -1042,3 +1042,9 @@ Span TokenStream::end_span(ProtoSpan ps) const
);
}
+
+SERIALISE_TYPE_A(TokenTree::, "TokenTree", {
+ s.item(m_tok);
+ s.item(m_subtrees);
+})
+