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

Method debugPrint

src/main/java/net/starlark/java/eval/Printer.java:117–124  ·  view source on GitHub ↗

Appends the StarlarkValue.debugPrint representation of a value (as used by the Starlark print statement) to the printer's buffer. Implementations of StarlarkValue may define their own behavior of debugPrint.

(Object o, StarlarkThread thread)

Source from the content-addressed store, hash-verified

115 * <p>Implementations of StarlarkValue may define their own behavior of {@code debugPrint}.
116 */
117 public Printer debugPrint(Object o, StarlarkThread thread) {
118 if (o instanceof StarlarkValue) {
119 ((StarlarkValue) o).debugPrint(this, thread);
120 return this;
121 }
122
123 return this.str(o, thread.getSemantics());
124 }
125
126 /**
127 * Appends the {@code StarlarkValue.str} representation of a value to the printer's buffer. Unlike

Callers 2

failMethod · 0.95
printMethod · 0.95

Calls 3

strMethod · 0.95
getSemanticsMethod · 0.80
debugPrintMethod · 0.65

Tested by

no test coverage detected