MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / commit_statement

Function commit_statement

graphlite/src/ast/parser.rs:4602–4610  ·  view source on GitHub ↗

Parse COMMIT [WORK]

(tokens: &[Token])

Source from the content-addressed store, hash-verified

4600
4601/// Parse COMMIT [WORK]
4602fn commit_statement(tokens: &[Token]) -> IResult<&[Token], CommitStatement> {
4603 map(
4604 tuple((expect_token(Token::Commit), opt(expect_token(Token::Work)))),
4605 |(_, work)| CommitStatement {
4606 work: work.is_some(),
4607 location: Location::default(),
4608 },
4609 )(tokens)
4610}
4611
4612/// Parse ROLLBACK [WORK]
4613fn rollback_statement(tokens: &[Token]) -> IResult<&[Token], RollbackStatement> {

Callers

nothing calls this directly

Calls 1

expect_tokenFunction · 0.85

Tested by

no test coverage detected