Constructors

Properties

Methods

Constructors

Properties

nodes: CstNode[]

Methods

  • Creates a copy of this region with a slice of the selected nodes. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array.

    Parameters

    • Optionalstart: number

      The beginning index of the specified portion of the region. If start is undefined, then the slice begins at index 0.

    • Optionalend: number

      The end index of the specified portion of the region. This is exclusive of the element at the index 'end'. If end is undefined, then the slice extends to the end of the region.

    Returns FormattingRegion