Debian Codegraph @

lang/interpret_test/TestAstFunc1/importscope0.txtar

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