1 | import { DocNodeKind, DocNode, type IDocNodeParameters, type IDocNodeParsedParameters } from './DocNode';
|
2 | import type { TokenSequence } from '../parser/TokenSequence';
|
3 |
|
4 |
|
5 |
|
6 | export interface IDocMemberIdentifierParameters extends IDocNodeParameters {
|
7 | identifier: string;
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 | export interface IDocMemberIdentifierParsedParameters extends IDocNodeParsedParameters {
|
13 | leftQuoteExcerpt?: TokenSequence;
|
14 | identifierExcerpt: TokenSequence;
|
15 | rightQuoteExcerpt?: TokenSequence;
|
16 | }
|
17 |
|
18 |
|
19 |
|
20 | export declare class DocMemberIdentifier extends DocNode {
|
21 | private readonly _leftQuoteExcerpt;
|
22 | private _identifier;
|
23 | private readonly _identifierExcerpt;
|
24 | private readonly _rightQuoteExcerpt;
|
25 | |
26 |
|
27 |
|
28 |
|
29 | constructor(parameters: IDocMemberIdentifierParameters | IDocMemberIdentifierParsedParameters);
|
30 | /**
|
31 | * Tests whether the input string can be used without quotes as a member identifier in a declaration reference.
|
32 | * If not, {@link DocMemberIdentifier.hasQuotes} will be required.
|
33 | *
|
34 | * @remarks
|
35 | * In order to be used without quotes, the string must follow the identifier syntax for ECMAScript / TypeScript,
|
36 | * and it must not be one of the reserved words used for system selectors (such as `instance`, `static`,
|
37 | * `constructor`, etc).
|
38 | */
|
39 | static isValidIdentifier(identifier: string): boolean;
|
40 |
|
41 | get kind(): DocNodeKind | string;
|
42 | |
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | get identifier(): string;
|
50 | |
51 |
|
52 |
|
53 |
|
54 |
|
55 | get hasQuotes(): boolean;
|
56 |
|
57 | protected onGetChildNodes(): ReadonlyArray<DocNode | undefined>;
|
58 | }
|
59 |
|
\ | No newline at end of file |