KC's Workspace
    Preparing search index...

    The context describes the current state the converter is in.

    Index

    Constructors

    Properties

    converter: Converter

    The converter instance that has created the context.

    convertingClassOrInterface: boolean
    convertingTypeNode: boolean
    inlineType: Set<string>
    preventInline: Set<string>
    programs: readonly Program[]

    All programs being converted.

    The project that is currently processed.

    scope: Reflection

    The scope or parent reflection that is currently processed.

    shouldBeStatic: boolean

    Accessors

    • get checker(): TypeChecker

      The TypeChecker instance returned by the TypeScript compiler.

      Returns TypeChecker

    • get logger(): Logger
      Internal

      Returns Logger

    • get program(): Program

      The program currently being converted. Accessing this property will throw if a source file is not currently being converted.

      Returns Program

    Methods

    • Create a ReferenceType which points to the provided symbol.

      Parameters

      Returns ReferenceType

    • Parameters

      Returns Symbol

    • Parameters

      Returns void

    • Parameters

      Returns Comment | undefined

    • Parameters

      • node: Node
      • moduleComment: boolean

      Returns Comment | undefined

    • Parameters

      Returns Reflection | undefined

    • Parameters

      Returns Symbol | undefined

    • Parameters

      Returns Symbol | undefined

    • Return the type declaration of the given node.

      Parameters

      • node: Node

        The TypeScript node whose type should be resolved.

      Returns Type | undefined

      The type declaration of the given node.

    • Parameters

      Returns void

    • Register a newly generated reflection. All created reflections should be passed to this method to ensure that the project helper functions work correctly.

      Parameters

      • reflection: Reflection

        The reflection that should be registered.

      • symbol: Symbol | undefined

        The symbol the given reflection was resolved from.

      • OptionalfilePath: NormalizedPath

      Returns void

    • Parameters

      Returns Symbol

    • Internal

      Parameters

      Returns void

    • Parameters

      Returns boolean

    • Parameters

      Returns boolean

    • Parameters

      Returns Context