itroduce trait for ast tokens

This commit is contained in:
Aleksey Kladov 2019-01-08 12:23:10 +03:00
parent 3f4be81912
commit fa6e0b0d38
12 changed files with 34 additions and 59 deletions

View file

@ -1,7 +1,7 @@
//! Validation of byte literals
use crate::{
ast::{self, AstNode},
ast::{self, AstNode, AstToken},
string_lexing::{self, StringComponentKind},
TextRange,
validation::char,

View file

@ -1,5 +1,5 @@
use crate::{
ast::{self, AstNode},
ast::{self, AstNode, AstToken},
string_lexing::{self, StringComponentKind},
yellow::{
SyntaxError,

View file

@ -5,7 +5,7 @@ use std::u32;
use arrayvec::ArrayString;
use crate::{
ast::{self, AstNode},
ast::{self, AstNode, AstToken},
string_lexing::{self, StringComponentKind},
TextRange,
yellow::{

View file

@ -1,5 +1,5 @@
use crate::{
ast::{self, AstNode},
ast::{self, AstNode, AstToken},
string_lexing,
yellow::{
SyntaxError,