Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1021568 // dm_gazelle_expandTree

JavaX fragment (include)

svoid dm_gazelle_expandTree(GazelleTree tree) {
  dm_gazelle_expandTree(tree, 10);
}

svoid dm_gazelle_expandTree(GazelleTree tree, int maxLevel) {
  if (maxLevel <= 0 || tree == null) ret;
  if (tree.ctx == null) tree.ctx = dm_gazelle_stdEvalContext();
  for (GazelleTree t : dm_gazelle_getChildren(tree))
    dm_gazelle_expandTree(t, maxLevel-1);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021568
Snippet name: dm_gazelle_expandTree
Eternal ID of this version: #1021568/2
Text MD5: 19d260a70b41455f82130787cf13429f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-19 16:48:35
Source code size: 359 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 334 / 357
Version history: 1 change(s)
Referenced in: [show references]