Constructors

Properties

completionCheck: boolean = false
regexToReplace: [RegExp, string][] = ...
url: string = 'https://www.tradingview.com/pine-script-reference/v5/'

Methods

  • Checks if the description exists and appends a new line

    Parameters

    • desc: any

      The description to check

    Returns string

    The description followed by '\n\n' if it exists, '\n\n' otherwise

  • Checks if the expression matches any of the keys in the documentation

    Parameters

    • expression: string

      The expression to check

    • Rest ...keys: string[]

      The keys to check against

    Returns undefined | string | Record<string, any>

    The type if a match is found, null otherwise

  • Checks the syntax content and replaces certain patterns

    Parameters

    • syntaxContent: string

      The syntax content to check

    • isMethod: boolean = false

      Whether the syntax content is a method

    Returns string

    The modified syntax content

  • Formats the arguments for the syntax

    Parameters

    • doc: any

      The documentation object containing the arguments

    • modifiedSyntax: string

      The syntax to modify

    Returns string

    The modified syntax

  • Formats the syntax

    Parameters

    • name: string

      The name of the syntax

    • doc: any

      The documentation object for the syntax

    • isMethod: boolean

      Whether the syntax is a method

    • namespace: null | string = null

    Returns string

    The formatted syntax

  • Formats the returned types

    Parameters

    • types: string[]

      The types to format

    Returns string[]

    The formatted types

  • Formats the URL

    Parameters

    • input: string

      The input to format

    Returns undefined | string

    The formatted URL

  • Checks if the expression is a variable

    Parameters

    • keyedDocs: any

      The documentation object to check

    Returns string

    The type of the expression if it is a variable, null otherwise

  • Checks the type of the expression

    Parameters

    • expression: string

      The expression to check

    • completionCheck: boolean = false

      Whether to check for completion

    Returns undefined | string | Record<string, any>

    The type of the expression if it can be identified, null otherwise

  • Formats the syntax

    Parameters

    • syntax: string

      The syntax to format

    • hasArgs: boolean

      Whether the syntax has arguments

    • namespace: null | string = null

    Returns string

    The formatted syntax

  • Parameters

    • str: string

    Returns string

  • Handles individual replacements in a string

    Parameters

    • str: string

      The string to replace in

    Returns string

    The string with the replacements made

  • Replaces the type in the string

    Parameters

    • type: string

      The type to replace

    Returns string

    The string with the type replaced

  • Checks if the expression is a variable

    Parameters

    • keyedDocs: any

      The documentation object to check

    • otherKeys: null | string[] = null

    Returns string

    The type of the expression if it is a variable, null otherwise

Generated using TypeDoc