Home
last modified time | relevance | path

Searched refs:NewBuiltin (Results 1 – 9 of 9) sorted by relevance

/external/starlark-go/starlark/
Dlibrary.go42 "any": NewBuiltin("any", any),
43 "all": NewBuiltin("all", all),
44 "bool": NewBuiltin("bool", bool_),
45 "bytes": NewBuiltin("bytes", bytes_),
46 "chr": NewBuiltin("chr", chr),
47 "dict": NewBuiltin("dict", dict),
48 "dir": NewBuiltin("dir", dir),
49 "enumerate": NewBuiltin("enumerate", enumerate),
50 "fail": NewBuiltin("fail", fail),
51 "float": NewBuiltin("float", float),
[all …]
Dbench_test.go99 benchmarkRestart = starlark.NewBuiltin("restart", benchmarkRestartImpl)
100 benchmarkStart = starlark.NewBuiltin("start", benchmarkStartImpl)
101 benchmarkStop = starlark.NewBuiltin("stop", benchmarkStopImpl)
Deval_test.go136 "hasfields": starlark.NewBuiltin("hasfields", newHasFields),
138 "struct": starlark.NewBuiltin("struct", starlarkstruct.Make),
786 "builtin": starlark.NewBuiltin("builtin", builtin),
884 …"stopit": starlark.NewBuiltin("stopit", func(thread *starlark.Thread, b *starlark.Builtin, args st…
Dexample_test.go51 "repeat": starlark.NewBuiltin("repeat", repeat),
Dvalue.go746 func NewBuiltin(name string, fn func(thread *Thread, fn *Builtin, args Tuple, kwargs []Tuple) (Valu… func
/external/starlark-go/starlarktest/
Dstarlarktest.go64 "error": starlark.NewBuiltin("error", error_),
65 "catch": starlark.NewBuiltin("catch", catch),
66 "matches": starlark.NewBuiltin("matches", matches),
67 "module": starlark.NewBuiltin("module", starlarkstruct.MakeModule),
68 "_freeze": starlark.NewBuiltin("freeze", freeze),
/external/starlark-go/starlarkstruct/
Dstruct_test.go23 "struct": starlark.NewBuiltin("struct", starlarkstruct.Make),
24 "gensym": starlark.NewBuiltin("gensym", gensym),
/external/starlark-go/starlarkjson/
Djson.go76 "encode": starlark.NewBuiltin("json.encode", encode),
77 "decode": starlark.NewBuiltin("json.decode", decode),
78 "indent": starlark.NewBuiltin("json.indent", indent),
/external/starlark-go/lib/proto/
Dproto.go144 "file": starlark.NewBuiltin("proto.file", file),
145 "has": starlark.NewBuiltin("proto.has", has),
146 "marshal": starlark.NewBuiltin("proto.marshal", marshal),
147 "marshal_text": starlark.NewBuiltin("proto.marshal_text", marshal),
148 "set_field": starlark.NewBuiltin("proto.set_field", setFieldStarlark),
149 "get_field": starlark.NewBuiltin("proto.get_field", getFieldStarlark),
150 "unmarshal": starlark.NewBuiltin("proto.unmarshal", unmarshal),
151 "unmarshal_text": starlark.NewBuiltin("proto.unmarshal_text", unmarshal_text),