Something went wrong. Try again.
馃尡 A minimal programming language and compiler. git.urbach.dev/cli/q
high-performance programming-language compiler
Something went wrong. Try again.
12345678910111213141516package core
// EachDependency recursively finds all the calls to other functions.// It avoids calling the same function twice with the help of a hashmap.func (f *Function) EachDependency(traversed map[*Function]bool, call func(*Function)) { call(f) traversed[f] = true
for dep := range f.Calls.All() { if traversed[dep] { continue }
dep.EachDependency(traversed, call) }}