TabScript - v2.0.2
    Preparing search index...

    Interface Snapshot

    Snapshot of parser state that can be used to revert changes.

    interface Snapshot {
        getSource(): string;
        hasOutput(): boolean;
        revert(): void;
        revertOutput(): (string | number)[];
    }
    Index

    Methods

    • Get all source code that has been read since the snapshot

      Returns string

    • Check if any output has been emitted since the snapshot

      Returns boolean

    • Revert both input and output state to the snapshot point

      Returns void

    • Revert only output state and returns the output tokens and mappings

      Returns (string | number)[]