Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MLCore

Hierarchy

  • MLCore

Index

Constructors

constructor

Properties

Private #ast

Private #document

#document: Document<RuleConfigValue, unknown>

Private #i18n

#i18n: I18n

Private #parser

Private #rules

#rules: MLRule<RuleConfigValue, unknown>[]

Private #ruleset

#ruleset: Ruleset

Private #schemas

#schemas: Readonly<[MLMLSpec, { cites?: Cites; def?: Partial<SpecDefs>; specs?: ElementSpec[] }]>

Private #sourceCode

#sourceCode: string

Accessors

document

  • get document(): MLDOMDocument<null | string | number | false | true | any[], unknown>
  • Returns MLDOMDocument<null | string | number | false | true | any[], unknown>

Methods

setCode

  • setCode(sourceCode: string): void
  • Parameters

    • sourceCode: string

    Returns void

setParser

  • Parameters

    Returns void

setRuleset

  • Parameters

    Returns void

verify

  • verify(fix?: boolean): Promise<VerifiedResult[]>
  • Parameters

    • Default value fix: boolean = false

    Returns Promise<VerifiedResult[]>

Generated using TypeDoc