Project

General

Profile

1
/**
2
 * @license
3
 * Copyright Google Inc. 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
import { Type } from '@angular/core';
9
import { CompileTypeSummary } from './compile_metadata';
10
export interface Summary<T> {
11
    symbol: T;
12
    metadata: any;
13
    type?: CompileTypeSummary;
14
}
15
export declare abstract class SummaryResolver<T> {
16
    abstract isLibraryFile(fileName: string): boolean;
17
    abstract getLibraryFileName(fileName: string): string | null;
18
    abstract resolveSummary(reference: T): Summary<T> | null;
19
    abstract getSymbolsOf(filePath: string): T[];
20
    abstract getImportAs(reference: T): T;
21
    abstract addSummary(summary: Summary<T>): void;
22
}
23
export declare class JitSummaryResolver implements SummaryResolver<Type<any>> {
24
    private _summaries;
25
    isLibraryFile(fileName: string): boolean;
26
    getLibraryFileName(fileName: string): string | null;
27
    resolveSummary(reference: Type<any>): Summary<Type<any>> | null;
28
    getSymbolsOf(filePath: string): Type<any>[];
29
    getImportAs(reference: Type<any>): Type<any>;
30
    addSummary(summary: Summary<Type<any>>): void;
31
}
(47-47/54)