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

Method getPredeclared

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

Returns the value of a predeclared (not universal) binding in this module. In the case that the predeclared is a GuardedValue: If it is enabled, the underlying value is returned, otherwise the GuardedValue itself is returned for error reporting.

(String name)

Source from the content-addressed store, hash-verified

183 * value is returned, otherwise the {@code GuardedValue} itself is returned for error reporting.
184 */
185 @Nullable
186 public Object getPredeclared(String name) {
187 Object value = predeclared.get(name);
188 if (value == null) {
189 return null;
190 }
191 return filterGuardedValue(value);
192 }
193
194 /**
195 * Returns this module's additional predeclared bindings. (Excludes {@link Starlark#UNIVERSE}.)

Callers 2

resolveMethod · 0.95
evalIdentifierMethod · 0.80

Calls 2

filterGuardedValueMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected