MCPcopy Create free account
hub / github.com/KLayout/klayout / lnodes_str

Method lnodes_str

testdata/python/layLayers.py:45–54  ·  view source on GitHub ↗
(self, space, l)

Source from the content-addressed store, hash-verified

43 return space + l.current().source_(True) + "\n";
44
45 def lnodes_str(self, space, l):
46 res = ""
47 while not l.at_end():
48 res += self.lnode_str(space, l)
49 if l.current().has_children():
50 l.down_first_child()
51 res += self.lnodes_str(" " + space, l)
52 l.up()
53 l.next_sibling(1)
54 return res
55
56 def lnodes_str2(self, v):
57 res = []

Callers 4

test_1Method · 0.95
test_1aMethod · 0.95
test_3Method · 0.95
test_5Method · 0.95

Calls 5

lnode_strMethod · 0.95
at_endMethod · 0.45
has_childrenMethod · 0.45
currentMethod · 0.45
upMethod · 0.45

Tested by 4

test_1Method · 0.76
test_1aMethod · 0.76
test_3Method · 0.76
test_5Method · 0.76