import { DiagnosticSeverity } from 'vscode-languageserver/node' ; /** Defines the information needed to create a `Diagnostic` object. */ export class DiagnosticData { line : number ; problem : string ; diagnosticSeverity : DiagnosticSeverity ; filePath : string ; offendingSymbol : string ; charPosition : number ; } param diagnosticData return export function isDiagnosticDataUndefined ( diagnosticData ) { if ( diagnosticData . line === undefined || diagnosticData . problem === undefined || diagnosticData . diagnosticSeverity === undefined || diagnosticData . filePath === undefined ) { return true ; } return false ; }