Module to work with Decorations. A decoration is an additional piece of information added to your model that is not captured in the langauge
String
Dict DecorationID DecorationConfigAndData
Morphir.SDK.Dict.Dict Morphir.IR.NodeId.NodeID Morphir.IR.Value.RawValue
Represents the contend of a sidecar file.
{ displayName : String
, entryPoint : Morphir.IR.FQName.FQName
, iR : Morphir.IR.Distribution.Distribution
, data : DecorationData
}
getDecoratedNodeIds : DecorationID -> AllDecorationConfigAndData -> List Morphir.IR.NodeId.NodeID
Get every nodeId decorated with a given decoration.
getNodeIdsDecoratedWithValue : DecorationID -> Morphir.IR.Value.RawValue -> AllDecorationConfigAndData -> List Morphir.IR.NodeId.NodeID
Given a decoration type and value, get every node decorated with that value.
filterDecorations : DecorationID -> (Morphir.IR.NodeId.NodeID -> Morphir.IR.Value.RawValue -> Basics.Bool) -> AllDecorationConfigAndData -> List Morphir.IR.NodeId.NodeID
Given a decoration type and a predicate, return a List of NodeIDs where the decoration satisfies the predicate.