rune-langium / visual-editor/src / buildNamespaceTree
Function: buildNamespaceTree()
ts
function buildNamespaceTree(nodes): NamespaceTreeNode[];Defined in: packages/visual-editor/src/utils/namespace-tree.ts:38
Build a sorted list of namespace tree entries from graph nodes.
Groups nodes by namespace, counts per kind, and sorts both namespaces and their child types alphabetically.
Parameters
| Parameter | Type |
|---|---|
nodes | TypeGraphNode[] |