MCPcopy Index your code
hub / github.com/bazelbuild/bazel / withPredeclared

Method withPredeclared

src/main/java/net/starlark/java/eval/Module.java:84–87  ·  view source on GitHub ↗

Constructs a Module with the specified predeclared bindings (filtered by the semantics), in addition to the standard environment, Starlark#UNIVERSE. No client data is set.

(
      StarlarkSemantics semantics, Map<String, Object> predeclared)

Source from the content-addressed store, hash-verified

82 * addition to the standard environment, {@link Starlark#UNIVERSE}. No client data is set.
83 */
84 public static Module withPredeclared(
85 StarlarkSemantics semantics, Map<String, Object> predeclared) {
86 return withPredeclaredAndData(semantics, predeclared, null);
87 }
88
89 /**
90 * Constructs a Module as above, but with the specified client data -- an arbitrary

Callers 13

getModuleMethod · 0.95
mainMethod · 0.95
execWithInterruptMethod · 0.95
runMethod · 0.95
mainMethod · 0.95
evalExprMethod · 0.95
compileThenExecuteMethod · 0.95
execFileMethod · 0.95

Calls 1

Tested by 11

getModuleMethod · 0.76
mainMethod · 0.76
execWithInterruptMethod · 0.76
runMethod · 0.76
mainMethod · 0.76
evalExprMethod · 0.76
compileThenExecuteMethod · 0.76