Lines Matching refs:predeclared
135 predeclared := starlark.StringDict{
144 _, err := starlark.ExecFile(thread, filename, chunk.Source, predeclared)
616 predeclared := starlark.StringDict{"x": starlark.None}
617 _, prog, err := starlark.SourceProgram("repeat.star", "y = 2 * x", predeclared.Has)
629 predeclared["x"] = test.x // update the values in dictionary
631 if globals, err := prog.Init(thread, predeclared); err != nil {
644 var predeclared starlark.StringDict
646 _, prog, err := starlark.SourceProgram("hello.star", content, predeclared.Has)
785 predeclared := starlark.StringDict{
792 `, predeclared)
883 predeclared := starlark.StringDict{
900 predeclared := starlark.StringDict{"n": starlark.MakeInt(n)}
902 …_, err := starlark.ExecFile(thread, "steps.star", `squares = [x*x for x in range(n)]`, predeclared)