Class PineDocString

Constructors

Properties

Editor: undefined | TextEditor
functionPattern: RegExp = ...
typePattern: RegExp = ...

Methods

  • Reads the selected code in the editor and generates the appropriate docstring.

    Returns Promise<void>

  • Generates a docstring for a given function code.

    Parameters

    • match: string

      The string of the function's code.

    Returns Promise<undefined | string>

    The generated docstring.

  • Generates a docstring for a given type declaration code.

    Parameters

    • match: string

      The string of the type's code.

    Returns Promise<string>

    The generated docstring.

Generated using TypeDoc