Move token and error structs into related modules (#11957)
## Summary This PR does some housekeeping into moving certain structs into related modules. Specifically, 1. Move `LexicalError` from `lexer.rs` to `error.rs` which also contains the `ParseError` 2. Move `Token`, `TokenFlags` and `TokenValue` from `lexer.rs` to `token.rs`
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
use ruff_text_size::{Ranged, TextRange, TextSize};
|
||||
|
||||
use crate::lexer::{Lexer, LexerCheckpoint, LexicalError, Token, TokenFlags, TokenValue};
|
||||
use crate::{Mode, TokenKind};
|
||||
use crate::error::LexicalError;
|
||||
use crate::lexer::{Lexer, LexerCheckpoint};
|
||||
use crate::token::{Token, TokenFlags, TokenKind, TokenValue};
|
||||
use crate::Mode;
|
||||
|
||||
/// Token source for the parser that skips over any trivia tokens.
|
||||
#[derive(Debug)]
|
||||
|
||||
Reference in New Issue
Block a user