Home
last modified time | relevance | path

Searched refs:StringDict (Results 1 – 16 of 16) sorted by relevance

/external/starlark-go/starlark/
Dexample_test.go49 predeclared := starlark.StringDict{
89 globals starlark.StringDict
95 var load func(_ *starlark.Thread, module string) (starlark.StringDict, error)
96 load = func(_ *starlark.Thread, module string) (starlark.StringDict, error) {
224 globals starlark.StringDict
229 func (c *cache) Load(module string) (starlark.StringDict, error) {
234 func (c *cache) get(cc *cycleChecker, module string) (starlark.StringDict, error) {
266 func (c *cache) doLoad(cc *cycleChecker, module string) (starlark.StringDict, error) {
270 Load: func(_ *starlark.Thread, module string) (starlark.StringDict, error) {
Deval.go48 Load func(thread *Thread, module string) (StringDict, error)
138 type StringDict map[string]Value type
141 func (d StringDict) Keys() []string {
150 func (d StringDict) String() string {
165 func (d StringDict) Freeze() {
172 func (d StringDict) Has(key string) bool { _, ok := d[key]; return ok }
332 func ExecFile(thread *Thread, filename string, src interface{}, predeclared StringDict) (StringDict argument
408 func (prog *Program) Init(thread *Thread, predeclared StringDict) (StringDict, error) {
426 func ExecREPLChunk(f *syntax.File, thread *Thread, globals StringDict) error { argument
427 var predeclared StringDict
[all …]
Deval_test.go135 predeclared := starlark.StringDict{
189 func load(thread *starlark.Thread, module string) (starlark.StringDict, error) {
194 return starlark.StringDict{"json": starlarkjson.Module}, nil
214 attrs starlark.StringDict
550 globals := starlark.StringDict{"i": starlark.MakeInt(i)}
573 thread.Load = func(t *starlark.Thread, module string) (starlark.StringDict, error) {
616 predeclared := starlark.StringDict{"x": starlark.None}
644 var predeclared starlark.StringDict
785 predeclared := starlark.StringDict{
842 globals := make(starlark.StringDict)
[all …]
Dbench_test.go140 _, prog, err = starlark.SourceProgram(filename, src, starlark.StringDict(nil).Has)
Dvalue.go669 predeclared StringDict
676 func (m *module) makeGlobalDict() StringDict {
677 r := make(StringDict, len(m.program.Globals))
696 func (fn *Function) Globals() StringDict { return fn.module.makeGlobalDict() }
Dlibrary.go34 var Universe StringDict
38 Universe = StringDict{
/external/starlark-go/repl/
Drepl.go37 func REPL(thread *starlark.Thread, globals starlark.StringDict) { argument
63 func rep(rl *readline.Instance, thread *starlark.Thread, globals starlark.StringDict) error { argument
156 func MakeLoad() func(thread *starlark.Thread, module string) (starlark.StringDict, error) {
158 globals starlark.StringDict
164 return func(thread *starlark.Thread, module string) (starlark.StringDict, error) {
/external/starlark-go/starlarktest/
Dstarlarktest.go55 assert starlark.StringDict
61 func LoadAssertModule() (starlark.StringDict, error) {
63 predeclared := starlark.StringDict{
/external/starlark-go/starlarkstruct/
Dmodule.go16 Members starlark.StringDict
37 members := make(starlark.StringDict, len(kwargs))
Dstruct_test.go22 predeclared := starlark.StringDict{
35 func load(thread *starlark.Thread, module string) (starlark.StringDict, error) {
Dstruct.go71 func FromStringDict(constructor starlark.Value, d starlark.StringDict) *Struct { argument
127 func (s *Struct) ToStringDict(d starlark.StringDict) {
195 z := make(starlark.StringDict, x.len()+y.len())
/external/starlark-go/internal/compile/
Dcompile_test.go14 predeclared := starlark.StringDict{
/external/starlark-go/cmd/starlark/
Dstarlark.go89 globals := make(starlark.StringDict)
/external/starlark-go/lib/proto/cmd/star2proto/
Dstar2proto.go89 predeclared := starlark.StringDict{
/external/starlark-go/starlarkjson/
Djson.go75 Members: starlark.StringDict{
/external/starlark-go/lib/proto/
Dproto.go143 Members: starlark.StringDict{