flip syntax text to use internal iteration

This commit is contained in:
Aleksey Kladov 2019-07-19 20:29:59 +03:00
parent 8f032d6a58
commit 8467ba8cdb
4 changed files with 78 additions and 38 deletions

View file

@ -297,7 +297,6 @@ fn to_green_element(element: SyntaxElement) -> rowan::GreenElement {
#[derive(Clone, PartialEq, Eq, Hash)]
pub struct SyntaxToken(pub(crate) rowan::cursor::SyntaxToken);
//FIXME: always output text
impl fmt::Debug for SyntaxToken {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
write!(fmt, "{:?}@{:?}", self.kind(), self.range())?;