MCPcopy Index your code
hub / github.com/nodejs/node / addTreeByType

Function addTreeByType

tools/icu/icutrim.py:254–264  ·  view source on GitHub ↗
(tree, mytree)

Source from the content-addressed store, hash-verified

252 remove.add(toRemove)
253
254def addTreeByType(tree, mytree):
255 if(options.verbose>1):
256 print("(considering %s): %s" % (tree, mytree))
257 trees[tree] = mytree
258 mytree["locs"]=[]
259 for i in range(len(items)):
260 item = items[i]
261 if item.startswith(mytree["treeprefix"]) and item.endswith(mytree["extension"]):
262 mytree["locs"].append(item[len(mytree["treeprefix"]):-4])
263 # now, process
264 queueForRemoval(tree)
265
266addTreeByType("converters",{"treeprefix":"", "extension":".cnv"})
267addTreeByType("stringprep",{"treeprefix":"", "extension":".spp"})

Callers 1

icutrim.pyFile · 0.85

Calls 4

queueForRemovalFunction · 0.85
printFunction · 0.50
rangeFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected