Debian Codegraph @

lang/interpret_test/TestAstFunc1/importscope2.txtar

raw
1 -- main.mcl --
2 import "second.mcl"
3
4 include second.xclass
5 -- second.mcl --
6 import "fmt"
7
8 class xclass {
9 import "os" # we can also use a scoped local import
10
11 $aaa = if os.is_family_debian() { "bbb" } else { "ccc" }
12
13 print "${aaa}" {
14 msg => "hello",
15 }
16 }
17 -- OUTPUT --
18 Edge: FuncValue -> call # fn
19 Edge: call -> if # c
20 Edge: const -> if # a
21 Edge: const -> if # b
22 Vertex: FuncValue
23 Vertex: call
24 Vertex: const
25 Vertex: const
26 Vertex: const
27 Vertex: if