petr-tik 6ea28c3779 Fixed #5129
Addresses two issues:
- keep the parens from dbg!() in case the call is chained or there is
semantic difference if parens are excluded
- Exclude the semicolon after the dbg!(); by checking if it was
accidentally included in the macro_call

investigated, but decided against:
fix ast::MacroCall extraction to never include semicolons at the end -
this logic lives in rowan.

Defensively shorten the macro_range if there is a semicolon token.
Deleted unneccessary temp variable macro_args

Renamed macro_content to "paste_instead_of_dbg", because it isn't a
simple extraction of text inside dbg!() anymore
2020-07-27 22:17:15 +01:00
..
2020-07-02 17:48:35 -04:00
2020-07-02 17:48:35 -04:00
2020-07-21 18:10:03 +02:00
2020-07-02 17:48:35 -04:00
2020-07-02 17:48:35 -04:00
2020-07-03 19:32:18 +02:00
2020-07-03 19:32:18 +02:00
2020-07-03 19:32:18 +02:00
2020-07-03 19:32:18 +02:00
2020-07-02 17:48:35 -04:00
2020-07-02 17:48:35 -04:00
2020-07-02 17:48:35 -04:00
2020-07-02 17:48:35 -04:00
2020-07-19 14:26:24 -04:00
2020-07-27 22:17:15 +01:00
2020-07-02 17:48:35 -04:00
2020-07-02 17:48:35 -04:00
2020-07-02 17:48:35 -04:00