kab/kab/static/js/monaco-yaml/yamlWorker.js
/**
     * Checks whether the given literal conforms to the [Diagnostic](#Diagnostic) interface.
     */
Checks whether the given literal conforms to the [Diagnostic](#Diagnostic) interface.
Checks whether the given literal conforms to the [ Diagnostic ] ( #Diagnostic ) interface .
function is(value) {
      var candidate = value;
      return Is.defined(candidate)
        && Range.is(candidate.range)
        && Is.string(candidate.message)
        && (Is.number(candidate.severity) || Is.undefined(candidate.severity))
        && (Is.number(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code))
        && (Is.string(candidate.source) || Is.undefined(candidate.source))
        && (Is.undefined(candidate.relatedInformation)
            || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is));
    }
function is ( value ) { var candidate = value ; return Is . defined ( candidate ) && Range . is ( candidate . range ) && Is . string ( candidate . message ) && ( Is . number ( candidate . severity ) || Is . undefined ( candidate . severity ) ) && ( Is . number ( candidate . code ) || Is . string ( candidate . code ) || Is . undefined ( candidate . code ) ) && ( Is . string ( candidate . source ) || Is . undefined ( candidate . source ) ) && ( Is . undefined ( candidate . relatedInformation ) || Is . typedArray ( candidate . relatedInformation , DiagnosticRelatedInformation . is ) ) ; }
Checks whether the given literal conforms to the [Diagnostic](#Diagnostic) interface.
Checks whether the given literal conforms to the [ Diagnostic ] ( #Diagnostic ) interface .