1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:47:35 +00:00

Shell: Run function declarations in the current process

Fixes #4817
This commit is contained in:
AnotherTest 2021-01-06 16:23:28 +03:30 committed by Andreas Kling
parent 81c5b35dce
commit 335221d830
2 changed files with 8 additions and 0 deletions

View file

@ -429,6 +429,7 @@ public:
virtual bool is_list() const { return false; }
virtual bool would_execute() const { return false; }
virtual bool should_override_execution_in_current_process() const { return false; }
const Position& position() const { return m_position; }
void set_is_syntax_error(const SyntaxError& error_node)
@ -829,6 +830,7 @@ private:
virtual HitTestResult hit_test_position(size_t) override;
virtual Vector<Line::CompletionSuggestion> complete_for_editor(Shell&, size_t, const HitTestResult&) override;
virtual bool would_execute() const override { return true; }
virtual bool should_override_execution_in_current_process() const override { return true; }
NameWithPosition m_name;
Vector<NameWithPosition> m_arguments;