Class PineHoverBuildMarkdown

Builds the markdown for the hover provider.

Constructors

Properties

iconString: string = ...

Methods

  • Appends the description to the markdown.

    Parameters

    Returns Promise<(undefined | string)[]>

    A promise that resolves to an array containing the description.

  • Appends details to the markdown.

    Parameters

    • detail: string

      The detail to append.

    • detailType: string

      The type of the detail.

    Returns string[]

    An array containing the details.

  • Appends parameters or fields to the markdown.

    Parameters

    • keyedDocs: PineDocsManager

      The PineDocsManager instance.

    • argsOrFields: string

      The arguments or fields to append.

    • title: string = 'Params'

      The title of the section.

    Returns Promise<string[]>

    A promise that resolves to an array containing the parameters or fields.

  • Appends return values to the markdown.

    Parameters

    Returns Promise<undefined | string[]>

    A promise that resolves to an array containing the return values.

  • Appends "see also" references to the markdown.

    Parameters

    • keyedDocs: PineDocsManager

      The PineDocsManager instance.

    • key: string

      The key identifying the symbol.

    Returns Promise<string[]>

    A promise that resolves to an array containing the "see also" references.

  • Appends the syntax to the markdown.

    Parameters

    • keyedDocs: PineDocsManager

      The PineDocsManager instance.

    • key: string

      The key identifying the symbol.

    • namespace: undefined | string

      The namespace of the symbol, if any.

    • regexId: string

      The regex ID of the symbol.

    • mapArrayMatrix: string

      The map, array, or matrix, if any.

    Returns Promise<string[]>

    A promise that resolves to an array containing the syntax.

    Remarks

    This method is used for fields, variables, constants, functions, methods, UDTs, types, and parameters.

  • Builds the markdown for the hover provider.

    Parameters

    • item: string

      The item to build the markdown for.

    Returns string

    A promise that formats the provided item to be bold in markdown.

  • Builds the content based on the key.

    Parameters

    • keyedDocs: PineDocsManager

      The PineDocsManager instance.

    • key: string

      The key identifying the symbol.

    Returns Promise<string>

    A promise that resolves to the built content.

  • Builds the hover description for a parameter.

    Parameters

    • paramDocs: Record<string, any>

      The documentation for the parameter.

    • typeKey: string

      The type key.

    Returns any

    The hover description.

  • Builds the syntax or key content.

    Parameters

    • syntaxContent: string

      The syntax content.

    • isMethod: boolean = false

      Whether or not the symbol is a method.

    Returns Promise<string>

    A promise that resolves to the built content.

  • Formats the syntax content.

    Parameters

    • syntax: undefined | string

      The syntax content.

    • mapArrayMatrix: string

      The map, array, or matrix, if any.

    Returns string

    The formatted syntax content.

Generated using TypeDoc