UNPKG

1.22 kBTypeScriptView 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/hover" />
9import { NgAnalyzedModules } from '@angular/compiler';
10import * as ts from 'typescript';
11import * as ng from './types';
12/**
13 * Traverse the template AST and look for the symbol located at `position`, then
14 * return the corresponding quick info.
15 * @param info template AST
16 * @param position location of the symbol
17 * @param analyzedModules all NgModules in the program.
18 */
19export declare function getTemplateHover(info: ng.AstResult, position: number, analyzedModules: NgAnalyzedModules): ts.QuickInfo | undefined;
20/**
21 * Get quick info for Angular semantic entities in TypeScript files, like Directives.
22 * @param position location of the symbol in the source file
23 * @param declarations All Directive-like declarations in the source file.
24 * @param analyzedModules all NgModules in the program.
25 */
26export declare function getTsHover(position: number, declarations: ng.Declaration[], analyzedModules: NgAnalyzedModules): ts.QuickInfo | undefined;