• Preparing search index...
  • The search index is not available
SPeCS Packages Documentation
  • SPeCS Packages Documentation
  • @specs-feup/flow
  • graph/Node
  • Node
  • Case

Function Case

  • Case<D, S, N>(NodeType, callback): _Case<D, S, N>
  • Represents a case in a BaseNode.Class.switch.

    Type Parameters

    • D extends BaseNode.Data
    • S extends BaseNode.ScratchData
    • N extends BaseNode.Class<D, S>

    Parameters

    • NodeType: Node<D, S, N>

      The node type to match.

    • callback: ((g: N) => void)

      The call back if the node type matches.

        • (g): void
        • Parameters

          • g: N

          Returns void

    Returns _Case<D, S, N>

    An object to be used in BaseNode.Class.switch.

    • Defined in lara-flow/src/graph/Node.ts:148

Settings

Member Visibility
SPeCS Packages Documentation
  • Loading...

Generated using TypeDoc