Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new Indentation(ast: Node, parser: SlRule): Indentation

Properties

Private _atQueryDelimiter

_atQueryDelimiter: string

Private _bumpNextLine

_bumpNextLine: boolean

Private _closingBraceRegex

_closingBraceRegex: RegExp

Private _commaDelimiter

_commaDelimiter: string

Private _depth

_depth: number

Private _newLineDelimiter

_newLineDelimiter: string

Private _openingBraceRegex

_openingBraceRegex: RegExp

Accessors

Private _spacingUnit

  • get _spacingUnit(): string

ast

  • get ast(): Node

Private numSpaces

  • get numSpaces(): number

parser

  • get parser(): SlRule

Methods

Private apply_indentation

  • apply_indentation(line: string, depth: number): string

Private blockStillOpen

  • blockStillOpen(line: string): boolean

Private endsWithComma

  • endsWithComma(line: string): boolean

fix

  • fix(): Node

Private isEmpty

  • isEmpty(line: string): boolean

Private shouldBumpNextLine

  • shouldBumpNextLine(line: string): boolean

Private startsWithAt

  • startsWithAt(line: string): boolean

Private tabEnabled

  • tabEnabled(): boolean

Private visit

  • visit(line: string): string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc