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)
| 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 |
no test coverage detected