Appearance
| 1 | namespace Syntax.Trees.Statements is | |
| 2 | use Source; | |
| 3 | ||
| 4 | class BREAK(location: LOCATION, label: Identifiers.Identifier?): Statement is | |
| 5 | expects_semicolon: bool => true; | |
| 6 | ||
| 7 | // TODO should support this but results in invalid IL | |
| 8 | // provides_value: bool => true; | |
| 9 | ||
| 10 | super(location); | |
| 11 | ||
| 12 | accept(visitor: Visitor) is | |
| 13 | visitor.visit(self); | |
| 14 | si | |
| 15 | ||
| 16 | walk(visitor: Visitor) is | |
| 17 | if !visitor.pre(self) then | |
| 18 | if label? then | |
| 19 | label.walk(visitor); | |
| 20 | fi | |
| 21 | fi | |
| 22 | accept(visitor); | |
| 23 | si | |
| 24 | si | |
| 25 | si |