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

Function variable

graphlite/src/ast/parser.rs:2332–2337  ·  view source on GitHub ↗

Parse variable reference: identifier (bound in MATCH/LET clauses)

(tokens: &[Token])

Source from the content-addressed store, hash-verified

2330
2331/// Parse variable reference: identifier (bound in MATCH/LET clauses)
2332fn variable(tokens: &[Token]) -> IResult<&[Token], Variable> {
2333 map(identifier, |name| Variable {
2334 name,
2335 location: Location::default(),
2336 })(tokens)
2337}
2338
2339/// Parse property access token: object.property
2340fn property_access_token(tokens: &[Token]) -> IResult<&[Token], PropertyAccess> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected