Type Parameters

  • K = unknown
  • V = unknown

Constructors

  • Type Parameters

    • K = unknown
    • V = unknown

    Parameters

    • key: K
    • Optionalvalue: null | V

    Returns Pair<K, V>

Properties

[NODE_TYPE]: symbol
key: K

Always Node or null when parsed, but can be set to anything.

srcToken?: CollectionItem

The CST token that was composed into this pair.

value: null | V

Always Node or null when parsed, but can be set to anything.

Methods

  • Parameters

    Returns Pair<K, V>

  • Parameters

    • Optional_: unknown
    • Optionalctx: ToJSContext

    Returns MapLike

  • Parameters

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

    • OptionalonChompKeep: (() => void)
        • (): void
        • Returns void

    Returns string