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
// Stamped by compile-expressions when the label resolves to a
8
// loop-label symbol; generate-il follows the reference instead
9
// of matching names.
10
resolved_target: Statement? public => jump_state.resolved_target, = value is jump_state.resolved_target = value si
11
12
jump_state: Syntax.Process.JUMP_STATE field
13
14
clear() is
15
super.clear()
16
jump_state.clear()
17
si
18
19
clear_outputs() is
20
super.clear_outputs()
21
jump_state.clear()
22
si
23
24
super(location)
25
26
accept(visitor: Visitor) is
27
visitor.visit(self)
28
si
29
30
walk(visitor: Visitor) is
31
if !visitor.pre(self) then
32
if label? then
33
label.walk(visitor)
34
fi
35
fi
36
37
accept(visitor)
38
si
39
si
40
si