Constructors

Methods

  • Verifies if a code region can undergo function outlining. This check is performed automatically by the outliner itself, but it can be invoked manually if desired.

    Parameters

    • begin: Statement

      the first statement of the outlining region

    • end: Statement

      the last statement of the outlining region

    Returns boolean

    true if the outlining region is valid, false otherwise

  • Applies function outlining to a code region delimited by two statements. Function outlining is the process of removing a section of code from a function and placing it in a new function. The beginning and end of the code region must be at the same scope level.

    Parameters

    • begin: Statement

      the first statement of the outlining region

    • end: Statement

      the last statement of the outlining region

    Returns undefined | (Call | FunctionJp)[]

    an array with the joinpoints of the outlined function and the call to it. These values are merely references, and all changes have already been committed to the AST at this point

  • Applies function outlining to a code region delimited by two statements. Function outlining is the process of removing a section of code from a function and placing it in a new function. The beginning and end of the code region must be at the same scope level.

    Parameters

    • begin: Statement

      the first statement of the outlining region

    • end: Statement

      the last statement of the outlining region

    • functionName: string

      the name to give to the outlined function

    Returns undefined | (Call | FunctionJp)[]

    an array with the joinpoints of the outlined function and the call to it. These values are merely references, and all changes have already been committed to the AST at this point

  • Sets the verbosity of the outliner, with false being the equivalent of a silent mode (true is the default)

    Parameters

    • verbose: boolean

      the verbosity of the outliner

    Returns void