1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import { AST, TmplAstNode } from '@angular/compiler';
|
10 | import { NgCompiler } from '@angular/compiler-cli/src/ngtsc/core';
|
11 | import * as ts from 'typescript';
|
12 | import { DisplayInfoKind } from './display_parts';
|
13 | export declare class QuickInfoBuilder {
|
14 | private readonly tsLS;
|
15 | private readonly compiler;
|
16 | private readonly component;
|
17 | private node;
|
18 | private readonly typeChecker;
|
19 | constructor(tsLS: ts.LanguageService, compiler: NgCompiler, component: ts.ClassDeclaration, node: TmplAstNode | AST);
|
20 | get(): ts.QuickInfo | undefined;
|
21 | private getQuickInfoForSymbol;
|
22 | private getQuickInfoForBindingSymbol;
|
23 | private getQuickInfoForElementSymbol;
|
24 | private getQuickInfoForVariableSymbol;
|
25 | private getQuickInfoForReferenceSymbol;
|
26 | private getQuickInfoForPipeSymbol;
|
27 | private getQuickInfoForDomBinding;
|
28 | private getQuickInfoForDirectiveSymbol;
|
29 | private getDocumentationFromTypeDefAtLocation;
|
30 | private getQuickInfoAtShimLocation;
|
31 | }
|
32 | /**
|
33 | * Construct a QuickInfo object taking into account its container and type.
|
34 | * @param name Name of the QuickInfo target
|
35 | * @param kind component, directive, pipe, etc.
|
36 | * @param textSpan span of the target
|
37 | * @param containerName either the Symbol's container or the NgModule that contains the directive
|
38 | * @param type user-friendly name of the type
|
39 | * @param documentation docstring or comment
|
40 | */
|
41 | export declare function createQuickInfo(name: string, kind: DisplayInfoKind, textSpan: ts.TextSpan, containerName?: string, type?: string, documentation?: ts.SymbolDisplayPart[]): ts.QuickInfo;
|