Skip to content
← Back

src/ir/values/tuple.ghul

1
namespace IR.Values is
2
use TypeTyped = Semantic.Types.Typed
3
use Semantic.Types.Type
4
5
class TUPLE: Value, TypeTyped is
6
type: Type
7
8
values: Collections.List[Value]
9
10
init(type: Type, values: Collections.List[Value]) is
11
super.init()
12
13
self.type = type
14
self.values = values
15
si
16
17
accept(visitor: Visitor) is
18
visitor.visit(self)
19
si
20
21
to_string() -> string =>
22
"tuple:[{type}]({values})"
23
si
24
si