Skip to content
← Back

src/ir/values/null.ghul

1
namespace IR.Values is
2
use TypeTyped = Semantic.Types.Typed
3
use Semantic.Types.Type
4
5
class NULL: Value, TypeTyped is
6
type: Type
7
8
init(
9
type: Type
10
) is
11
super.init()
12
13
self.type = type
14
si
15
16
gen(context: IR.CONTEXT) is
17
let body = context.current_srm_body_emitter!
18
body.ldnull()
19
si
20
21
to_string() -> string =>
22
"null:[{type}]()"
23
si
24
si