Skip to content

refactor: simplify parser ? #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 12, 2025
Prev Previous commit
Next Next commit
ok
  • Loading branch information
juleswritescode committed Apr 12, 2025
commit 4252abefddefa7689009179d6efd71faa82fdceb
5 changes: 2 additions & 3 deletions crates/pgt_statement_splitter/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ pub struct Parser {
/// The start of the current statement, if any
current_stmt_start: Option<usize>,

/// The tokens to parse
pub tokens: Vec<Token>,
tokens: Vec<Token>,

eof_token: Token,

Expand All @@ -32,7 +31,7 @@ pub struct Parser {
/// Result of Building
#[derive(Debug)]
pub struct Parse {
/// The ranges of the errors
/// The ranges of the parsed statements
pub ranges: Vec<TextRange>,
/// The syntax errors accumulated during parsing
pub errors: Vec<SplitDiagnostic>,
Expand Down