@r47onfire/backolon - v0.0.0
    Preparing search index...

    Class Unparser

    Class for converting Things back into source text, or at least a readable representation.

    Index

    Constructors

    Properties

    counter: number = 0
    seen: Map<Thing<string | ThingType>, number> = ...

    Methods

    • Takes the string source of the children and joins it into a single string based on the Thing.

      Parameters

      • thing: Thing
      • parts: string[]

      Returns string

    post

    • Hook that gets called when an object is starting to be unparsed.

      Returns void

    • Hook that gets called when an object has finished being unparsed.

      Returns void

    • Walks the object tree recursively, and saves which objects have been seen once or multiple times in this.seen.

      Parameters

      Returns void

    • Stringifies the object tree, while noting shared and circular structure using Scheme datums #N= and #N#.

      Parameters

      Returns string