Home
last modified time | relevance | path

Searched refs:predeclared (Results 1 – 20 of 20) sorted by relevance

/external/starlark-go/internal/compile/
Dcompile_test.go14 predeclared := starlark.StringDict{
24 _, oldProg, err := starlark.SourceProgram("mul.star", src, predeclared.Has)
40 globals, err := newProg.Init(thread, predeclared)
50 predeclared["n"] = starlark.None
51 _, err = newProg.Init(thread, predeclared)
Dcodegen_test.go29 `constant "ab"; predeclared x; plus; constant "cd"; plus; return`,
40 `predeclared x; plus; ` +
52 `constant 1; maketuple<1>; predeclared x; plus; ` +
/external/starlark-go/resolve/testdata/
Dresolve.star3 # The initial environment contains the predeclared names "M"
27 # Redeclaration of predeclared names is allowed.
29 # This rule permits tool maintainers to add members to the predeclared
32 # module-specific predeclared name
36 # universal predeclared name
41 # A global declaration shadows all references to a predeclared;
48 # reference to predeclared name
330 # Redeclaration of predeclared names is allowed.
332 # module-specific predeclared name
336 # universal predeclared name
/external/starlark-go/starlark/
Deval_test.go135 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)
[all …]
Deval.go332 func ExecFile(thread *Thread, filename string, src interface{}, predeclared StringDict) (StringDict…
334 _, mod, err := SourceProgram(filename, src, predeclared.Has)
339 g, err := mod.Init(thread, predeclared)
408 func (prog *Program) Init(thread *Thread, predeclared StringDict) (StringDict, error) {
409 toplevel := makeToplevelFunction(prog.compiled, predeclared)
427 var predeclared StringDict
431 if err := resolve.REPLChunk(f, globals.Has, predeclared.Has, Universe.Has); err != nil {
448 toplevel := makeToplevelFunction(prog.compiled, predeclared)
469 func makeToplevelFunction(prog *compile.Program, predeclared StringDict) *Function {
495 predeclared: predeclared,
Dexample_test.go49 predeclared := starlark.StringDict{
55 globals, err := starlark.ExecFile(thread, "apparent/filename.star", data, predeclared)
Dinterp.go600 x := fn.module.predeclared[name]
Dvalue.go669 predeclared StringDict member
/external/starlark-go/starlarkstruct/
Dstruct_test.go22 predeclared := starlark.StringDict{
26 if _, err := starlark.ExecFile(thread, filename, nil, predeclared); err != nil {
/external/starlark-go/lib/proto/cmd/star2proto/
Dstar2proto.go89 predeclared := starlark.StringDict{
93 globals, err := starlark.ExecFile(thread, filename, nil, predeclared)
/external/starlark-go/starlarktest/
Dstarlarktest.go63 predeclared := starlark.StringDict{
72 assert, assertErr = starlark.ExecFile(thread, filename, nil, predeclared)
/external/starlark-go/resolve/
Dresolve.go191 predeclared: make(map[string]*Binding),
211 predeclared map[string]*Binding member
414 } else if prev, ok := r.predeclared[id.Name]; ok {
420 r.predeclared[id.Name] = bind // save it
427 r.predeclared[id.Name] = bind // save it
/external/bazelbuild-rules_android/rules/android_library/
Drule.bzl32 # TODO(b/177261846): resource-related predeclared outputs need to be re-pointed at the
/external/deqp-deps/glslang/Test/
DspecExamples.frag123 in vec4 gl_Color; // predeclared by the fragment language
/external/angle/third_party/vulkan-deps/glslang/src/Test/
DspecExamples.frag123 in vec4 gl_Color; // predeclared by the fragment language
/external/starlark-go/doc/
Dspec.md1177 Many built-in functions are predeclared in the environment
1237 The set of predeclared names includes the universal
1244 Starlark programs cannot change the set of predeclared bindings
1247 Nested beneath the predeclared block is the _module_ block,
3007 The outermost block of the Starlark environment is known as the "predeclared" block.
3016 predeclared block in later versions of the language (or
/external/python/cffi/doc/source/
Dcdef.rst289 (These types are not predeclared at all if you don't call
/external/python/cpython3/Doc/extending/
Dextending.rst196 The choice of which exception to raise is entirely yours. There are predeclared
/external/python/cpython2/Doc/extending/
Dextending.rst191 The choice of which exception to raise is entirely yours. There are predeclared
/external/mesa3d/docs/relnotes/
D19.0.0.rst1133 - glsl: prevent qualifiers modification of predeclared variables