Skip to content
← Back

src/ir/values/typeof.ghul

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