@samatawy/rules
    Preparing search index...

    Class Autocomplete

    A helper class that can be used in syntax editors.

    Index

    Constructors

    Methods

    • Get suggestions suitable for a given cursor position in a given line.

      Parameters

      • cursor: number

        the position of the cursor relative to the start of the line.

      • text: string

        the complete line where the cursor is positioned.

      Returns AutocompleteSuggestion[]

      an array of suggestions that can be displayed.