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

Method setGlobal

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

Updates a global binding in the module environment.

(String name, Object value)

Source from the content-addressed store, hash-verified

315
316 /** Updates a global binding in the module environment. */
317 public void setGlobal(String name, Object value) {
318 Preconditions.checkNotNull(value, "Module.setGlobal(%s, null)", name);
319 setGlobalByIndex(getIndexOfGlobal(name), value);
320 }
321
322 @Override
323 public String toString() {

Callers 3

testTopLevelRebindingMethod · 0.95
updateMethod · 0.45
assignIdentifierMethod · 0.45

Calls 3

setGlobalByIndexMethod · 0.95
getIndexOfGlobalMethod · 0.95
checkNotNullMethod · 0.45

Tested by 2

testTopLevelRebindingMethod · 0.76
updateMethod · 0.36