finos/morphir-elm/20.1.0

NOTE: the latest version is 22.0.2

Formerly Morgan-Stanley/morphir-elm. Search finds this package by either name.

Morphir.IR.Decoration

Module to work with Decorations. A decoration is an additional piece of information added to your model that is not captured in the langauge

type alias DecorationID =
String
Dict DecorationID DecorationConfigAndData
type alias DecorationData =
Dict NodeID RawValue

Represents the contend of a sidecar file.

{ displayName : String
, entryPoint : FQName
, iR : Distribution
, data : DecorationData
}
getDecoratedNodeIds : DecorationID -> AllDecorationConfigAndData -> List NodeID

Get every nodeId decorated with a given decoration.

getNodeIdsDecoratedWithValue : DecorationID -> RawValue -> AllDecorationConfigAndData -> List NodeID

Given a decoration type and value, get every node decorated with that value.

DecorationID
-> (NodeID -> RawValue -> Bool)
-> AllDecorationConfigAndData
-> List NodeID

Given a decoration type and a predicate, return a List of NodeIDs where the decoration satisfies the predicate.