Appearance
| 1 | namespace Syntax.Trees.Statements is | |
| 2 | ||
| 3 | use Source | |
| 4 | ||
| 5 | class LABELLED(location: LOCATION, label: Identifiers.Identifier, statement: Statement): Statement is | |
| 6 | expects_semicolon: bool => statement.expects_semicolon | |
| 7 | ||
| 8 | super(location) | |
| 9 | ||
| 10 | debug_location: LOCATION => | |
| 11 | location.start_position :: statement.debug_location | |
| 12 | ||
| 13 | accept(visitor: Visitor) is | |
| 14 | visitor.visit(self) | |
| 15 | si | |
| 16 | ||
| 17 | walk(visitor: Visitor) is | |
| 18 | if !visitor.pre(self) then | |
| 19 | label.walk(visitor) | |
| 20 | statement.walk(visitor) | |
| 21 | fi | |
| 22 | ||
| 23 | accept(visitor) | |
| 24 | si | |
| 25 | si | |
| 26 | si |