Skip to content
← Back

src/ir/frame_member.ghul

1
namespace IR is
2
// The members a state-machine frame carries that no symbol declares.
3
// The lowering synthesises each one, so they are named by which
4
// member they are rather than by a declaration.
5
//
6
// The frame's constructor is not here: it is declared into the
7
// frame's own scope and has a symbol like any other method.
8
enum FrameMember is
9
MOVE_NEXT,
10
GET_CURRENT,
11
GET_ENUMERATOR,
12
DISPOSE,
13
RESET,
14
TO_STRING,
15
SET_STATE_MACHINE,
16
si
17
si