Skip to content
← Back

src/syntax/trees/statements/labelled.ghul

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
accept(visitor: Visitor) is
11
visitor.visit(self);
12
si
13
14
walk(visitor: Visitor) is
15
if !visitor.pre(self) then
16
label.walk(visitor);
17
statement.walk(visitor);
18
fi
19
20
accept(visitor);
21
si
22
si
23
si