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

Function validate_from_clause

graphlite/src/ast/validator.rs:2396–2408  ·  view source on GitHub ↗

Validate FROM clause

(
    from_clause: &FromClause,
    ctx: &mut ValidationContext,
    errors: &mut Vec<ValidationError>,
)

Source from the content-addressed store, hash-verified

2394
2395/// Validate FROM clause
2396fn validate_from_clause(
2397 from_clause: &FromClause,
2398 ctx: &mut ValidationContext,
2399 errors: &mut Vec<ValidationError>,
2400) {
2401 for graph_expr in &from_clause.graph_expressions {
2402 validate_graph_expression(&graph_expr.graph_expression, ctx, errors);
2403
2404 if let Some(match_clause) = &graph_expr.match_statement {
2405 validate_match_clause(match_clause, ctx, errors);
2406 }
2407 }
2408}
2409
2410/// Validate graph expression
2411fn validate_graph_expression(

Callers 1

Calls 2

validate_match_clauseFunction · 0.85

Tested by

no test coverage detected