mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02: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:
committed by
Andreas Kling
parent
73fc023652
commit
9d1e27d8a8
Notes:
sideshowbarker
2024-07-18 01:54:17 +09:00
Author: https://github.com/JanDeVisser Commit: https://github.com/SerenityOS/serenity/commit/9d1e27d8a88 Pull-request: https://github.com/SerenityOS/serenity/pull/10598 Reviewed-by: https://github.com/trflynn89 ✅
@@ -490,6 +490,7 @@ public:
|
||||
}
|
||||
|
||||
BinaryOperator type() const { return m_type; }
|
||||
virtual Value evaluate(ExecutionContext&) const override;
|
||||
|
||||
private:
|
||||
BinaryOperator m_type;
|
||||
|
||||
Reference in New Issue
Block a user