UNPKG

705 BTypeScriptView Raw
1/// <amd-module name="@angular/language-service/ivy/ts_utils" />
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9import * as ts from 'typescript';
10/**
11 * Return the node that most tightly encompasses the specified `position`.
12 * @param node The starting node to start the top-down search.
13 * @param position The target position within the `node`.
14 */
15export declare function findTightestNode(node: ts.Node, position: number): ts.Node | undefined;
16export declare function getParentClassDeclaration(startNode: ts.Node): ts.ClassDeclaration | undefined;