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

Shell: Make 'if' expressions return the unevaluated value of blocks

This makes it possible to actually put them in a sequence and cast them
to commands.
This commit is contained in:
AnotherTest 2021-01-18 10:06:13 +03:30 committed by Andreas Kling
parent 50473003be
commit 5ec139e728
3 changed files with 14 additions and 4 deletions

View file

@ -984,7 +984,6 @@ private:
virtual RefPtr<Value> run(RefPtr<Shell>) override;
virtual void highlight_in_editor(Line::Editor&, Shell&, HighlightMetadata = {}) override;
virtual HitTestResult hit_test_position(size_t) override;
virtual bool would_execute() const override { return true; }
virtual bool should_override_execution_in_current_process() const override { return true; }
NonnullRefPtr<AST::Node> m_condition;