1 | /// <amd-module name="@angular/compiler-cli/ngcc/src/packages/bundle_program" />
|
---|
2 | /**
|
---|
3 | * @license
|
---|
4 | * Copyright Google LLC All Rights Reserved.
|
---|
5 | *
|
---|
6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
7 | * found in the LICENSE file at https://angular.io/license
|
---|
8 | */
|
---|
9 | import * as ts from 'typescript';
|
---|
10 | import { AbsoluteFsPath, ReadonlyFileSystem } from '../../../src/ngtsc/file_system';
|
---|
11 | /**
|
---|
12 | * An entry point bundle contains one or two programs, e.g. `src` and `dts`,
|
---|
13 | * that are compiled via TypeScript.
|
---|
14 | *
|
---|
15 | * To aid with processing the program, this interface exposes the program itself,
|
---|
16 | * as well as path and TS file of the entry-point to the program and the r3Symbols
|
---|
17 | * file, if appropriate.
|
---|
18 | */
|
---|
19 | export interface BundleProgram {
|
---|
20 | program: ts.Program;
|
---|
21 | options: ts.CompilerOptions;
|
---|
22 | host: ts.CompilerHost;
|
---|
23 | path: AbsoluteFsPath;
|
---|
24 | file: ts.SourceFile;
|
---|
25 | package: AbsoluteFsPath;
|
---|
26 | r3SymbolsPath: AbsoluteFsPath | null;
|
---|
27 | r3SymbolsFile: ts.SourceFile | null;
|
---|
28 | }
|
---|
29 | /**
|
---|
30 | * Create a bundle program.
|
---|
31 | */
|
---|
32 | export declare function makeBundleProgram(fs: ReadonlyFileSystem, isCore: boolean, pkg: AbsoluteFsPath, path: AbsoluteFsPath, r3FileName: string, options: ts.CompilerOptions, host: ts.CompilerHost, additionalFiles?: AbsoluteFsPath[]): BundleProgram;
|
---|
33 | /**
|
---|
34 | * Search the given directory hierarchy to find the path to the `r3_symbols` file.
|
---|
35 | */
|
---|
36 | export declare function findR3SymbolsPath(fs: ReadonlyFileSystem, directory: AbsoluteFsPath, filename: string): AbsoluteFsPath | null;
|
---|