MCPcopy Create free account
hub / github.com/bazelbuild/bazel / getStarlarkType

Method getStarlarkType

src/main/java/net/starlark/java/eval/Tuple.java:82–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 @Override
83 public StarlarkType getStarlarkType() {
84 ImmutableList.Builder<StarlarkType> elementTypes =
85 ImmutableList.builderWithExpectedSize(size());
86 for (Object elem : this) {
87 elementTypes.add(TypeChecker.type(elem));
88 }
89 return Types.tuple(elementTypes.build());
90 }
91
92 /** Returns a two-element tuple. */
93 public static Tuple pair(Object a, Object b) {

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.95
typeMethod · 0.95
tupleMethod · 0.95
addMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected