* Returns printed result. * @param {string} type The type * @param {PrintObject} object Object to print * @param {StatsPrinterContext=} baseContext The base context * @returns {string | undefined} printed result
(type, object, baseContext)
| 195 | * @returns {string | undefined} printed result |
| 196 | */ |
| 197 | print(type, object, baseContext) { |
| 198 | if (this._inPrint) { |
| 199 | return this._print(type, object, baseContext); |
| 200 | } |
| 201 | try { |
| 202 | this._inPrint = true; |
| 203 | return this._print(type, object, baseContext); |
| 204 | } finally { |
| 205 | this._levelHookCache.clear(); |
| 206 | this._inPrint = false; |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Returns printed result. |
no test coverage detected