Shell: Mark ForLoop as would_execute

This fixes #2825.
This commit is contained in:
AnotherTest 2020-07-17 01:11:23 +04:30 committed by Andreas Kling
commit 8e364b9780
Notes: sideshowbarker 2024-07-19 04:44:44 +09:00
2 changed files with 6 additions and 3 deletions

View file

@ -589,6 +589,7 @@ private:
virtual void highlight_in_editor(Line::Editor&, Shell&, HighlightMetadata = {}) override;
virtual HitTestResult hit_test_position(size_t) override;
virtual String class_name() const override { return "ForLoop"; }
virtual bool would_execute() const override { return true; }
String m_variable_name;
RefPtr<AST::Node> m_iterated_expression;