Skip to content

Commit 9284258

Browse files
committed
Postgres parser keeps the memo outcome's doc comment on one line
1 parent a3e5c23 commit 9284258

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • crates/sqlquack-syntax-postgres/src/parse/_helpers/tree

‎crates/sqlquack-syntax-postgres/src/parse/_helpers/tree/cursor.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ pub(crate) enum Remembered {
5050
JsonObjectArguments,
5151
}
5252

53-
/// How a remembered construct's parse ended: its result, where it stopped, and the gaps it found.
54-
/// Only failures and `JSON_OBJECT` arguments are kept, so the copies stay bounded.
53+
/// A remembered parse's result, end and gaps; only failures and `JSON_OBJECT` arguments are kept.
5554
struct Outcome {
5655
result: Parsing<Expression>,
5756
reached: usize,
@@ -478,7 +477,7 @@ impl<'sql> Parser<'sql> {
478477
result
479478
}
480479

481-
/// Drops kept argument trees strictly inside `start..end`; only that span's replay reached them.
480+
/// Drops the kept argument trees inside `start..end`; only that span's replay reached them.
482481
fn forget_trees_within(&mut self, start: usize, end: usize) {
483482
let inner: Vec<(usize, usize)> = self
484483
.kept_trees

0 commit comments

Comments
 (0)