1 | import * as tsdoc from '@microsoft/tsdoc';
|
2 | import { AstDeclaration } from './AstDeclaration';
|
3 | import { Collector } from '../collector/Collector';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare class ResolverFailure {
|
13 | |
14 |
|
15 |
|
16 | readonly reason: string;
|
17 | constructor(reason: string);
|
18 | }
|
19 | /**
|
20 | * This resolves a TSDoc declaration reference by walking the `AstSymbolTable` compiler state.
|
21 | *
|
22 | * @remarks
|
23 | *
|
24 | * This class is analogous to `ModelReferenceResolver` from the `@microsoft/api-extractor-model` project,
|
25 | * which resolves declaration references by walking the hierarchy loaded from an .api.json file.
|
26 | */
|
27 | export declare class AstReferenceResolver {
|
28 | private readonly _collector;
|
29 | private readonly _astSymbolTable;
|
30 | private readonly _workingPackage;
|
31 | constructor(collector: Collector);
|
32 | resolve(declarationReference: tsdoc.DocDeclarationReference): AstDeclaration | ResolverFailure;
|
33 | private _getMemberReferenceIdentifier;
|
34 | private _selectDeclaration;
|
35 | private _selectUsingSystemSelector;
|
36 | private _selectUsingIndexSelector;
|
37 | /**
|
38 | * This resolves an ambiguous match in the case where the extra matches are all ancillary declarations,
|
39 | * except for one match that is the main declaration.
|
40 | */
|
41 | private _tryDisambiguateAncillaryMatches;
|
42 | }
|
43 | //# sourceMappingURL=AstReferenceResolver.d.ts.map |
\ | No newline at end of file |