Skip to content
← Back

src/syntax/trees/bodies/block.ghul

1
namespace Syntax.Trees.Bodies is
2
use Source
3
4
class BLOCK(location: LOCATION, statements: Statements.LIST): Body, ScopeCarrier is
5
scope: Semantic.Scope? public
6
7
is_block: bool => true
8
9
super(location)
10
11
accept(visitor: Visitor) is
12
visitor.visit(self)
13
si
14
15
walk(visitor: Visitor) is
16
if !visitor.pre(self) then
17
statements.walk(visitor)
18
fi
19
20
accept(visitor)
21
si
22
si
23
si