Skip to main content

Module stems

Module stems 

Source
Expand description

stemFor: the file stem a name is given inside a module directory, truncated when it would not fit the tree’s path budget.

Mirrors IR/src/layout/stems.ts:stemFor in ecosystem/morphir-typescript; see .dev/docs/superpowers/maps/2026-09-17-reference-tree-layout-map.md section 2.2 for the worked example this is pinned against.

Structs§

StemResult
The stem stem_for chose for a name, and whether it had to be truncated to fit.

Functions§

stem_for
The file stem name is given under a module directory whose physical path already carries physical_prefix (the root, the module’s directory, and the trailing /) and will carry suffix (the node kind and the profile’s extension) after it.