main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
753 bytes
|
Line | |
---|
1 | type VisitorKeys$1 = {
|
---|
2 | readonly [type: string]: readonly string[];
|
---|
3 | };
|
---|
4 | /**
|
---|
5 | * @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
|
---|
6 | */
|
---|
7 | /**
|
---|
8 | * @type {VisitorKeys}
|
---|
9 | */
|
---|
10 | declare const KEYS: VisitorKeys$1;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Get visitor keys of a given node.
|
---|
14 | * @param {object} node The AST node to get keys.
|
---|
15 | * @returns {readonly string[]} Visitor keys of the node.
|
---|
16 | */
|
---|
17 | declare function getKeys(node: object): readonly string[];
|
---|
18 | /**
|
---|
19 | * Make the union set with `KEYS` and given keys.
|
---|
20 | * @param {VisitorKeys} additionalKeys The additional keys.
|
---|
21 | * @returns {VisitorKeys} The union set.
|
---|
22 | */
|
---|
23 | declare function unionWith(additionalKeys: VisitorKeys): VisitorKeys;
|
---|
24 |
|
---|
25 | type VisitorKeys = VisitorKeys$1;
|
---|
26 |
|
---|
27 | export { KEYS, VisitorKeys, getKeys, unionWith };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.