1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import { DirectiveInScope, ReferenceSymbol, VariableSymbol } from '@angular/compiler-cli/src/ngtsc/typecheck/api';
|
10 | import * as ts from 'typescript';
|
11 | export declare const ALIAS_NAME: string;
|
12 | export declare const SYMBOL_INTERFACE: string;
|
13 | export declare const SYMBOL_PUNC: string;
|
14 | export declare const SYMBOL_SPACE: string;
|
15 | export declare const SYMBOL_TEXT: string;
|
16 |
|
17 |
|
18 |
|
19 | export declare enum DisplayInfoKind {
|
20 | ATTRIBUTE = "attribute",
|
21 | COMPONENT = "component",
|
22 | DIRECTIVE = "directive",
|
23 | EVENT = "event",
|
24 | REFERENCE = "reference",
|
25 | ELEMENT = "element",
|
26 | VARIABLE = "variable",
|
27 | PIPE = "pipe",
|
28 | PROPERTY = "property",
|
29 | METHOD = "method",
|
30 | TEMPLATE = "template"
|
31 | }
|
32 | export interface DisplayInfo {
|
33 | kind: DisplayInfoKind;
|
34 | displayParts: ts.SymbolDisplayPart[];
|
35 | documentation: ts.SymbolDisplayPart[] | undefined;
|
36 | }
|
37 | export declare function getSymbolDisplayInfo(tsLS: ts.LanguageService, typeChecker: ts.TypeChecker, symbol: ReferenceSymbol | VariableSymbol): DisplayInfo;
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | export declare function createDisplayParts(name: string, kind: DisplayInfoKind, containerName: string | undefined, type: string | undefined): ts.SymbolDisplayPart[];
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | export declare function unsafeCastDisplayInfoKindToScriptElementKind(kind: DisplayInfoKind): ts.ScriptElementKind;
|
57 | export declare function getDirectiveDisplayInfo(tsLS: ts.LanguageService, dir: DirectiveInScope): DisplayInfo;
|
58 | export declare function getTsSymbolDisplayInfo(tsLS: ts.LanguageService, checker: ts.TypeChecker, symbol: ts.Symbol, kind: DisplayInfoKind, ownerName: string | null): DisplayInfo | null;
|