This is only a convenience for building atoms. There is no requirement for implementations to extend JsAtom to be considered atoms.

Hierarchy (view full)

Constructors

  • Use create_sym_ns or create_sym to create a new Sym instance.

    Parameters

    • localName: string
    • namespace: string
    • Optional pos: number
    • Optional end: number
    • Optional id: number

    Returns Sym

Properties

end?: number
name: string
pos?: number
type: "symbol" = "symbol"

Accessors

Methods

  • Creates a new symbol with exactly the same local name and namespace as this symbol. However it allows scanning information (pos, end) to be carried along with the new instance.

    Parameters

    • Optional pos: number

      The start position of the symbol in the source text.

    • Optional end: number

      The end position of the symbol in the source text.

    Returns Sym