Skip to content
← Back

src/ir/values/sequence.ghul

1
namespace IR.Values is
2
use IO.Std
3
4
use System.NotImplementedException
5
use System.Text.StringBuilder
6
7
use TypeTyped = Semantic.Types.Typed
8
use Semantic.Types.Type
9
use SymbolBase = Semantic.Symbols.Symbol
10
11
class SEQUENCE: Value, TypeTyped is
12
type: Type
13
element_type: Type
14
15
values: Collections.List[Value]
16
17
init(
18
type: Type,
19
element_type: Type,
20
values: Collections.List[Value]
21
) is
22
super.init()
23
24
self.type = type
25
self.element_type = element_type
26
self.values = values
27
si
28
29
accept(visitor: Visitor) is
30
visitor.visit(self)
31
si
32
33
to_string() -> string =>
34
"sequence:[{type}]({values})"
35
si
36
si