Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "textDocument"

Index

Classes

Functions

Functions

replace

  • replace(data: object, search: string | RegExp, replacement: any | function): SourceMapTextWriter | object
  • 替换指定的内容并更新源映射

    Parameters

    • data: object

      要更新的数据

    • search: string | RegExp

      要搜索的内容

    • replacement: any | function

      要替换的内容

    Returns SourceMapTextWriter | object

    返回替换后的数据

splice

  • splice(data: object, index: number, deleteCount: number, insert: any): SourceMapTextWriter | object
  • 增删指定的内容并更新源映射

    Parameters

    • data: object

      要更新的数据

    • index: number

      增删的索引(从 0 开始)

    • deleteCount: number

      要删除的数目

    • insert: any

      要插入的字符串内容

    Returns SourceMapTextWriter | object

    返回替换后的数据

Generated using TypeDoc