source: trip-planner-front/node_modules/@angular/compiler-cli/src/transformers/util.d.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.5 KB
Line 
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/transformers/util" />
9import * as ts from 'typescript';
10import { CompilerOptions, Diagnostic } from './api';
11export declare const GENERATED_FILES: RegExp;
12export declare const DTS: RegExp;
13export declare const TS: RegExp;
14export declare const enum StructureIsReused {
15 Not = 0,
16 SafeModules = 1,
17 Completely = 2
18}
19export declare function tsStructureIsReused(program: ts.Program): StructureIsReused;
20export declare function error(msg: string): never;
21export declare function userError(msg: string): never;
22export declare function createMessageDiagnostic(messageText: string): ts.Diagnostic & Diagnostic;
23export declare function isInRootDir(fileName: string, options: CompilerOptions): string | true | null;
24export declare function relativeToRootDirs(filePath: string, rootDirs: string[]): string;
25/**
26 * Converts a ng.Diagnostic into a ts.Diagnostic.
27 * This looses some information, and also uses an incomplete object as `file`.
28 *
29 * I.e. only use this where the API allows only a ts.Diagnostic.
30 */
31export declare function ngToTsDiagnostic(ng: Diagnostic): ts.Diagnostic;
32/**
33 * Strip multiline comment start and end markers from the `commentText` string.
34 *
35 * This will also strip the JSDOC comment start marker (`/**`).
36 */
37export declare function stripComment(commentText: string): string;
Note: See TracBrowser for help on using the repository browser.