"use strict"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ Object.defineProperty(exports, "__esModule", { value: true }); exports.formatDiagnostics = void 0; const ts = require("typescript"); const virtual_host_1 = require("./virtual-host"); /** Formats the specified diagnostics with respect to the given file system. */ function formatDiagnostics(diagnostics, fileSystem) { const formatHost = (0, virtual_host_1.createFormatDiagnosticHost)(fileSystem); return ts.formatDiagnosticsWithColorAndContext(diagnostics, formatHost); } exports.formatDiagnostics = formatDiagnostics; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhZ25vc3RpY3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL3NjaGVtYXRpY3MvdXBkYXRlLXRvb2wvdXRpbHMvZGlhZ25vc3RpY3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7O0FBRUgsaUNBQWlDO0FBRWpDLGlEQUEwRDtBQUUxRCwrRUFBK0U7QUFDL0UsU0FBZ0IsaUJBQWlCLENBQUMsV0FBNEIsRUFBRSxVQUFzQjtJQUNwRixNQUFNLFVBQVUsR0FBRyxJQUFBLHlDQUEwQixFQUFDLFVBQVUsQ0FBQyxDQUFDO0lBQzFELE9BQU8sRUFBRSxDQUFDLG9DQUFvQyxDQUFDLFdBQVcsRUFBRSxVQUFVLENBQUMsQ0FBQztBQUMxRSxDQUFDO0FBSEQsOENBR0MiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2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