Skip to content
← Back

src/syntax/trees/statements/continue.ghul

1
namespace Syntax.Trees.Statements is
2
use Source;
3
4
class CONTINUE(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
23
accept(visitor);
24
si
25
si
26
si