From 415c891d641fa305e7ddbbbcc78db990dd5d3564 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 29 Jul 2018 15:16:07 +0300 Subject: Reorganize --- src/parser/input.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/parser/input.rs') diff --git a/src/parser/input.rs b/src/parser/input.rs index 9b400b959..052981fbc 100644 --- a/src/parser/input.rs +++ b/src/parser/input.rs @@ -1,6 +1,8 @@ -use {SyntaxKind, TextRange, TextUnit, Token}; -use syntax_kinds::EOF; -use super::is_insignificant; +use { + SyntaxKind, TextRange, TextUnit, + SyntaxKind::EOF, + lexer::Token, +}; use std::ops::{Add, AddAssign}; @@ -16,7 +18,7 @@ impl<'t> ParserInput<'t> { let mut start_offsets = Vec::new(); let mut len = 0.into(); for &token in raw_tokens.iter() { - if !is_insignificant(token.kind) { + if !token.kind.is_trivia() { tokens.push(token); start_offsets.push(len); } -- cgit v1.2.3