2016-11-29 18:36:33 -05:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
2016-12-02 13:08:46 -05:00
|
|
|
import {CompileTypeSummary} from './compile_metadata';
|
2016-12-15 12:12:40 -05:00
|
|
|
import {CompilerInjectable} from './injectable';
|
2016-11-29 18:36:33 -05:00
|
|
|
|
2016-12-15 12:12:40 -05:00
|
|
|
export interface Summary<T> {
|
|
|
|
symbol: T;
|
|
|
|
metadata: any;
|
|
|
|
type?: CompileTypeSummary;
|
|
|
|
}
|
|
|
|
|
|
|
|
@CompilerInjectable()
|
|
|
|
export class SummaryResolver<T> {
|
2016-12-27 12:36:47 -05:00
|
|
|
isLibraryFile(fileName: string): boolean { return false; };
|
|
|
|
getLibraryFileName(fileName: string): string { return null; }
|
2016-12-15 12:12:40 -05:00
|
|
|
resolveSummary(reference: T): Summary<T> { return null; };
|
|
|
|
getSymbolsOf(filePath: string): T[] { return []; }
|
2016-12-27 12:36:47 -05:00
|
|
|
getImportAs(reference: T): T { return reference; }
|
2016-11-29 18:36:33 -05:00
|
|
|
}
|