Class representing a DataFlow, managing dependencies and data flow nodes.

Constructors

Properties

roots: Set<DataFlowNode>
templateProcessor: default
visited: Map<MetaInfo, DataFlowNode>

Methods

  • Retrieves the roots of the data flow nodes based on the specified option.

    Parameters

    • level: FlowOpt = 0

      The option for retrieving roots, it can be either "l0" or "l1". "l0" returns the roots as they are. "l1" returns the roots in a compacted form.

    Returns DataFlowNode[]

    • An array of data flow node roots.

    Throws

    • Throws an error if the specified option is unknown.
  • Recursively compacts the given DataFlowNode, reducing the 'to' field to a single object if there is only one child node, or omitting it if there are no child nodes.

    Parameters

    • node: DataFlowNode

      The node to compact. This node may have a 'to' field that is an array of child nodes.

    Returns DataFlowNode

    The compacted node, which may have a simplified 'to' field or none at all.

  • Links the given metaInfo node with its dependees, creating and returning a new DataFlowNode.

    Parameters

    • metaInfo: MetaInfo

      The metadata information object containing dependencies and location data.

    Returns DataFlowNode

    • The created DataFlowNode with linked dependees.

Generated using TypeDoc