Home
last modified time | relevance | path

Searched refs:newTree (Results 1 – 2 of 2) sorted by relevance

/development/tools/winscope/spec/
DDiffSpec.js4 function checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree) { argument
5 const diffTree = new DiffGenerator(newTree)
21 const newTree = new Node({ id: 1 }, [ constant
29 const diffTree = new DiffGenerator(newTree)
45 checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree);
57 const newTree = new Node({ id: 1 }, [ constant
73 checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree);
85 const newTree = new Node({ id: 1 }, [ constant
105 checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree);
114 const newTree = new Node({ id: 1, data: "xyz" }, [ constant
[all …]
/development/tools/winscope/src/utils/
Ddiff.js156 _generateDiffTree(newTree, oldTree, newTreeSiblings, oldTreeSiblings) { argument
160 const newId = newTree ? this.getNodeId(newTree) : null;
166 if (newTree) {
170 const diffTree = this._cloneNodeWithoutChildren(newTree);
226 if (this.isModified && this.isModified(newTree, oldTree)) {
231 diffTree.children = this._visitChildren(newTree, oldTree);
255 _visitChildren(newTree, oldTree) { argument
261 newTree?.children.length ?? 0, oldTree?.children.length ?? 0);
263 const newChild = i < newTree?.children.length ?
264 newTree.children[i] : null;
[all …]