Skip to content

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

ParameterType
nodesTypeGraphNode[]

Returns

NamespaceTreeNode[]

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.