Home
last modified time | relevance | path

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

/development/tools/winscope/spec/
DDiffSpec.js17 function checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree) { argument
18 const diffTree = new DiffGenerator(newTree)
30 const newTree = treeTwo; constant
42 checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree);
47 const newTree = treeOne; constant
59 checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree);
65 const newTree = new Node({ id: 1 }, [ constant
85 checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree);
94 const newTree = new Node({ id: 1, data: "xyz" }, [ constant
106 const diffTree = new DiffGenerator(newTree)
[all …]
/development/tools/winscope/src/utils/
Ddiff.js125 _generateDiffTree(newTree, oldTree, newTreeSiblings, oldTreeSiblings) { argument
129 const newId = newTree ? this.getNodeId(newTree) : null;
135 if (newTree) {
139 const diffTree = this._cloneNode(newTree);
195 if (this.isModified && this.isModified(newTree, oldTree)) {
200 diffTree.children = this._visitChildren(newTree, oldTree);
224 _visitChildren(newTree, oldTree) { argument
230 newTree?.children?.length ?? 0, oldTree?.children?.length ?? 0);
232 const newChild = i < newTree?.children?.length ?
233 newTree.children[i] : null;
[all …]