1
Fork 0

Remove trivia tokens

This commit is contained in:
Aleksey Kladov 2020-09-01 11:24:52 +02:00
parent 8f24c2ec9d
commit 5326361fc0
5 changed files with 5 additions and 28 deletions

View file

@ -289,10 +289,6 @@ fn token_kind_to_string_ext(tok: &TokenKind, convert_dollar_crate: Option<Span>)
doc_comment_to_string(comment_kind, attr_style, data)
}
token::Eof => "<eof>".to_string(),
token::Whitespace => " ".to_string(),
token::Comment => "/* */".to_string(),
token::Shebang(s) => format!("/* shebang: {}*/", s),
token::Unknown(s) => s.to_string(),
token::Interpolated(ref nt) => nonterminal_to_string(nt),
}