diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-11-29 13:58:58 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-11-29 17:14:57 +1100 |
| commit | 64cd645d14407d312c7ed3a10efd9b3a99271884 (patch) | |
| tree | 7212ca102c08c5332d9ea59bd931525e442d32d4 /src/libsyntax/parse | |
| parent | 787959c20d062d396b97a5566e0a766d963af022 (diff) | |
| download | rust-64cd645d14407d312c7ed3a10efd9b3a99271884.tar.gz rust-64cd645d14407d312c7ed3a10efd9b3a99271884.zip | |
Split up `pretty_print` and `print`.
`pretty_print` takes a `Token` and `match`es on it. But the particular `Token` kind is known at each call site, so this commit splits it into five functions: `pretty_print_eof`, `pretty_print_begin`, etc. This commit also does likewise with `print`, though there is one callsite for `print` where the `Token` kind isn't known, so a generic `print` has to stay (but it now just calls out to the various `print_*` functions).
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions
