Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MLDOMNode<T, O, A>

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

  • new MLDOMNode(astNode: A, document: Document<T, O>): MLDOMNode
  • Parameters

    • astNode: A
    • document: Document<T, O>

    Returns MLDOMNode

Properties

Private #doc

#doc: Document<T, O>

Readonly Private #endCol

#endCol: number

Readonly Private #endLine

#endLine: number

Readonly Private #endOffset

#endOffset: number

Private #fixed

#fixed: string

Private #indentaion

#indentaion: MLDOMIndentation<T, O> | null | undefined

indentation cache props

Private #prevToken

#prevToken: AnonymousNode<T, O> | null | undefined

prevToken cache props

Readonly Private #raw

#raw: string

Readonly Private #startCol

#startCol: number

Readonly Private #startLine

#startLine: number

Readonly Private #startOffset

#startOffset: number

Protected _astToken

_astToken: A

Readonly rules

rules: Rules

Readonly type

type: NodeType = "Node"

Readonly uuid

uuid: string

Accessors

endCol

  • get endCol(): number
  • Returns number

endLine

  • get endLine(): number
  • Returns number

endOffset

  • get endOffset(): number
  • Returns number

indentation

  • Returns MLDOMIndentation<T, O> | null

nextNode

  • Returns AnonymousNode<T, O> | null

nodeStore

  • Returns NodeStore

originRaw

  • get originRaw(): string
  • Returns string

parentNode

prevNode

  • Returns AnonymousNode<T, O> | null

prevToken

  • Returns AnonymousNode<T, O> | null

raw

  • get raw(): string
  • Returns string

rule

  • get rule(): RuleInfo<T, O>
  • Returns RuleInfo<T, O>

startCol

  • get startCol(): number
  • Returns number

startLine

  • get startLine(): number
  • Returns number

startOffset

  • get startOffset(): number
  • Returns number

syntaxicalParentNode

  • Returns MLDOMElement<T, O> | null

Methods

Private _isFirstToken

  • _isFirstToken(): boolean
  • Returns boolean

fix

  • fix(raw: string): void
  • Parameters

    • raw: string

    Returns void

is

  • Parameters

    Returns boolean

toString

  • toString(): string
  • Returns string

Generated using TypeDoc