diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-10-29 12:44:01 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-10-29 12:44:01 +0800 |
commit | 94ad750f1727a977b5e5e2b094527e6c449df41d (patch) | |
tree | 53dfa784a3beb7dc2d60b13aa6678dfe6b9c82e8 /src/expand/stringify.cpp | |
parent | 69311c5199292cd4b00b5c82fe8096d93b7e6465 (diff) | |
download | mrust-94ad750f1727a977b5e5e2b094527e6c449df41d.tar.gz |
Expand - Add parent spans to TTStream[O]
Diffstat (limited to 'src/expand/stringify.cpp')
-rw-r--r-- | src/expand/stringify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand/stringify.cpp b/src/expand/stringify.cpp index cbb5c65c..06c65c02 100644 --- a/src/expand/stringify.cpp +++ b/src/expand/stringify.cpp @@ -17,7 +17,7 @@ class CExpander: Token tok; ::std::string rv; - auto lex = TTStream(tt); + auto lex = TTStream(sp, tt); while( GET_TOK(tok, lex) != TOK_EOF ) { if(!rv.empty()) @@ -25,7 +25,7 @@ class CExpander: rv += tok.to_str(); } - return box$( TTStreamO(TokenTree(Token(TOK_STRING, mv$(rv)))) ); + return box$( TTStreamO(sp, TokenTree(Token(TOK_STRING, mv$(rv)))) ); } }; |