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

Function validate_case_expression

graphlite/src/ast/validator.rs:1218–1233  ·  view source on GitHub ↗

Validate CASE expressions

(
    case_expr: &crate::ast::CaseExpression,
    ctx: &mut ValidationContext,
    errors: &mut Vec<ValidationError>,
)

Source from the content-addressed store, hash-verified

1216
1217/// Validate CASE expressions
1218fn validate_case_expression(
1219 case_expr: &crate::ast::CaseExpression,
1220 ctx: &mut ValidationContext,
1221 errors: &mut Vec<ValidationError>,
1222) {
1223 use crate::ast::CaseType;
1224
1225 match &case_expr.case_type {
1226 CaseType::Simple(simple_case) => {
1227 validate_simple_case_expression(simple_case, ctx, errors);
1228 }
1229 CaseType::Searched(searched_case) => {
1230 validate_searched_case_expression(searched_case, ctx, errors);
1231 }
1232 }
1233}
1234
1235/// Validate simple CASE expressions
1236fn validate_simple_case_expression(

Callers 1

validate_expressionFunction · 0.85

Tested by

no test coverage detected