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

Method setGlobalByIndex

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

Sets the value of a global variable based on its index in this module ({@see getIndexOfGlobal}).

(int i, Object v)

Source from the content-addressed store, hash-verified

266 * getIndexOfGlobal}).
267 */
268 void setGlobalByIndex(int i, Object v) {
269 Preconditions.checkArgument(i < globalIndex.size());
270 this.globals[i] = v;
271 }
272
273 /**
274 * Returns the value of a global variable based on its index in this module ({@see

Callers 2

setGlobalMethod · 0.95
setGlobalMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected