MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / evaluate_logical

Function evaluate_logical

crates/gitql-engine/src/engine_evaluator.rs:446–459  ·  view source on GitHub ↗
(
    env: &mut Environment,
    expr: &LogicalExpr,
    titles: &[String],
    object: &Vec<Box<dyn Value>>,
)

Source from the content-addressed store, hash-verified

444}
445
446fn evaluate_logical(
447 env: &mut Environment,
448 expr: &LogicalExpr,
449 titles: &[String],
450 object: &Vec<Box<dyn Value>>,
451) -> Result<Box<dyn Value>, String> {
452 let lhs = evaluate_expression(env, &expr.left, titles, object)?;
453 let rhs = evaluate_expression(env, &expr.right, titles, object)?;
454 match expr.operator {
455 BinaryLogicalOperator::And => lhs.logical_and_op(&rhs),
456 BinaryLogicalOperator::Or => lhs.logical_or_op(&rhs),
457 BinaryLogicalOperator::Xor => lhs.logical_xor_op(&rhs),
458 }
459}
460
461fn evaluate_bitwise(
462 env: &mut Environment,

Callers 1

evaluate_expressionFunction · 0.85

Calls 4

evaluate_expressionFunction · 0.85
logical_and_opMethod · 0.45
logical_or_opMethod · 0.45
logical_xor_opMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…