MCPcopy Create free account
hub / github.com/nodejs/node / expand

Method expand

deps/v8/tools/system-analyzer/view/helper.mjs:228–241  ·  view source on GitHub ↗
(showAll = false)

Source from the content-addressed store, hash-verified

226 }
227
228 expand(showAll = false) {
229 DOM.removeAllChildren(this._node);
230 this._start = this._start + this._delta;
231 this._end = this._end - this._delta;
232 if (this._start >= this._end || showAll) {
233 this._node.innerText = this._string;
234 this._button.onclick = undefined;
235 return;
236 }
237 this._node.appendChild(DOM.text(this._string.substring(0, this._start)));
238 this._node.appendChild(this._button);
239 this._node.appendChild(
240 DOM.text(this._string.substring(this._end, this._string.length)));
241 }
242}
243
244export class Chunked {

Callers 2

constructorMethod · 0.95
_createExpandButtonMethod · 0.95

Calls 2

removeAllChildrenMethod · 0.80
textMethod · 0.65

Tested by

no test coverage detected