Class Diagnostic

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(fileName: string, lineMap: LineMap, start: number, length: number, diagnosticKey: string, _arguments?: Array<any>, additionalLocations?: Location[]): Diagnostic

Parameters

  • fileName: string
  • lineMap: LineMap
  • start: number
  • length: number
  • diagnosticKey: string
  • _arguments?: Array<any> optional
  • additionalLocations?: Location[] optional

Returns

Diagnostic

Properties

private _additionalLocations: any

private _arguments: any

private _diagnosticKey: any

Methods

public additionalLocations(): Location[]

Returns

Location[]

public arguments(): Array<any>

Returns

Array<any>

public character(): number

Returns

number

public diagnosticKey(): string

Returns

string

public static equals(diagnostic1: Diagnostic, diagnostic2: Diagnostic): boolean

Parameters

Returns

boolean

public fileName(): string

Returns

string

public info(): DiagnosticInfo

Returns

DiagnosticInfo

public length(): number

Returns

number

public line(): number

Returns

number

public lineMap(): LineMap

Returns

LineMap

public message(): string

Returns

string

public start(): number

Returns

number

public text(): string

Returns

string

public toJSON(key: any): any

Parameters

  • key: any

Returns

any