Options
All
  • Public
  • Public/Protected
  • All
Menu

A Suggestion represents a single result matching the input provided to suggest. It consists of a sequence of tokens which form a suggested pattern.

Hierarchy

  • Suggestion

Index

Constructors

constructor

Properties

Private _simplified

_simplified: string[] = ...

rank

rank: number = 0

tokens

Accessors

length

  • get length(): number

simplified

  • get simplified(): string[]

Methods

Private _simplify

  • _simplify(): void

concat

resolveLookups

  • resolveLookups(offsetTokens: string[], n: number): Suggestion[]
  • Given a sequence of offset tokens and a range, n, to resolve, this method will resolve the next n contiguous lookups which occur after the provided offset tokens. If the last token in the offset tokens is a substring of the token at that offset in this suggestion, then no further resolution will occur. This is mean to only resolve sequences of contiguous lookups occuring directly after the final offset token if the final offset token completes a word suggestion.

    Parameters

    • offsetTokens: string[]
    • n: number

    Returns Suggestion[]

splice

  • splice(offset: number, tokens: string[]): Suggestion

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Private property
  • Private method
  • Property

Generated using TypeDoc