Skip to content

Commit 466e1e2

Browse files
ok
1 parent 8a28657 commit 466e1e2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

crates/pgt_statement_splitter/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
pub mod diagnostics;
55
mod parser;
66

7-
use parser::{Parse, Parser, source};
7+
use parser::{Parser, ParserResult, source};
88
use pgt_lexer::diagnostics::ScanError;
99

10-
pub fn split(sql: &str) -> Result<Parse, Vec<ScanError>> {
10+
pub fn split(sql: &str) -> Result<ParserResult, Vec<ScanError>> {
1111
let tokens = pgt_lexer::lex(sql)?;
1212

1313
let mut parser = Parser::new(tokens);
@@ -28,7 +28,7 @@ mod tests {
2828

2929
struct Tester {
3030
input: String,
31-
parse: Parse,
31+
parse: ParserResult,
3232
}
3333

3434
impl From<&str> for Tester {

crates/pgt_statement_splitter/src/parser.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ pub struct Parser {
2828
current_pos: usize,
2929
}
3030

31-
/// Result of Building
31+
///
3232
#[derive(Debug)]
33-
pub struct Parse {
33+
pub struct ParserResult {
3434
/// The ranges of the parsed statements
3535
pub ranges: Vec<TextRange>,
3636
/// The syntax errors accumulated during parsing
@@ -62,8 +62,8 @@ impl Parser {
6262
}
6363
}
6464

65-
pub fn finish(self) -> Parse {
66-
Parse {
65+
pub fn finish(self) -> ParserResult {
66+
ParserResult {
6767
ranges: self
6868
.stmt_ranges
6969
.iter()

0 commit comments

Comments
 (0)