1 | /**
|
2 | * @license
|
3 | * Copyright Google LLC All Rights Reserved.
|
4 | *
|
5 | * Use of this source code is governed by an MIT-style license that can be
|
6 | * found in the LICENSE file at https://angular.io/license
|
7 | */
|
8 | /// <amd-module name="@angular/compiler-cli/src/diagnostics/translate_diagnostics" />
|
9 | import { ParseSourceSpan } from '@angular/compiler';
|
10 | import * as ts from 'typescript';
|
11 | import { Diagnostic } from '../transformers/api';
|
12 | export interface TypeCheckHost {
|
13 | parseSourceSpanOf(fileName: string, line: number, character: number): ParseSourceSpan | null;
|
14 | }
|
15 | export declare function translateDiagnostics(host: TypeCheckHost, untranslatedDiagnostics: ReadonlyArray<ts.Diagnostic>): {
|
16 | ts: ts.Diagnostic[];
|
17 | ng: Diagnostic[];
|
18 | };
|