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

Function unwind_statement

graphlite/src/ast/parser.rs:835–851  ·  view source on GitHub ↗

Parse UNWIND statement: UNWIND expression AS variable

(tokens: &[Token])

Source from the content-addressed store, hash-verified

833
834/// Parse UNWIND statement: UNWIND expression AS variable
835fn unwind_statement(tokens: &[Token]) -> IResult<&[Token], Query> {
836 map(
837 tuple((
838 tag_token(Token::Unwind),
839 expression,
840 tag_token(Token::As),
841 identifier,
842 )),
843 |(_, expr, _, var)| {
844 Query::Unwind(UnwindStatement {
845 expression: expr,
846 variable: var,
847 location: Location::default(),
848 })
849 },
850 )(tokens)
851}
852
853/// Parse UNWIND clause: UNWIND expression AS variable
854fn unwind_clause(tokens: &[Token]) -> IResult<&[Token], UnwindClause> {

Callers

nothing calls this directly

Calls 1

tag_tokenFunction · 0.70

Tested by

no test coverage detected