MCPcopy Create free account
hub / github.com/microsoft/SandDance / TreeNode

Function TreeNode

docs/app/js/sanddance-app.js:138251–138263  ·  view source on GitHub ↗
(node, i)

Source from the content-addressed store, hash-verified

138249 return vim.a.parent === v.parent ? vim.a : ancestor;
138250}
138251function TreeNode(node, i) {
138252 this._ = node;
138253 this.parent = null;
138254 this.children = null;
138255 this.A = null; // default ancestor
138256 this.a = this; // ancestor
138257 this.z = 0; // prelim
138258 this.m = 0; // mod
138259 this.c = 0; // change
138260 this.s = 0; // shift
138261 this.t = null; // thread
138262 this.i = i; // number
138263}
138264TreeNode.prototype = Object.create((0, _indexJs.Node).prototype);
138265function treeRoot(root) {
138266 var tree = new TreeNode(root, 0), node, nodes = [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected