1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import { BoundEventAst, CompileTypeMetadata, HtmlAstPath, Node, ParseSourceSpan, TemplateAst, TemplateAstPath } from '@angular/compiler';
|
10 | import { AstResult, DiagnosticTemplateInfo, SelectorInfo, Span, Symbol, SymbolQuery } from './types';
|
11 | interface SpanHolder {
|
12 | sourceSpan: ParseSourceSpan;
|
13 | endSourceSpan?: ParseSourceSpan | null;
|
14 | children?: SpanHolder[];
|
15 | }
|
16 | export declare function spanOf(span: SpanHolder): Span;
|
17 | export declare function spanOf(span: ParseSourceSpan): Span;
|
18 | export declare function spanOf(span: SpanHolder | ParseSourceSpan | undefined): Span | undefined;
|
19 | export declare function inSpan(position: number, span?: Span, exclusive?: boolean): boolean;
|
20 | export declare function offsetSpan(span: Span, amount: number): Span;
|
21 | export declare function isNarrower(spanA: Span, spanB: Span): boolean;
|
22 | export declare function isStructuralDirective(type: CompileTypeMetadata): boolean;
|
23 | export declare function getSelectors(info: AstResult): SelectorInfo;
|
24 | export declare function diagnosticInfoFromTemplateInfo(info: AstResult): DiagnosticTemplateInfo;
|
25 | export declare function findTemplateAstAt(ast: TemplateAst[], position: number): TemplateAstPath;
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare function getPathToNodeAtPosition(nodes: Node[], position: number): HtmlAstPath;
|
33 |
|
34 |
|
35 |
|
36 | export declare function invertMap(obj: {
|
37 | [name: string]: string;
|
38 | }): {
|
39 | [name: string]: string;
|
40 | };
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare function findOutputBinding(binding: BoundEventAst, path: TemplateAstPath, query: SymbolQuery): Symbol | undefined;
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | export declare function extractAbsoluteFilePath(node: ts.StringLiteralLike): string;
|
53 | export {};
|