ts-lambda-api - v2.5.2
    Preparing search index...

    Class NodeBaseAbstract

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • type: symbol

      Returns NodeBase

    Properties

    "[NODE_TYPE]": symbol
    addToJSMap?: (ctx: ToJSContext, map: MapLike, value: unknown) => void

    Customize the way that a key-value pair is resolved. Used for YAML 1.1 !!merge << handling.

    comment?: string

    A comment on or immediately after this

    commentBefore?: string

    A comment before this

    range?: Range

    The [start, value-end, node-end] character offsets for the part of the source parsed into this node (undefined if not parsed). The value-end and node-end positions are themselves not included in their respective ranges.

    spaceBefore?: boolean

    A blank line before this node and its commentBefore

    srcToken?: Token

    The CST token that was composed into this node.

    tag?: string

    A fully qualified tag, if required

    Methods

    • Create a copy of this node.

      Returns NodeBase

    • A plain JavaScript representation of this node.

      Parameters

      Returns any

    • A plain JS representation of this node

      Returns any

    • Parameters

      • Optionalctx: StringifyContext
      • OptionalonComment: () => void
      • OptionalonChompKeep: () => void

      Returns string