MCPcopy
hub / github.com/bazelbuild/bazel / sameType

Method sameType

src/main/java/net/starlark/java/eval/Starlark.java:520–522  ·  view source on GitHub ↗
(Object x, Object y)

Source from the content-addressed store, hash-verified

518 }
519
520 private static boolean sameType(Object x, Object y) {
521 return x.getClass() == y.getClass() || Starlark.type(x).equals(Starlark.type(y));
522 }
523
524 /** Returns the string form of a value as if by the Starlark expression {@code str(x)}. */
525 public static String str(Object x, StarlarkSemantics semantics) {

Callers 1

compareUncheckedMethod · 0.95

Calls 3

typeMethod · 0.95
getClassMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected