UNPKG

939 BTypeScriptView Raw
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/language-service/src/reflector_host" />
9import { StaticSymbolResolverHost } from '@angular/compiler';
10import * as ts from 'typescript';
11export declare class ReflectorHost implements StaticSymbolResolverHost {
12 private readonly tsLSHost;
13 private readonly hostAdapter;
14 private readonly metadataReaderCache;
15 private readonly moduleResolutionCache;
16 private readonly fakeContainingPath;
17 constructor(getProgram: () => ts.Program, tsLSHost: ts.LanguageServiceHost);
18 getMetadataFor(modulePath: string): {
19 [key: string]: any;
20 }[] | undefined;
21 moduleNameToFileName(moduleName: string, containingFile?: string): string | null;
22 getOutputName(filePath: string): string;
23}