Skip to content
Snippets Groups Projects
Commit d34dbb18 authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Add method InternalNode::child_inst_names.

parent c3d8089e
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,10 @@ class InternalNode(SchemaNode):
res.update(c.data_children())
return res
def child_inst_names(self) -> Set[InstanceName]:
"""Return the set of instance names under the receiver."""
return frozenset([c.iname() for c in self.data_children()])
def _post_process(self) -> None:
super()._post_process()
for c in [x for x in self.children.values()]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment