Skip to content
← Back

src/syntax/trees/expressions/explicit_specialization.ghul

1
namespace Syntax.Trees.Expressions is
2
use Source;
3
4
use IR.Values.Value;
5
class EXPLICIT_SPECIALIZATION: Expression is
6
value: Value? public; // FIXME: should this be here?
7
8
left: Expression;
9
types: TypeExpressions.LIST;
10
11
init(
12
location: LOCATION,
13
left: Expression,
14
types: TypeExpressions.LIST
15
) is
16
super.init(location);
17
18
self.left = left;
19
self.types = types;
20
si
21
22
accept(visitor: Visitor) is
23
visitor.visit(self);
24
si
25
26
walk(visitor: Visitor) is
27
if !visitor.pre(self) then
28
left.walk(visitor);
29
30
types.walk(visitor);
31
fi
32
33
accept(visitor);
34
si
35
si
36
si