Open
Description
I'm implementing a stardoc-like program (extracting docs from bzl files). In such a program, we don't really need to know the concrete types of foreign symbols. For now, the Thread.Load
returns a StringDict
, which means I need to resolve the loading bzl path, and exec that file just to make the Exec
work.
I'm proposing that let Thread.Load
returns a StringDict
-like interface with Get
and Keys
methods instead. Which will allow users to mock a load.
The Thread.Load
is used as follow:
starlark-go/starlark/interp.go
Lines 566 to 587 in 4b1e35f
Metadata
Metadata
Assignees
Labels
No labels