Class Heap

The heap stores the function definition's root TreeNodes, for later use.

it stores error data and errorCallbacks for the nodejs API

it also stores line attributes

Hierarchy

  • Heap

Constructors

Properties

data: Map<HeapSlot>

The stored function definitions

error: undefined | error

The error data, used for the Nodejs api

errorCall: undefined | errorCall

The error callback, use for the Nodejs api

lineAttributes: Map<attributes>

The attributes for each line, map keys are line numbers, values are arrays of specified attributes

emptyTree: TreeNode = ...

Create an empty TreeNode instance, acts as a placeholder

Methods

  • Get a function definition's profile

    Parameters

    • key: string

      The function definition's name

    • e: error = ...

      The error data in case one is thrown

    Returns string

  • Instantiate a placeholder for a HeapSlot

    Parameters

    • key: string

      The function definition's name

    Returns void

  • Store attributes for a line

    Parameters

    • key: number

      The line number

    • values: attribute[]

      An array of the specified attributes

    Returns void

  • Set a profile for a function definition

    Parameters

    • key: string

      The function definition's name

    • profile: string

      The function's profile

    Returns void

  • Set a root TreeNode instance for a function definition

    Parameters

    • key: string

      The function definition's name

    • tree: TreeNode

      The root TreeNode instance of the function definition

    Returns void

  • Set a HeapSlot value

    Parameters

    • key: string

      The function definition's name

    • tree: TreeNode

      The function definition's root TreeNode instance

    • profile: string

      The function's profile

    Returns void

Generated using TypeDoc