@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

    • 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

    • 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

    • post(thing: Thing): string

      Returns the text to be put after the contents of the given Thing.

      Parameters

      Returns string

    • Returns the text to be put before the contents of the given Thing.

      Parameters

      Returns string

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

      Parameters

      Returns string

    • Main entry point to unparse an object to a string.

      Parameters

      Returns string

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

      Parameters

      Returns void