From 2843526513b065e76dd5da62153ba598d33dc93a Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Mon, 18 Jan 2021 04:55:07 +0330 Subject: [PATCH] Shell: Mark control structures to be executed in the current process --- Userland/Shell/AST.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Shell/AST.h b/Userland/Shell/AST.h index feb0cb6ebe..ed2d947c98 100644 --- a/Userland/Shell/AST.h +++ b/Userland/Shell/AST.h @@ -858,6 +858,7 @@ private: 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; } String m_variable_name; RefPtr m_iterated_expression; @@ -984,6 +985,7 @@ private: 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 m_condition; RefPtr m_true_branch; @@ -1041,6 +1043,7 @@ private: 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 m_matched_expr; String m_expr_name; @@ -1153,6 +1156,7 @@ private: virtual void highlight_in_editor(Line::Editor&, Shell&, HighlightMetadata = {}) override; virtual HitTestResult hit_test_position(size_t) override; virtual bool is_list() const override { return true; } + virtual bool should_override_execution_in_current_process() const override { return true; } NonnullRefPtr m_left; NonnullRefPtr m_right; @@ -1174,6 +1178,7 @@ private: 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 false; } + virtual bool should_override_execution_in_current_process() const override { return true; } RefPtr m_block; };