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

Method evalIndex

src/main/java/net/starlark/java/eval/Eval.java:830–840  ·  view source on GitHub ↗
(StarlarkThread.Frame fr, IndexExpression index)

Source from the content-addressed store, hash-verified

828 }
829
830 private static Object evalIndex(StarlarkThread.Frame fr, IndexExpression index)
831 throws EvalException, InterruptedException {
832 Object object = eval(fr, index.getObject());
833 Object key = eval(fr, index.getKey());
834 try {
835 return EvalUtils.index(fr.thread, object, key);
836 } catch (EvalException ex) {
837 fr.setErrorLocation(index.getLbracketLocation());
838 throw ex;
839 }
840 }
841
842 private static Object evalList(StarlarkThread.Frame fr, ListExpression expr)
843 throws EvalException, InterruptedException {

Callers 1

evalMethod · 0.95

Calls 6

evalMethod · 0.95
indexMethod · 0.95
setErrorLocationMethod · 0.80
getObjectMethod · 0.65
getKeyMethod · 0.45
getLbracketLocationMethod · 0.45

Tested by

no test coverage detected