1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

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
parent c969b8390d
commit 8e364b9780
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;