File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
crates/pgt_statement_splitter/src Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 44pub mod diagnostics;
55mod parser;
66
7- use parser:: { Parse , Parser , source} ;
7+ use parser:: { Parser , ParserResult , source} ;
88use 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 {
Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments