UNPKG

895 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/definitions" />
9import * as ts from 'typescript';
10import { AstResult } from './types';
11/**
12 * Traverse the template AST and look for the symbol located at `position`, then
13 * return its definition and span of bound text.
14 * @param info
15 * @param position
16 */
17export declare function getDefinitionAndBoundSpan(info: AstResult, position: number): ts.DefinitionInfoAndBoundSpan | undefined;
18/**
19 * Gets an Angular-specific definition in a TypeScript source file.
20 */
21export declare function getTsDefinitionAndBoundSpan(sf: ts.SourceFile, position: number, tsLsHost: Readonly<ts.LanguageServiceHost>): ts.DefinitionInfoAndBoundSpan | undefined;