Traqula
    Preparing search index...

    Interface SourceLocationInlinedSource

    A SourceLocation that replaces a given range of the generators current source with some other source. The SourceLocation of the node itself is described using the loc key, and the state of the generator catches up the new source until startOnNew.

    interface SourceLocationInlinedSource {
        end: number;
        endOnNew: number;
        loc: SourceLocation;
        newSource: string;
        sourceLocationType: "inlinedSource";
        start: number;
        startOnNew: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    end: number
    endOnNew: number

    Behavior of the current loc, after replacing the source string.

    There is in fact no subLocation handling, there never was.

    newSource: string

    The string that will be used as the source for this node and the descends of this node. Note that the generator will print the characters from newSource[0] until start. Likewise for the suffix.

    sourceLocationType: "inlinedSource"
    start: number

    The range that this node replaces in the context of the original source.

    startOnNew: number

    The range of characters within the newSource that can be targeted by descendants of this node. This means anything outside this range in the newSource, will be generated by localization handling.