[6a3a178] | 1 | /// <amd-module name="@angular/compiler-cli/src/metadata/bundler" />
|
---|
| 2 | import * as ts from 'typescript';
|
---|
| 3 | import { MetadataCache } from '../transformers/metadata_cache';
|
---|
| 4 | import { MetadataEntry, ModuleMetadata } from './schema';
|
---|
| 5 | export interface BundleEntries {
|
---|
| 6 | [name: string]: MetadataEntry;
|
---|
| 7 | }
|
---|
| 8 | export interface BundlePrivateEntry {
|
---|
| 9 | privateName: string;
|
---|
| 10 | name: string;
|
---|
| 11 | module: string;
|
---|
| 12 | }
|
---|
| 13 | export interface BundledModule {
|
---|
| 14 | metadata: ModuleMetadata;
|
---|
| 15 | privates: BundlePrivateEntry[];
|
---|
| 16 | }
|
---|
| 17 | export interface MetadataBundlerHost {
|
---|
| 18 | getMetadataFor(moduleName: string, containingFile: string): ModuleMetadata | undefined;
|
---|
| 19 | }
|
---|
| 20 | export declare class MetadataBundler {
|
---|
| 21 | private root;
|
---|
| 22 | private importAs;
|
---|
| 23 | private host;
|
---|
| 24 | private symbolMap;
|
---|
| 25 | private metadataCache;
|
---|
| 26 | private exports;
|
---|
| 27 | private rootModule;
|
---|
| 28 | private privateSymbolPrefix;
|
---|
| 29 | private exported;
|
---|
| 30 | constructor(root: string, importAs: string | undefined, host: MetadataBundlerHost, privateSymbolPrefix?: string);
|
---|
| 31 | getMetadataBundle(): BundledModule;
|
---|
| 32 | static resolveModule(importName: string, from: string): string;
|
---|
| 33 | private getMetadata;
|
---|
| 34 | private exportAll;
|
---|
| 35 | /**
|
---|
| 36 | * Fill in the canonicalSymbol which is the symbol that should be imported by factories.
|
---|
| 37 | * The canonical symbol is the one exported by the index file for the bundle or definition
|
---|
| 38 | * symbol for private symbols that are not exported by bundle index.
|
---|
| 39 | */
|
---|
| 40 | private canonicalizeSymbols;
|
---|
| 41 | private canonicalizeSymbol;
|
---|
| 42 | private getEntries;
|
---|
| 43 | private getReExports;
|
---|
| 44 | private convertSymbol;
|
---|
| 45 | private convertEntry;
|
---|
| 46 | private convertClass;
|
---|
| 47 | private convertMembers;
|
---|
| 48 | private convertMember;
|
---|
| 49 | private convertStatics;
|
---|
| 50 | private convertFunction;
|
---|
| 51 | private convertValue;
|
---|
| 52 | private convertExpression;
|
---|
| 53 | private convertError;
|
---|
| 54 | private convertReference;
|
---|
| 55 | private convertExpressionNode;
|
---|
| 56 | private symbolOf;
|
---|
| 57 | private canonicalSymbolOf;
|
---|
| 58 | }
|
---|
| 59 | export declare class CompilerHostAdapter implements MetadataBundlerHost {
|
---|
| 60 | private host;
|
---|
| 61 | private cache;
|
---|
| 62 | private options;
|
---|
| 63 | private collector;
|
---|
| 64 | constructor(host: ts.CompilerHost, cache: MetadataCache | null, options: ts.CompilerOptions);
|
---|
| 65 | getMetadataFor(fileName: string, containingFile: string): ModuleMetadata | undefined;
|
---|
| 66 | }
|
---|