1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 10:37:45 +00:00

LibSQL: Implement evaluate() method of BinaryOperatorExpression

Mostly just calls the appropriate methods on the Value objects.
Exception are the `Concatenate` (string concat), and the logical `and`
and `or` operators which are implemented directly in
`BinaryOperatorExpression::evaluate`
This commit is contained in:
Jan de Visser 2021-10-21 18:10:25 -04:00 committed by Andreas Kling
parent 73fc023652
commit 9d1e27d8a8
2 changed files with 67 additions and 0 deletions

View file

@ -490,6 +490,7 @@ public:
}
BinaryOperator type() const { return m_type; }
virtual Value evaluate(ExecutionContext&) const override;
private:
BinaryOperator m_type;