UNPKG

1.02 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/ivy/definitions" />
9import { NgCompiler } from '@angular/compiler-cli/src/ngtsc/core';
10import * as ts from 'typescript';
11export declare class DefinitionBuilder {
12 private readonly tsLS;
13 private readonly compiler;
14 constructor(tsLS: ts.LanguageService, compiler: NgCompiler);
15 getDefinitionAndBoundSpan(fileName: string, position: number): ts.DefinitionInfoAndBoundSpan | undefined;
16 private getDefinitionsForSymbol;
17 private getDefinitionsForSymbols;
18 getTypeDefinitionsAtPosition(fileName: string, position: number): readonly ts.DefinitionInfo[] | undefined;
19 private getTypeDefinitionsForTemplateInstance;
20 private getDirectiveTypeDefsForBindingNode;
21 private getTypeDefinitionsForSymbols;
22 private getDefinitionMetaAtPosition;
23}