Traqula
    Preparing search index...

    Class AstCoreFactory

    Implements

    Index

    Constructors

    Properties

    tracksSourceLocation: boolean

    Whether the AstFactory can track sources, if not, the sourceLocation function returns autoGen. Default true

    Methods

    • Returns a copy of the argument that is not materialized

      Type Parameters

      Parameters

      • arg: T

      Returns T

    • Type Parameters

      • T extends object

      Parameters

      • obj: T

      Returns T

    • Parameters

      • value: unknown
      • mapper: (some: object) => any

      Returns any

    • Similar to SourceLocationSource but also carrying the source it related too. All sourceLocation nodes that are descends of this one, relate themselves to this source.

      Parameters

      • newSource: string
      • subLoc: SourceLocation
      • start: number
      • end: number
      • startOnNew: number = 0
      • endOnNew: number = newSource.length

      Returns SourceLocation