Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Placeholder

Handle placeholders.

export
class

Placeholder

Hierarchy

  • Placeholder

Index

Methods

generate

  • generate(text: string): vs.SnippetString
  • Loops through text and converts placeholders into a snippetstring

    memberof

    Placeholder

    Parameters

    • text: string

      The text to loop thorugh and handle placeholders.

    Returns vs.SnippetString

    A vs.SnippetString with all the finished values ready to insert.

Private getPlaceholderAtIndex

  • Get placeholder at a specific index.

    memberof

    Placeholder

    Parameters

    • placeholders: ISyntaxType[]

      The placeholders to search through.

    • index: number

      The index to search at.

    Returns ISyntaxType

    The placeholder if one is found. If found use it as true.

Private getPlaceholderText

  • Get the placeholder text.

    memberof

    Placeholder

    Parameters

    • placeholder: ISyntaxType

      The placeholder where text should be searched for.

    Returns string

    The placeholder text.

Generated using TypeDoc