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

Function property_pair

graphlite/src/ast/parser.rs:1369–1378  ·  view source on GitHub ↗

Parse property pair: key: value Supports regular identifiers, backtick-delimited identifiers, and keywords

(tokens: &[Token])

Source from the content-addressed store, hash-verified

1367/// Parse property pair: key: value
1368/// Supports regular identifiers, backtick-delimited identifiers, and keywords
1369fn property_pair(tokens: &[Token]) -> IResult<&[Token], Property> {
1370 map(
1371 tuple((identifier_or_quoted, expect_token(Token::Colon), expression)),
1372 |(key, _, value)| Property {
1373 key,
1374 value,
1375 location: Location::default(),
1376 },
1377 )(tokens)
1378}
1379
1380/// Parse WHERE clause
1381fn where_clause(tokens: &[Token]) -> IResult<&[Token], WhereClause> {

Callers

nothing calls this directly

Calls 1

expect_tokenFunction · 0.85

Tested by

no test coverage detected