Update upstream source from tag 'upstream/0.14.0'
Update to upstream version '0.14.0'
with Debian dir 6baa5a5e6220c0319c523c2d7596c34f4743268a
Julien Puydt
3 years ago
0 | # Please see the documentation for all configuration options: | |
1 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | |
2 | ||
3 | version: 2 | |
4 | updates: | |
5 | - package-ecosystem: "npm" | |
6 | directory: "/" | |
7 | schedule: | |
8 | interval: "daily" |
0 | name: CI | |
1 | ||
2 | on: | |
3 | push: | |
4 | branches: [ master ] | |
5 | pull_request: | |
6 | branches: [ master ] | |
7 | ||
8 | jobs: | |
9 | test: | |
10 | name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} | |
11 | runs-on: ${{ matrix.os }} | |
12 | strategy: | |
13 | matrix: | |
14 | node_version: ['10', '12', '14'] | |
15 | os: [ubuntu-latest] | |
16 | ||
17 | steps: | |
18 | - uses: actions/checkout@v2 | |
19 | - name: Use Node.js ${{ matrix.node_version }} | |
20 | uses: actions/setup-node@v1 | |
21 | with: | |
22 | node-version: ${{ matrix.node_version }} | |
23 | ||
24 | - name: npm install, build and test | |
25 | run: | | |
26 | npm install | |
27 | npm run build --if-present | |
28 | npm test |
0 | language: node_js | |
1 | node_js: | |
2 | - "12" | |
3 | - "11" | |
4 | - "10" | |
5 | - "9" | |
6 | - "8" | |
7 | - "7" | |
8 | - "6" | |
9 | ||
10 | sudo: false |
0 | # AST Types [![Build Status](https://travis-ci.org/benjamn/ast-types.svg?branch=master)](https://travis-ci.org/benjamn/ast-types) [![Greenkeeper badge](https://badges.greenkeeper.io/benjamn/ast-types.svg)](https://greenkeeper.io/) | |
0 | # AST Types ![CI](https://github.com/benjamn/ast-types/workflows/CI/badge.svg) | |
1 | 1 | |
2 | 2 | This module provides an efficient, modular, |
3 | 3 | [Esprima](https://github.com/ariya/esprima)-compatible implementation of |
0 | 0 | import { Fork } from "../types"; |
1 | import esProposalsDef from "./es-proposals"; | |
1 | 2 | import typesPlugin from "../lib/types"; |
2 | 3 | import sharedPlugin from "../lib/shared"; |
3 | import es7Def from "./es7"; | |
4 | 4 | import { namedTypes as N } from "../gen/namedTypes"; |
5 | 5 | |
6 | 6 | export default function (fork: Fork) { |
7 | fork.use(es7Def); | |
7 | fork.use(esProposalsDef); | |
8 | 8 | |
9 | 9 | var types = fork.use(typesPlugin); |
10 | 10 | var defaults = fork.use(sharedPlugin).defaults; |
20 | 20 | .build("body") |
21 | 21 | .field("body", [def("Statement")]); |
22 | 22 | |
23 | def("Super") | |
24 | .bases("Expression") | |
25 | .build(); | |
26 | ||
27 | 23 | def("BindExpression") |
28 | 24 | .bases("Expression") |
29 | 25 | .build("object", "callee") |
30 | 26 | .field("object", or(def("Expression"), null)) |
31 | 27 | .field("callee", def("Expression")); |
32 | 28 | |
33 | def("Decorator") | |
34 | .bases("Node") | |
29 | def("ParenthesizedExpression") | |
30 | .bases("Expression") | |
35 | 31 | .build("expression") |
36 | 32 | .field("expression", def("Expression")); |
37 | ||
38 | def("Property") | |
39 | .field("decorators", | |
40 | or([def("Decorator")], null), | |
41 | defaults["null"]); | |
42 | ||
43 | def("MethodDefinition") | |
44 | .field("decorators", | |
45 | or([def("Decorator")], null), | |
46 | defaults["null"]); | |
47 | ||
48 | def("MetaProperty") | |
49 | .bases("Expression") | |
50 | .build("meta", "property") | |
51 | .field("meta", def("Identifier")) | |
52 | .field("property", def("Identifier")); | |
53 | ||
54 | def("ParenthesizedExpression") | |
55 | .bases("Expression") | |
56 | .build("expression") | |
57 | .field("expression", def("Expression")); | |
58 | ||
59 | def("ImportSpecifier") | |
60 | .bases("ModuleSpecifier") | |
61 | .build("imported", "local") | |
62 | .field("imported", def("Identifier")); | |
63 | ||
64 | def("ImportDefaultSpecifier") | |
65 | .bases("ModuleSpecifier") | |
66 | .build("local"); | |
67 | ||
68 | def("ImportNamespaceSpecifier") | |
69 | .bases("ModuleSpecifier") | |
70 | .build("local"); | |
71 | ||
72 | def("ExportDefaultDeclaration") | |
73 | .bases("Declaration") | |
74 | .build("declaration") | |
75 | .field("declaration", or(def("Declaration"), def("Expression"))); | |
76 | ||
77 | def("ExportNamedDeclaration") | |
78 | .bases("Declaration") | |
79 | .build("declaration", "specifiers", "source") | |
80 | .field("declaration", or(def("Declaration"), null)) | |
81 | .field("specifiers", [def("ExportSpecifier")], defaults.emptyArray) | |
82 | .field("source", or(def("Literal"), null), defaults["null"]); | |
83 | ||
84 | def("ExportSpecifier") | |
85 | .bases("ModuleSpecifier") | |
86 | .build("local", "exported") | |
87 | .field("exported", def("Identifier")); | |
88 | 33 | |
89 | 34 | def("ExportNamespaceSpecifier") |
90 | 35 | .bases("Specifier") |
95 | 40 | .bases("Specifier") |
96 | 41 | .build("exported") |
97 | 42 | .field("exported", def("Identifier")); |
98 | ||
99 | def("ExportAllDeclaration") | |
100 | .bases("Declaration") | |
101 | .build("exported", "source") | |
102 | .field("exported", or(def("Identifier"), null)) | |
103 | .field("source", def("Literal")); | |
104 | 43 | |
105 | 44 | def("CommentBlock") |
106 | 45 | .bases("Comment") |
277 | 216 | .field("optional", or(Boolean, null), defaults["null"]); |
278 | 217 | }); |
279 | 218 | |
280 | def("ClassPrivateProperty") | |
281 | .bases("ClassProperty") | |
282 | .build("key", "value") | |
283 | .field("key", def("PrivateName")) | |
284 | .field("value", or(def("Expression"), null), defaults["null"]); | |
285 | ||
286 | def("PrivateName") | |
287 | .bases("Expression", "Pattern") | |
288 | .build("id") | |
289 | .field("id", def("Identifier")); | |
290 | ||
291 | 219 | var ObjectPatternProperty = or( |
292 | 220 | def("Property"), |
293 | 221 | def("PropertyPattern"), |
0 | export const BinaryOperators = [ | |
1 | "==", "!=", "===", "!==", | |
2 | "<", "<=", ">", ">=", | |
3 | "<<", ">>", ">>>", | |
4 | "+", "-", "*", "/", "%", | |
5 | "&", | |
6 | "|", "^", "in", | |
7 | "instanceof", | |
8 | ]; | |
9 | ||
10 | export const AssignmentOperators = [ | |
11 | "=", "+=", "-=", "*=", "/=", "%=", | |
12 | "<<=", ">>=", ">>>=", | |
13 | "|=", "^=", "&=", | |
14 | ]; | |
15 | ||
16 | export const LogicalOperators = [ | |
17 | "||", "&&", | |
18 | ]; |
0 | 0 | import { Fork } from "../types"; |
1 | import { BinaryOperators, AssignmentOperators, LogicalOperators } from "./core-operators"; | |
1 | 2 | import typesPlugin from "../lib/types"; |
2 | 3 | import sharedPlugin from "../lib/shared"; |
3 | 4 | import { namedTypes as N } from "../gen/namedTypes"; |
135 | 136 | def("CatchClause") |
136 | 137 | .bases("Node") |
137 | 138 | .build("param", "guard", "body") |
138 | // https://github.com/tc39/proposal-optional-catch-binding | |
139 | .field("param", or(def("Pattern"), null), defaults["null"]) | |
139 | .field("param", def("Pattern")) | |
140 | 140 | .field("guard", or(def("Expression"), null), defaults["null"]) |
141 | 141 | .field("body", def("BlockStatement")); |
142 | 142 | |
237 | 237 | // always true for unary operators. |
238 | 238 | .field("prefix", Boolean, defaults["true"]); |
239 | 239 | |
240 | var BinaryOperator = or( | |
241 | "==", "!=", "===", "!==", | |
242 | "<", "<=", ">", ">=", | |
243 | "<<", ">>", ">>>", | |
244 | "+", "-", "*", "/", "%", "**", | |
245 | "&", // TODO Missing from the Parser API. | |
246 | "|", "^", "in", | |
247 | "instanceof"); | |
240 | const BinaryOperator = or(...BinaryOperators); | |
248 | 241 | |
249 | 242 | def("BinaryExpression") |
250 | 243 | .bases("Expression") |
253 | 246 | .field("left", def("Expression")) |
254 | 247 | .field("right", def("Expression")); |
255 | 248 | |
256 | var AssignmentOperator = or( | |
257 | "=", "+=", "-=", "*=", "/=", "%=", | |
258 | "<<=", ">>=", ">>>=", | |
259 | "|=", "^=", "&="); | |
249 | const AssignmentOperator = or(...AssignmentOperators); | |
260 | 250 | |
261 | 251 | def("AssignmentExpression") |
262 | 252 | .bases("Expression") |
274 | 264 | .field("argument", def("Expression")) |
275 | 265 | .field("prefix", Boolean); |
276 | 266 | |
277 | var LogicalOperator = or("||", "&&"); | |
267 | var LogicalOperator = or(...LogicalOperators); | |
278 | 268 | |
279 | 269 | def("LogicalExpression") |
280 | 270 | .bases("Expression") |
0 | 0 | import { Fork } from "../types"; |
1 | 1 | import typesPlugin from "../lib/types"; |
2 | 2 | import sharedPlugin from "../lib/shared"; |
3 | import coreDef from "./core"; | |
3 | import es2020Def from "./es2020"; | |
4 | 4 | |
5 | 5 | export default function (fork: Fork) { |
6 | fork.use(coreDef); | |
6 | fork.use(es2020Def); | |
7 | 7 | |
8 | var types = fork.use(typesPlugin); | |
9 | var Type = types.Type; | |
10 | var def = types.Type.def; | |
11 | var or = Type.or; | |
8 | const types = fork.use(typesPlugin); | |
9 | const Type = types.Type; | |
10 | const def = types.Type.def; | |
11 | const or = Type.or; | |
12 | 12 | |
13 | var shared = fork.use(sharedPlugin); | |
14 | var defaults = shared.defaults; | |
13 | const shared = fork.use(sharedPlugin); | |
14 | const defaults = shared.defaults; | |
15 | 15 | |
16 | def("AwaitExpression") | |
17 | .build("argument", "all") | |
18 | .field("argument", or(def("Expression"), null)) | |
19 | .field("all", Boolean, defaults["false"]); | |
16 | 20 | |
17 | // https://github.com/tc39/proposal-optional-chaining | |
18 | // `a?.b` as per https://github.com/estree/estree/issues/146 | |
19 | def("OptionalMemberExpression") | |
20 | .bases("MemberExpression") | |
21 | .build("object", "property", "computed", "optional") | |
22 | .field("optional", Boolean, defaults["true"]) | |
21 | // Decorators | |
22 | def("Decorator") | |
23 | .bases("Node") | |
24 | .build("expression") | |
25 | .field("expression", def("Expression")); | |
23 | 26 | |
24 | // a?.b() | |
25 | def("OptionalCallExpression") | |
26 | .bases("CallExpression") | |
27 | .build("callee", "arguments", "optional") | |
28 | .field("optional", Boolean, defaults["true"]) | |
27 | def("Property") | |
28 | .field("decorators", | |
29 | or([def("Decorator")], null), | |
30 | defaults["null"]); | |
29 | 31 | |
32 | def("MethodDefinition") | |
33 | .field("decorators", | |
34 | or([def("Decorator")], null), | |
35 | defaults["null"]); | |
30 | 36 | |
31 | // https://github.com/tc39/proposal-nullish-coalescing | |
32 | // `a ?? b` as per https://github.com/babel/babylon/pull/761/files | |
33 | var LogicalOperator = or("||", "&&", "??"); | |
37 | // Private names | |
38 | def("PrivateName") | |
39 | .bases("Expression", "Pattern") | |
40 | .build("id") | |
41 | .field("id", def("Identifier")); | |
34 | 42 | |
35 | def("LogicalExpression") | |
36 | .field("operator", LogicalOperator) | |
43 | def("ClassPrivateProperty") | |
44 | .bases("ClassProperty") | |
45 | .build("key", "value") | |
46 | .field("key", def("PrivateName")) | |
47 | .field("value", or(def("Expression"), null), defaults["null"]); | |
37 | 48 | }; |
0 | import { Fork } from "../types"; | |
1 | import { BinaryOperators, AssignmentOperators } from "./core-operators"; | |
2 | import es6Def from "./es6"; | |
3 | import typesPlugin from "../lib/types"; | |
4 | ||
5 | export default function (fork: Fork) { | |
6 | fork.use(es6Def); | |
7 | ||
8 | const types = fork.use(typesPlugin); | |
9 | const def = types.Type.def; | |
10 | const or = types.Type.or; | |
11 | ||
12 | const BinaryOperator = or( | |
13 | ...BinaryOperators, | |
14 | "**", | |
15 | ); | |
16 | ||
17 | def("BinaryExpression") | |
18 | .field("operator", BinaryOperator) | |
19 | ||
20 | const AssignmentOperator = or( | |
21 | ...AssignmentOperators, | |
22 | "**=", | |
23 | ); | |
24 | ||
25 | def("AssignmentExpression") | |
26 | .field("operator", AssignmentOperator) | |
27 | }; |
0 | import { Fork } from "../types"; | |
1 | import es2016Def from "./es2016"; | |
2 | import typesPlugin from "../lib/types"; | |
3 | import sharedPlugin from "../lib/shared"; | |
4 | ||
5 | export default function (fork: Fork) { | |
6 | fork.use(es2016Def); | |
7 | ||
8 | const types = fork.use(typesPlugin); | |
9 | const def = types.Type.def; | |
10 | const defaults = fork.use(sharedPlugin).defaults; | |
11 | ||
12 | def("Function") | |
13 | .field("async", Boolean, defaults["false"]); | |
14 | ||
15 | def("AwaitExpression") | |
16 | .bases("Expression") | |
17 | .build("argument") | |
18 | .field("argument", def("Expression")); | |
19 | }; |
0 | import { Fork } from "../types"; | |
1 | import es2017Def from "./es2017"; | |
2 | import typesPlugin from "../lib/types"; | |
3 | import sharedPlugin from "../lib/shared"; | |
4 | ||
5 | export default function (fork: Fork) { | |
6 | fork.use(es2017Def); | |
7 | ||
8 | const types = fork.use(typesPlugin); | |
9 | const def = types.Type.def; | |
10 | const or = types.Type.or; | |
11 | const defaults = fork.use(sharedPlugin).defaults; | |
12 | ||
13 | def("ForOfStatement") | |
14 | .field("await", Boolean, defaults["false"]); | |
15 | ||
16 | // Legacy | |
17 | def("SpreadProperty") | |
18 | .bases("Node") | |
19 | .build("argument") | |
20 | .field("argument", def("Expression")); | |
21 | ||
22 | def("ObjectExpression") | |
23 | .field("properties", [or( | |
24 | def("Property"), | |
25 | def("SpreadProperty"), // Legacy | |
26 | def("SpreadElement") | |
27 | )]); | |
28 | ||
29 | def("TemplateElement") | |
30 | .field("value", {"cooked": or(String, null), "raw": String}); | |
31 | ||
32 | // Legacy | |
33 | def("SpreadPropertyPattern") | |
34 | .bases("Pattern") | |
35 | .build("argument") | |
36 | .field("argument", def("Pattern")); | |
37 | ||
38 | def("ObjectPattern") | |
39 | .field("properties", [or(def("PropertyPattern"), def("Property"), def("RestElement"), def("SpreadPropertyPattern"))]); | |
40 | }; |
0 | import { Fork } from "../types"; | |
1 | import es2018Def from "./es2018"; | |
2 | import typesPlugin from "../lib/types"; | |
3 | import sharedPlugin from "../lib/shared"; | |
4 | ||
5 | export default function (fork: Fork) { | |
6 | fork.use(es2018Def); | |
7 | ||
8 | const types = fork.use(typesPlugin); | |
9 | const def = types.Type.def; | |
10 | const or = types.Type.or; | |
11 | const defaults = fork.use(sharedPlugin).defaults; | |
12 | ||
13 | def("CatchClause") | |
14 | .field("param", or(def("Pattern"), null), defaults["null"]); | |
15 | }; |
0 | 0 | import { Fork } from "../types"; |
1 | import es7Def from "./es7"; | |
1 | import { LogicalOperators } from "./core-operators"; | |
2 | import es2019Def from "./es2019"; | |
2 | 3 | import typesPlugin from "../lib/types"; |
4 | import sharedPlugin from "../lib/shared"; | |
3 | 5 | |
4 | 6 | export default function (fork: Fork) { |
5 | fork.use(es7Def); | |
7 | fork.use(es2019Def); | |
6 | 8 | |
7 | 9 | const types = fork.use(typesPlugin); |
8 | 10 | const def = types.Type.def; |
11 | const or = types.Type.or; | |
12 | ||
13 | const shared = fork.use(sharedPlugin); | |
14 | const defaults = shared.defaults; | |
9 | 15 | |
10 | 16 | def("ImportExpression") |
11 | 17 | .bases("Expression") |
12 | 18 | .build("source") |
13 | 19 | .field("source", def("Expression")); |
20 | ||
21 | def("ExportAllDeclaration") | |
22 | .build("source", "exported") | |
23 | .field("source", def("Literal")) | |
24 | .field("exported", or(def("Identifier"), null)); | |
25 | ||
26 | // Optional chaining | |
27 | def("OptionalMemberExpression") | |
28 | .bases("MemberExpression") | |
29 | .build("object", "property", "computed", "optional") | |
30 | .field("optional", Boolean, defaults["true"]) | |
31 | ||
32 | def("OptionalCallExpression") | |
33 | .bases("CallExpression") | |
34 | .build("callee", "arguments", "optional") | |
35 | .field("optional", Boolean, defaults["true"]) | |
36 | ||
37 | // Nullish coalescing | |
38 | const LogicalOperator = or(...LogicalOperators, "??"); | |
39 | ||
40 | def("LogicalExpression") | |
41 | .field("operator", LogicalOperator) | |
14 | 42 | }; |
5 | 5 | export default function (fork: Fork) { |
6 | 6 | fork.use(coreDef); |
7 | 7 | |
8 | var types = fork.use(typesPlugin); | |
9 | var def = types.Type.def; | |
10 | var or = types.Type.or; | |
11 | var defaults = fork.use(sharedPlugin).defaults; | |
8 | const types = fork.use(typesPlugin); | |
9 | const def = types.Type.def; | |
10 | const or = types.Type.or; | |
11 | const defaults = fork.use(sharedPlugin).defaults; | |
12 | 12 | |
13 | 13 | def("Function") |
14 | 14 | .field("generator", Boolean, defaults["false"]) |
15 | 15 | .field("expression", Boolean, defaults["false"]) |
16 | 16 | .field("defaults", [or(def("Expression"), null)], defaults.emptyArray) |
17 | // TODO This could be represented as a RestElement in .params. | |
17 | // Legacy | |
18 | 18 | .field("rest", or(def("Identifier"), null), defaults["null"]); |
19 | 19 | |
20 | 20 | // The ESTree way of representing a ...rest parameter. |
31 | 31 | .field("argument", def("Pattern")); |
32 | 32 | |
33 | 33 | def("FunctionDeclaration") |
34 | .build("id", "params", "body", "generator", "expression"); | |
34 | .build("id", "params", "body", "generator", "expression") | |
35 | // May be `null` in the context of `export default function () {}` | |
36 | .field("id", or(def("Identifier"), null)) | |
35 | 37 | |
36 | 38 | def("FunctionExpression") |
37 | 39 | .build("id", "params", "body", "generator", "expression"); |
38 | 40 | |
39 | // The Parser API calls this ArrowExpression, but Esprima and all other | |
40 | // actual parsers use ArrowFunctionExpression. | |
41 | 41 | def("ArrowFunctionExpression") |
42 | 42 | .bases("Function", "Expression") |
43 | 43 | .build("params", "body", "expression") |
113 | 113 | .build("elements") |
114 | 114 | .field("elements", [or(def("Pattern"), null)]); |
115 | 115 | |
116 | def("MethodDefinition") | |
117 | .bases("Declaration") | |
118 | .build("kind", "key", "value", "static") | |
119 | .field("kind", or("constructor", "method", "get", "set")) | |
120 | .field("key", def("Expression")) | |
121 | .field("value", def("Function")) | |
122 | .field("computed", Boolean, defaults["false"]) | |
123 | .field("static", Boolean, defaults["false"]); | |
124 | ||
125 | 116 | def("SpreadElement") |
126 | 117 | .bases("Node") |
127 | 118 | .build("argument") |
153 | 144 | .field("left", def("Pattern")) |
154 | 145 | .field("right", def("Expression")); |
155 | 146 | |
156 | var ClassBodyElement = or( | |
147 | def("MethodDefinition") | |
148 | .bases("Declaration") | |
149 | .build("kind", "key", "value", "static") | |
150 | .field("kind", or("constructor", "method", "get", "set")) | |
151 | .field("key", def("Expression")) | |
152 | .field("value", def("Function")) | |
153 | .field("computed", Boolean, defaults["false"]) | |
154 | .field("static", Boolean, defaults["false"]); | |
155 | ||
156 | const ClassBodyElement = or( | |
157 | 157 | def("MethodDefinition"), |
158 | 158 | def("VariableDeclarator"), |
159 | 159 | def("ClassPropertyDefinition"), |
190 | 190 | .field("id", or(def("Identifier"), null), defaults["null"]) |
191 | 191 | .field("body", def("ClassBody")) |
192 | 192 | .field("superClass", or(def("Expression"), null), defaults["null"]); |
193 | ||
194 | def("Super") | |
195 | .bases("Expression") | |
196 | .build(); | |
193 | 197 | |
194 | 198 | // Specifier and ModuleSpecifier are abstract non-standard types |
195 | 199 | // introduced for definitional convenience. |
211 | 215 | .field("id", or(def("Identifier"), null), defaults["null"]) |
212 | 216 | .field("name", or(def("Identifier"), null), defaults["null"]); |
213 | 217 | |
214 | // Like ModuleSpecifier, except type:"ImportSpecifier" and buildable. | |
215 | 218 | // import {<id [as name]>} from ...; |
216 | 219 | def("ImportSpecifier") |
217 | 220 | .bases("ModuleSpecifier") |
218 | .build("id", "name"); | |
221 | .build("imported", "local") | |
222 | .field("imported", def("Identifier")); | |
223 | ||
224 | // import <id> from ...; | |
225 | def("ImportDefaultSpecifier") | |
226 | .bases("ModuleSpecifier") | |
227 | .build("local"); | |
219 | 228 | |
220 | 229 | // import <* as id> from ...; |
221 | 230 | def("ImportNamespaceSpecifier") |
222 | 231 | .bases("ModuleSpecifier") |
223 | .build("id"); | |
224 | ||
225 | // import <id> from ...; | |
226 | def("ImportDefaultSpecifier") | |
227 | .bases("ModuleSpecifier") | |
228 | .build("id"); | |
232 | .build("local"); | |
229 | 233 | |
230 | 234 | def("ImportDeclaration") |
231 | 235 | .bases("Declaration") |
243 | 247 | return "value"; |
244 | 248 | }); |
245 | 249 | |
250 | def("ExportNamedDeclaration") | |
251 | .bases("Declaration") | |
252 | .build("declaration", "specifiers", "source") | |
253 | .field("declaration", or(def("Declaration"), null)) | |
254 | .field("specifiers", [def("ExportSpecifier")], defaults.emptyArray) | |
255 | .field("source", or(def("Literal"), null), defaults["null"]); | |
256 | ||
257 | def("ExportSpecifier") | |
258 | .bases("ModuleSpecifier") | |
259 | .build("local", "exported") | |
260 | .field("exported", def("Identifier")); | |
261 | ||
262 | def("ExportDefaultDeclaration") | |
263 | .bases("Declaration") | |
264 | .build("declaration") | |
265 | .field("declaration", or(def("Declaration"), def("Expression"))); | |
266 | ||
267 | def("ExportAllDeclaration") | |
268 | .bases("Declaration") | |
269 | .build("source") | |
270 | .field("source", def("Literal")); | |
271 | ||
246 | 272 | def("TaggedTemplateExpression") |
247 | 273 | .bases("Expression") |
248 | 274 | .build("tag", "quasi") |
260 | 286 | .build("value", "tail") |
261 | 287 | .field("value", {"cooked": String, "raw": String}) |
262 | 288 | .field("tail", Boolean); |
289 | ||
290 | def("MetaProperty") | |
291 | .bases("Expression") | |
292 | .build("meta", "property") | |
293 | .field("meta", def("Identifier")) | |
294 | .field("property", def("Identifier")); | |
263 | 295 | }; |
0 | import { Fork } from "../types"; | |
1 | import es6Def from "./es6"; | |
2 | import typesPlugin from "../lib/types"; | |
3 | import sharedPlugin from "../lib/shared"; | |
4 | ||
5 | export default function (fork: Fork) { | |
6 | fork.use(es6Def); | |
7 | ||
8 | var types = fork.use(typesPlugin); | |
9 | var def = types.Type.def; | |
10 | var or = types.Type.or; | |
11 | var defaults = fork.use(sharedPlugin).defaults; | |
12 | ||
13 | def("Function") | |
14 | .field("async", Boolean, defaults["false"]); | |
15 | ||
16 | def("SpreadProperty") | |
17 | .bases("Node") | |
18 | .build("argument") | |
19 | .field("argument", def("Expression")); | |
20 | ||
21 | def("ObjectExpression") | |
22 | .field("properties", [or( | |
23 | def("Property"), | |
24 | def("SpreadProperty"), | |
25 | def("SpreadElement") | |
26 | )]); | |
27 | ||
28 | def("SpreadPropertyPattern") | |
29 | .bases("Pattern") | |
30 | .build("argument") | |
31 | .field("argument", def("Pattern")); | |
32 | ||
33 | def("ObjectPattern") | |
34 | .field("properties", [or( | |
35 | def("Property"), | |
36 | def("PropertyPattern"), | |
37 | def("SpreadPropertyPattern") | |
38 | )]); | |
39 | ||
40 | def("AwaitExpression") | |
41 | .bases("Expression") | |
42 | .build("argument", "all") | |
43 | .field("argument", or(def("Expression"), null)) | |
44 | .field("all", Boolean, defaults["false"]); | |
45 | }; |
0 | 0 | import { Fork } from "../types"; |
1 | import es7Def from "./es7"; | |
1 | import es2020Def from "./es2020"; | |
2 | 2 | import typesPlugin from "../lib/types"; |
3 | 3 | import sharedPlugin from "../lib/shared"; |
4 | 4 | |
5 | 5 | export default function (fork: Fork) { |
6 | fork.use(es7Def); | |
6 | fork.use(es2020Def); | |
7 | 7 | |
8 | 8 | var types = fork.use(typesPlugin); |
9 | 9 | var defaults = fork.use(sharedPlugin).defaults; |
0 | 0 | import { Fork } from "../types"; |
1 | import es7Def from "./es7"; | |
1 | import esProposalsDef from "./es-proposals"; | |
2 | 2 | import typeAnnotationsDef from "./type-annotations"; |
3 | 3 | import typesPlugin from "../lib/types"; |
4 | 4 | import sharedPlugin from "../lib/shared"; |
5 | 5 | |
6 | 6 | export default function (fork: Fork) { |
7 | fork.use(es7Def); | |
7 | fork.use(esProposalsDef); | |
8 | 8 | fork.use(typeAnnotationsDef); |
9 | 9 | |
10 | var types = fork.use(typesPlugin); | |
11 | var def = types.Type.def; | |
12 | var or = types.Type.or; | |
13 | var defaults = fork.use(sharedPlugin).defaults; | |
10 | const types = fork.use(typesPlugin); | |
11 | const def = types.Type.def; | |
12 | const or = types.Type.or; | |
13 | const defaults = fork.use(sharedPlugin).defaults; | |
14 | 14 | |
15 | 15 | // Base types |
16 | 16 | |
35 | 35 | .bases("FlowType") |
36 | 36 | .build(); |
37 | 37 | |
38 | def("SymbolTypeAnnotation") | |
39 | .bases("FlowType") | |
40 | .build(); | |
41 | ||
38 | 42 | def("NumberTypeAnnotation") |
43 | .bases("FlowType") | |
44 | .build(); | |
45 | ||
46 | def("BigIntTypeAnnotation") | |
39 | 47 | .bases("FlowType") |
40 | 48 | .build(); |
41 | 49 | |
51 | 59 | .bases("FlowType") |
52 | 60 | .build("value", "raw") |
53 | 61 | .field("value", Number) |
62 | .field("raw", String); | |
63 | ||
64 | def("BigIntLiteralTypeAnnotation") | |
65 | .bases("FlowType") | |
66 | .build("value", "raw") | |
67 | .field("value", null) | |
54 | 68 | .field("raw", String); |
55 | 69 | |
56 | 70 | def("StringTypeAnnotation") |
114 | 128 | def("FunctionTypeParam") |
115 | 129 | .bases("Node") |
116 | 130 | .build("name", "typeAnnotation", "optional") |
117 | .field("name", def("Identifier")) | |
131 | .field("name", or(def("Identifier"), null)) | |
118 | 132 | .field("typeAnnotation", def("FlowType")) |
119 | 133 | .field("optional", Boolean); |
120 | 134 | |
138 | 152 | .field("exact", Boolean, defaults["false"]) |
139 | 153 | .field("internalSlots", [def("ObjectTypeInternalSlot")], defaults.emptyArray); |
140 | 154 | |
155 | def("ObjectTypeIndexer") | |
156 | .field("id", or(def("Identifier"), null)) | |
157 | .field("static", Boolean); | |
158 | ||
141 | 159 | def("Variance") |
142 | 160 | .bases("Node") |
143 | 161 | .build("kind") |
144 | 162 | .field("kind", or("plus", "minus")); |
145 | 163 | |
146 | var LegacyVariance = or( | |
164 | const LegacyVariance = or( | |
147 | 165 | def("Variance"), |
148 | 166 | "plus", |
149 | 167 | "minus", |
235 | 253 | |
236 | 254 | def("TypeParameter") |
237 | 255 | .bases("FlowType") |
238 | .build("name", "variance", "bound") | |
256 | .build("name", "variance", "bound", "default") | |
239 | 257 | .field("name", String) |
240 | 258 | .field("variance", LegacyVariance, defaults["null"]) |
241 | .field("bound", | |
242 | or(def("TypeAnnotation"), null), | |
243 | defaults["null"]); | |
259 | .field("bound", or(def("TypeAnnotation"), null), defaults["null"]) | |
260 | .field("default", or(def("FlowType"), null), defaults["null"]); | |
244 | 261 | |
245 | 262 | def("ClassProperty") |
246 | 263 | .field("variance", LegacyVariance, defaults["null"]); |
289 | 306 | .field("typeParameters", or(def("TypeParameterDeclaration"), null)) |
290 | 307 | .field("right", def("FlowType")); |
291 | 308 | |
292 | def("OpaqueType") | |
293 | .bases("Declaration") | |
294 | .build("id", "typeParameters", "impltype", "supertype") | |
295 | .field("id", def("Identifier")) | |
296 | .field("typeParameters", or(def("TypeParameterDeclaration"), null)) | |
297 | .field("impltype", def("FlowType")) | |
298 | .field("supertype", def("FlowType")); | |
299 | ||
300 | 309 | def("DeclareTypeAlias") |
301 | 310 | .bases("TypeAlias") |
302 | 311 | .build("id", "typeParameters", "right"); |
303 | 312 | |
313 | def("OpaqueType") | |
314 | .bases("Declaration") | |
315 | .build("id", "typeParameters", "impltype", "supertype") | |
316 | .field("id", def("Identifier")) | |
317 | .field("typeParameters", or(def("TypeParameterDeclaration"), null)) | |
318 | .field("impltype", def("FlowType")) | |
319 | .field("supertype", or(def("FlowType"), null)); | |
320 | ||
304 | 321 | def("DeclareOpaqueType") |
305 | .bases("TypeAlias") | |
306 | .build("id", "typeParameters", "supertype"); | |
322 | .bases("OpaqueType") | |
323 | .build("id", "typeParameters", "supertype") | |
324 | .field("impltype", or(def("FlowType"), null)); | |
307 | 325 | |
308 | 326 | def("TypeCastExpression") |
309 | 327 | .bases("Expression") |
324 | 342 | def("DeclareFunction") |
325 | 343 | .bases("Statement") |
326 | 344 | .build("id") |
327 | .field("id", def("Identifier")); | |
345 | .field("id", def("Identifier")) | |
346 | .field("predicate", or(def("FlowPredicate"), null), defaults["null"]); | |
328 | 347 | |
329 | 348 | def("DeclareClass") |
330 | 349 | .bases("InterfaceDeclaration") |
350 | 369 | def("DeclareFunction"), |
351 | 370 | def("DeclareClass"), |
352 | 371 | def("FlowType"), // Implies default. |
372 | def("TypeAlias"), // Implies named type | |
373 | def("DeclareOpaqueType"), // Implies named opaque type | |
374 | def("InterfaceDeclaration"), | |
353 | 375 | null |
354 | 376 | )) |
355 | 377 | .field("specifiers", [or( |
369 | 391 | null |
370 | 392 | ), defaults["null"]); |
371 | 393 | |
394 | def("ImportDeclaration") | |
395 | .field("importKind", or("value", "type", "typeof"), () => "value"); | |
396 | ||
372 | 397 | def("FlowPredicate").bases("Flow"); |
373 | 398 | |
374 | 399 | def("InferredPredicate") |
379 | 404 | .bases("FlowPredicate") |
380 | 405 | .build("value") |
381 | 406 | .field("value", def("Expression")); |
407 | ||
408 | def("Function") | |
409 | .field("predicate", or(def("FlowPredicate"), null), defaults["null"]); | |
382 | 410 | |
383 | 411 | def("CallExpression") |
384 | 412 | .field("typeArguments", or( |
391 | 419 | null, |
392 | 420 | def("TypeParameterInstantiation"), |
393 | 421 | ), defaults["null"]); |
422 | ||
423 | // Enums | |
424 | def("EnumDeclaration") | |
425 | .bases("Declaration") | |
426 | .build("id", "body") | |
427 | .field("id", def("Identifier")) | |
428 | .field("body", or( | |
429 | def("EnumBooleanBody"), | |
430 | def("EnumNumberBody"), | |
431 | def("EnumStringBody"), | |
432 | def("EnumSymbolBody"))); | |
433 | ||
434 | def("EnumBooleanBody") | |
435 | .build("members", "explicitType") | |
436 | .field("members", [def("EnumBooleanMember")]) | |
437 | .field("explicitType", Boolean); | |
438 | ||
439 | def("EnumNumberBody") | |
440 | .build("members", "explicitType") | |
441 | .field("members", [def("EnumNumberMember")]) | |
442 | .field("explicitType", Boolean); | |
443 | ||
444 | def("EnumStringBody") | |
445 | .build("members", "explicitType") | |
446 | .field("members", or([def("EnumStringMember")], [def("EnumDefaultedMember")])) | |
447 | .field("explicitType", Boolean); | |
448 | ||
449 | def("EnumSymbolBody") | |
450 | .build("members") | |
451 | .field("members", [def("EnumDefaultedMember")]); | |
452 | ||
453 | def("EnumBooleanMember") | |
454 | .build("id", "init") | |
455 | .field("id", def("Identifier")) | |
456 | .field("init", or(def("Literal"), Boolean)); | |
457 | ||
458 | def("EnumNumberMember") | |
459 | .build("id", "init") | |
460 | .field("id", def("Identifier")) | |
461 | .field("init", def("Literal")); | |
462 | ||
463 | def("EnumStringMember") | |
464 | .build("id", "init") | |
465 | .field("id", def("Identifier")) | |
466 | .field("init", def("Literal")); | |
467 | ||
468 | def("EnumDefaultedMember") | |
469 | .build("id") | |
470 | .field("id", def("Identifier")); | |
394 | 471 | }; |
0 | 0 | import { Fork } from "../types"; |
1 | import es7Def from "./es7"; | |
1 | import es2020Def from "./es2020"; | |
2 | 2 | import typesPlugin from "../lib/types"; |
3 | 3 | import sharedPlugin from "../lib/shared"; |
4 | 4 | import { namedTypes as N } from "../gen/namedTypes"; |
5 | 5 | |
6 | 6 | export default function (fork: Fork) { |
7 | fork.use(es7Def); | |
7 | fork.use(es2020Def); | |
8 | 8 | |
9 | var types = fork.use(typesPlugin); | |
10 | var def = types.Type.def; | |
11 | var or = types.Type.or; | |
12 | var defaults = fork.use(sharedPlugin).defaults; | |
9 | const types = fork.use(typesPlugin); | |
10 | const def = types.Type.def; | |
11 | const or = types.Type.or; | |
12 | const defaults = fork.use(sharedPlugin).defaults; | |
13 | 13 | |
14 | 14 | def("JSXAttribute") |
15 | 15 | .bases("Node") |
18 | 18 | .field("value", or( |
19 | 19 | def("Literal"), // attr="value" |
20 | 20 | def("JSXExpressionContainer"), // attr={value} |
21 | def("JSXElement"), // attr=<div /> | |
22 | def("JSXFragment"), // attr=<></> | |
21 | 23 | null // attr= or just attr |
22 | 24 | ), defaults["null"]); |
23 | 25 | |
39 | 41 | .field("property", def("JSXIdentifier")) |
40 | 42 | .field("computed", Boolean, defaults.false); |
41 | 43 | |
42 | var JSXElementName = or( | |
44 | const JSXElementName = or( | |
43 | 45 | def("JSXIdentifier"), |
44 | 46 | def("JSXNamespacedName"), |
45 | 47 | def("JSXMemberExpression") |
50 | 52 | .build("argument") |
51 | 53 | .field("argument", def("Expression")); |
52 | 54 | |
53 | var JSXAttributes = [or( | |
55 | const JSXAttributes = [or( | |
54 | 56 | def("JSXAttribute"), |
55 | 57 | def("JSXSpreadAttribute") |
56 | 58 | )]; |
58 | 60 | def("JSXExpressionContainer") |
59 | 61 | .bases("Expression") |
60 | 62 | .build("expression") |
61 | .field("expression", def("Expression")); | |
63 | .field("expression", or(def("Expression"), def("JSXEmptyExpression"))); | |
64 | ||
65 | const JSXChildren = [or( | |
66 | def("JSXText"), | |
67 | def("JSXExpressionContainer"), | |
68 | def("JSXSpreadChild"), | |
69 | def("JSXElement"), | |
70 | def("JSXFragment"), | |
71 | def("Literal") // Legacy: Esprima should return JSXText instead. | |
72 | )]; | |
62 | 73 | |
63 | 74 | def("JSXElement") |
64 | 75 | .bases("Expression") |
65 | 76 | .build("openingElement", "closingElement", "children") |
66 | 77 | .field("openingElement", def("JSXOpeningElement")) |
67 | 78 | .field("closingElement", or(def("JSXClosingElement"), null), defaults["null"]) |
68 | .field("children", [or( | |
69 | def("JSXElement"), | |
70 | def("JSXExpressionContainer"), | |
71 | def("JSXFragment"), | |
72 | def("JSXText"), | |
73 | def("Literal") // TODO Esprima should return JSXText instead. | |
74 | )], defaults.emptyArray) | |
79 | .field("children", JSXChildren, defaults.emptyArray) | |
75 | 80 | .field("name", JSXElementName, function (this: N.JSXElement) { |
76 | 81 | // Little-known fact: the `this` object inside a default function |
77 | 82 | // is none other than the partially-built object itself, and any |
88 | 93 | }, true); // hidden from traversal |
89 | 94 | |
90 | 95 | def("JSXOpeningElement") |
91 | .bases("Node") // TODO Does this make sense? Can't really be an JSXElement. | |
96 | .bases("Node") | |
92 | 97 | .build("name", "attributes", "selfClosing") |
93 | 98 | .field("name", JSXElementName) |
94 | 99 | .field("attributes", JSXAttributes, defaults.emptyArray) |
95 | 100 | .field("selfClosing", Boolean, defaults["false"]); |
96 | 101 | |
97 | 102 | def("JSXClosingElement") |
98 | .bases("Node") // TODO Same concern. | |
103 | .bases("Node") | |
99 | 104 | .build("name") |
100 | 105 | .field("name", JSXElementName); |
101 | 106 | |
102 | 107 | def("JSXFragment") |
103 | 108 | .bases("Expression") |
104 | .build("openingElement", "closingElement", "children") | |
105 | .field("openingElement", def("JSXOpeningFragment")) | |
106 | .field("closingElement", def("JSXClosingFragment")) | |
107 | .field("children", [or( | |
108 | def("JSXElement"), | |
109 | def("JSXExpressionContainer"), | |
110 | def("JSXFragment"), | |
111 | def("JSXText"), | |
112 | def("Literal") // TODO Esprima should return JSXText instead. | |
113 | )], defaults.emptyArray) | |
109 | .build("openingFragment", "closingFragment", "children") | |
110 | .field("openingFragment", def("JSXOpeningFragment")) | |
111 | .field("closingFragment", def("JSXClosingFragment")) | |
112 | .field("children", JSXChildren, defaults.emptyArray); | |
114 | 113 | |
115 | 114 | def("JSXOpeningFragment") |
116 | .bases("Node") // TODO Same concern. | |
115 | .bases("Node") | |
117 | 116 | .build(); |
118 | 117 | |
119 | 118 | def("JSXClosingFragment") |
120 | .bases("Node") // TODO Same concern. | |
119 | .bases("Node") | |
121 | 120 | .build(); |
122 | 121 | |
123 | 122 | def("JSXText") |
124 | 123 | .bases("Literal") |
125 | .build("value") | |
126 | .field("value", String); | |
124 | .build("value", "raw") | |
125 | .field("value", String) | |
126 | .field("raw", String, function (this: N.JSXText) { | |
127 | return this.value; | |
128 | }); | |
127 | 129 | |
128 | def("JSXEmptyExpression").bases("Expression").build(); | |
130 | def("JSXEmptyExpression") | |
131 | .bases("Node") | |
132 | .build(); | |
129 | 133 | |
130 | // This PR has caused many people issues, but supporting it seems like a | |
131 | // good idea anyway: https://github.com/babel/babel/pull/4988 | |
132 | 134 | def("JSXSpreadChild") |
133 | .bases("Expression") | |
135 | .bases("Node") | |
134 | 136 | .build("expression") |
135 | 137 | .field("expression", def("Expression")); |
136 | 138 | }; |
227 | 227 | def("TSTupleType") |
228 | 228 | .bases("TSType") |
229 | 229 | .build("elementTypes") |
230 | .field("elementTypes", [def("TSType")]); | |
230 | .field("elementTypes", [or( | |
231 | def("TSType"), | |
232 | def("TSNamedTupleMember") | |
233 | )]); | |
234 | ||
235 | def("TSNamedTupleMember") | |
236 | .bases("TSType") | |
237 | .build("label", "elementType", "optional") | |
238 | .field("label", def("Identifier")) | |
239 | .field("optional", Boolean, defaults["false"]) | |
240 | .field("elementType", def("TSType")); | |
231 | 241 | |
232 | 242 | def("TSRestType") |
233 | 243 | .bases("TSType") |
286 | 296 | .field("parameters", ParametersType); |
287 | 297 | |
288 | 298 | def("TSTypePredicate") |
289 | .bases("TSTypeAnnotation") | |
290 | .build("parameterName", "typeAnnotation") | |
299 | .bases("TSTypeAnnotation", "TSType") | |
300 | .build("parameterName", "typeAnnotation", "asserts") | |
291 | 301 | .field("parameterName", |
292 | 302 | or(def("Identifier"), |
293 | 303 | def("TSThisType"))) |
294 | .field("typeAnnotation", def("TSTypeAnnotation")); | |
304 | .field("typeAnnotation", or(def("TSTypeAnnotation"), null), | |
305 | defaults["null"]) | |
306 | .field("asserts", Boolean, defaults["false"]); | |
295 | 307 | |
296 | 308 | ["TSCallSignatureDeclaration", |
297 | 309 | "TSConstructSignatureDeclaration", |
309 | 309 | |
310 | 310 | export interface FunctionDeclarationBuilder { |
311 | 311 | ( |
312 | id: K.IdentifierKind, | |
312 | id: K.IdentifierKind | null, | |
313 | 313 | params: K.PatternKind[], |
314 | 314 | body: K.BlockStatementKind, |
315 | 315 | generator?: boolean, |
323 | 323 | defaults?: (K.ExpressionKind | null)[], |
324 | 324 | expression?: boolean, |
325 | 325 | generator?: boolean, |
326 | id: K.IdentifierKind, | |
326 | id: K.IdentifierKind | null, | |
327 | 327 | loc?: K.SourceLocationKind | null, |
328 | 328 | params: K.PatternKind[], |
329 | predicate?: K.FlowPredicateKind | null, | |
329 | 330 | rest?: K.IdentifierKind | null, |
330 | 331 | returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null, |
331 | 332 | typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null |
352 | 353 | id?: K.IdentifierKind | null, |
353 | 354 | loc?: K.SourceLocationKind | null, |
354 | 355 | params: K.PatternKind[], |
356 | predicate?: K.FlowPredicateKind | null, | |
355 | 357 | rest?: K.IdentifierKind | null, |
356 | 358 | returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null, |
357 | 359 | typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null |
473 | 475 | |
474 | 476 | export interface BinaryExpressionBuilder { |
475 | 477 | ( |
476 | operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "in" | "instanceof", | |
478 | operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "&" | "|" | "^" | "in" | "instanceof" | "**", | |
477 | 479 | left: K.ExpressionKind, |
478 | 480 | right: K.ExpressionKind |
479 | 481 | ): namedTypes.BinaryExpression; |
482 | 484 | comments?: K.CommentKind[] | null, |
483 | 485 | left: K.ExpressionKind, |
484 | 486 | loc?: K.SourceLocationKind | null, |
485 | operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "in" | "instanceof", | |
487 | operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "&" | "|" | "^" | "in" | "instanceof" | "**", | |
486 | 488 | right: K.ExpressionKind |
487 | 489 | } |
488 | 490 | ): namedTypes.BinaryExpression; |
490 | 492 | |
491 | 493 | export interface AssignmentExpressionBuilder { |
492 | 494 | ( |
493 | operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=", | |
495 | operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=", | |
494 | 496 | left: K.PatternKind | K.MemberExpressionKind, |
495 | 497 | right: K.ExpressionKind |
496 | 498 | ): namedTypes.AssignmentExpression; |
499 | 501 | comments?: K.CommentKind[] | null, |
500 | 502 | left: K.PatternKind | K.MemberExpressionKind, |
501 | 503 | loc?: K.SourceLocationKind | null, |
502 | operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=", | |
504 | operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=", | |
503 | 505 | right: K.ExpressionKind |
504 | 506 | } |
505 | 507 | ): namedTypes.AssignmentExpression; |
663 | 665 | id?: null, |
664 | 666 | loc?: K.SourceLocationKind | null, |
665 | 667 | params: K.PatternKind[], |
668 | predicate?: K.FlowPredicateKind | null, | |
666 | 669 | rest?: K.IdentifierKind | null, |
667 | 670 | returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null, |
668 | 671 | typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null |
678 | 681 | ): namedTypes.ForOfStatement; |
679 | 682 | from( |
680 | 683 | params: { |
684 | await?: boolean, | |
681 | 685 | body: K.StatementKind, |
682 | 686 | comments?: K.CommentKind[] | null, |
683 | 687 | left: K.VariableDeclarationKind | K.PatternKind, |
804 | 808 | loc?: K.SourceLocationKind | null |
805 | 809 | } |
806 | 810 | ): namedTypes.ArrayPattern; |
811 | } | |
812 | ||
813 | export interface SpreadElementBuilder { | |
814 | (argument: K.ExpressionKind): namedTypes.SpreadElement; | |
815 | from( | |
816 | params: { | |
817 | argument: K.ExpressionKind, | |
818 | comments?: K.CommentKind[] | null, | |
819 | loc?: K.SourceLocationKind | null | |
820 | } | |
821 | ): namedTypes.SpreadElement; | |
822 | } | |
823 | ||
824 | export interface AssignmentPatternBuilder { | |
825 | (left: K.PatternKind, right: K.ExpressionKind): namedTypes.AssignmentPattern; | |
826 | from( | |
827 | params: { | |
828 | comments?: K.CommentKind[] | null, | |
829 | left: K.PatternKind, | |
830 | loc?: K.SourceLocationKind | null, | |
831 | right: K.ExpressionKind | |
832 | } | |
833 | ): namedTypes.AssignmentPattern; | |
807 | 834 | } |
808 | 835 | |
809 | 836 | export interface MethodDefinitionBuilder { |
827 | 854 | ): namedTypes.MethodDefinition; |
828 | 855 | } |
829 | 856 | |
830 | export interface SpreadElementBuilder { | |
831 | (argument: K.ExpressionKind): namedTypes.SpreadElement; | |
832 | from( | |
833 | params: { | |
834 | argument: K.ExpressionKind, | |
835 | comments?: K.CommentKind[] | null, | |
836 | loc?: K.SourceLocationKind | null | |
837 | } | |
838 | ): namedTypes.SpreadElement; | |
839 | } | |
840 | ||
841 | export interface AssignmentPatternBuilder { | |
842 | (left: K.PatternKind, right: K.ExpressionKind): namedTypes.AssignmentPattern; | |
843 | from( | |
844 | params: { | |
845 | comments?: K.CommentKind[] | null, | |
846 | left: K.PatternKind, | |
847 | loc?: K.SourceLocationKind | null, | |
848 | right: K.ExpressionKind | |
849 | } | |
850 | ): namedTypes.AssignmentPattern; | |
851 | } | |
852 | ||
853 | 857 | export interface ClassPropertyDefinitionBuilder { |
854 | 858 | ( |
855 | 859 | definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind |
938 | 942 | ): namedTypes.ClassExpression; |
939 | 943 | } |
940 | 944 | |
945 | export interface SuperBuilder { | |
946 | (): namedTypes.Super; | |
947 | from( | |
948 | params: { | |
949 | comments?: K.CommentKind[] | null, | |
950 | loc?: K.SourceLocationKind | null | |
951 | } | |
952 | ): namedTypes.Super; | |
953 | } | |
954 | ||
941 | 955 | export interface ImportSpecifierBuilder { |
942 | 956 | (imported: K.IdentifierKind, local?: K.IdentifierKind | null): namedTypes.ImportSpecifier; |
943 | 957 | from( |
952 | 966 | ): namedTypes.ImportSpecifier; |
953 | 967 | } |
954 | 968 | |
969 | export interface ImportDefaultSpecifierBuilder { | |
970 | (local?: K.IdentifierKind | null): namedTypes.ImportDefaultSpecifier; | |
971 | from( | |
972 | params: { | |
973 | comments?: K.CommentKind[] | null, | |
974 | id?: K.IdentifierKind | null, | |
975 | loc?: K.SourceLocationKind | null, | |
976 | local?: K.IdentifierKind | null, | |
977 | name?: K.IdentifierKind | null | |
978 | } | |
979 | ): namedTypes.ImportDefaultSpecifier; | |
980 | } | |
981 | ||
955 | 982 | export interface ImportNamespaceSpecifierBuilder { |
956 | 983 | (local?: K.IdentifierKind | null): namedTypes.ImportNamespaceSpecifier; |
957 | 984 | from( |
965 | 992 | ): namedTypes.ImportNamespaceSpecifier; |
966 | 993 | } |
967 | 994 | |
968 | export interface ImportDefaultSpecifierBuilder { | |
969 | (local?: K.IdentifierKind | null): namedTypes.ImportDefaultSpecifier; | |
970 | from( | |
971 | params: { | |
972 | comments?: K.CommentKind[] | null, | |
995 | export interface ImportDeclarationBuilder { | |
996 | ( | |
997 | specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, | |
998 | source: K.LiteralKind, | |
999 | importKind?: "value" | "type" | "typeof" | |
1000 | ): namedTypes.ImportDeclaration; | |
1001 | from( | |
1002 | params: { | |
1003 | comments?: K.CommentKind[] | null, | |
1004 | importKind?: "value" | "type" | "typeof", | |
1005 | loc?: K.SourceLocationKind | null, | |
1006 | source: K.LiteralKind, | |
1007 | specifiers?: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | |
1008 | } | |
1009 | ): namedTypes.ImportDeclaration; | |
1010 | } | |
1011 | ||
1012 | export interface ExportNamedDeclarationBuilder { | |
1013 | ( | |
1014 | declaration: K.DeclarationKind | null, | |
1015 | specifiers?: K.ExportSpecifierKind[], | |
1016 | source?: K.LiteralKind | null | |
1017 | ): namedTypes.ExportNamedDeclaration; | |
1018 | from( | |
1019 | params: { | |
1020 | comments?: K.CommentKind[] | null, | |
1021 | declaration: K.DeclarationKind | null, | |
1022 | loc?: K.SourceLocationKind | null, | |
1023 | source?: K.LiteralKind | null, | |
1024 | specifiers?: K.ExportSpecifierKind[] | |
1025 | } | |
1026 | ): namedTypes.ExportNamedDeclaration; | |
1027 | } | |
1028 | ||
1029 | export interface ExportSpecifierBuilder { | |
1030 | (id?: K.IdentifierKind | null, name?: K.IdentifierKind | null): namedTypes.ExportSpecifier; | |
1031 | from( | |
1032 | params: { | |
1033 | comments?: K.CommentKind[] | null, | |
1034 | exported: K.IdentifierKind, | |
973 | 1035 | id?: K.IdentifierKind | null, |
974 | 1036 | loc?: K.SourceLocationKind | null, |
975 | 1037 | local?: K.IdentifierKind | null, |
976 | 1038 | name?: K.IdentifierKind | null |
977 | 1039 | } |
978 | ): namedTypes.ImportDefaultSpecifier; | |
979 | } | |
980 | ||
981 | export interface ImportDeclarationBuilder { | |
982 | ( | |
983 | specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, | |
984 | source: K.LiteralKind, | |
985 | importKind?: "value" | "type" | |
986 | ): namedTypes.ImportDeclaration; | |
987 | from( | |
988 | params: { | |
989 | comments?: K.CommentKind[] | null, | |
990 | importKind?: "value" | "type", | |
991 | loc?: K.SourceLocationKind | null, | |
992 | source: K.LiteralKind, | |
993 | specifiers?: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | |
994 | } | |
995 | ): namedTypes.ImportDeclaration; | |
1040 | ): namedTypes.ExportSpecifier; | |
1041 | } | |
1042 | ||
1043 | export interface ExportDefaultDeclarationBuilder { | |
1044 | (declaration: K.DeclarationKind | K.ExpressionKind): namedTypes.ExportDefaultDeclaration; | |
1045 | from( | |
1046 | params: { | |
1047 | comments?: K.CommentKind[] | null, | |
1048 | declaration: K.DeclarationKind | K.ExpressionKind, | |
1049 | loc?: K.SourceLocationKind | null | |
1050 | } | |
1051 | ): namedTypes.ExportDefaultDeclaration; | |
1052 | } | |
1053 | ||
1054 | export interface ExportAllDeclarationBuilder { | |
1055 | (source: K.LiteralKind, exported: K.IdentifierKind | null): namedTypes.ExportAllDeclaration; | |
1056 | from( | |
1057 | params: { | |
1058 | comments?: K.CommentKind[] | null, | |
1059 | exported: K.IdentifierKind | null, | |
1060 | loc?: K.SourceLocationKind | null, | |
1061 | source: K.LiteralKind | |
1062 | } | |
1063 | ): namedTypes.ExportAllDeclaration; | |
996 | 1064 | } |
997 | 1065 | |
998 | 1066 | export interface TaggedTemplateExpressionBuilder { |
1022 | 1090 | export interface TemplateElementBuilder { |
1023 | 1091 | ( |
1024 | 1092 | value: { |
1025 | cooked: string, | |
1093 | cooked: string | null, | |
1026 | 1094 | raw: string |
1027 | 1095 | }, |
1028 | 1096 | tail: boolean |
1033 | 1101 | loc?: K.SourceLocationKind | null, |
1034 | 1102 | tail: boolean, |
1035 | 1103 | value: { |
1036 | cooked: string, | |
1104 | cooked: string | null, | |
1037 | 1105 | raw: string |
1038 | 1106 | } |
1039 | 1107 | } |
1040 | 1108 | ): namedTypes.TemplateElement; |
1041 | 1109 | } |
1042 | 1110 | |
1111 | export interface MetaPropertyBuilder { | |
1112 | (meta: K.IdentifierKind, property: K.IdentifierKind): namedTypes.MetaProperty; | |
1113 | from( | |
1114 | params: { | |
1115 | comments?: K.CommentKind[] | null, | |
1116 | loc?: K.SourceLocationKind | null, | |
1117 | meta: K.IdentifierKind, | |
1118 | property: K.IdentifierKind | |
1119 | } | |
1120 | ): namedTypes.MetaProperty; | |
1121 | } | |
1122 | ||
1123 | export interface AwaitExpressionBuilder { | |
1124 | (argument: K.ExpressionKind | null, all?: boolean): namedTypes.AwaitExpression; | |
1125 | from( | |
1126 | params: { | |
1127 | all?: boolean, | |
1128 | argument: K.ExpressionKind | null, | |
1129 | comments?: K.CommentKind[] | null, | |
1130 | loc?: K.SourceLocationKind | null | |
1131 | } | |
1132 | ): namedTypes.AwaitExpression; | |
1133 | } | |
1134 | ||
1043 | 1135 | export interface SpreadPropertyBuilder { |
1044 | 1136 | (argument: K.ExpressionKind): namedTypes.SpreadProperty; |
1045 | 1137 | from( |
1062 | 1154 | ): namedTypes.SpreadPropertyPattern; |
1063 | 1155 | } |
1064 | 1156 | |
1065 | export interface AwaitExpressionBuilder { | |
1066 | (argument: K.ExpressionKind | null, all?: boolean): namedTypes.AwaitExpression; | |
1067 | from( | |
1068 | params: { | |
1069 | all?: boolean, | |
1070 | argument: K.ExpressionKind | null, | |
1071 | comments?: K.CommentKind[] | null, | |
1072 | loc?: K.SourceLocationKind | null | |
1073 | } | |
1074 | ): namedTypes.AwaitExpression; | |
1075 | } | |
1076 | ||
1077 | 1157 | export interface ImportExpressionBuilder { |
1078 | 1158 | (source: K.ExpressionKind): namedTypes.ImportExpression; |
1079 | 1159 | from( |
1085 | 1165 | ): namedTypes.ImportExpression; |
1086 | 1166 | } |
1087 | 1167 | |
1168 | export interface OptionalMemberExpressionBuilder { | |
1169 | ( | |
1170 | object: K.ExpressionKind, | |
1171 | property: K.IdentifierKind | K.ExpressionKind, | |
1172 | computed?: boolean, | |
1173 | optional?: boolean | |
1174 | ): namedTypes.OptionalMemberExpression; | |
1175 | from( | |
1176 | params: { | |
1177 | comments?: K.CommentKind[] | null, | |
1178 | computed?: boolean, | |
1179 | loc?: K.SourceLocationKind | null, | |
1180 | object: K.ExpressionKind, | |
1181 | optional?: boolean, | |
1182 | property: K.IdentifierKind | K.ExpressionKind | |
1183 | } | |
1184 | ): namedTypes.OptionalMemberExpression; | |
1185 | } | |
1186 | ||
1187 | export interface OptionalCallExpressionBuilder { | |
1188 | ( | |
1189 | callee: K.ExpressionKind, | |
1190 | argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], | |
1191 | optional?: boolean | |
1192 | ): namedTypes.OptionalCallExpression; | |
1193 | from( | |
1194 | params: { | |
1195 | arguments: (K.ExpressionKind | K.SpreadElementKind)[], | |
1196 | callee: K.ExpressionKind, | |
1197 | comments?: K.CommentKind[] | null, | |
1198 | loc?: K.SourceLocationKind | null, | |
1199 | optional?: boolean, | |
1200 | typeArguments?: null | K.TypeParameterInstantiationKind | |
1201 | } | |
1202 | ): namedTypes.OptionalCallExpression; | |
1203 | } | |
1204 | ||
1088 | 1205 | export interface JSXAttributeBuilder { |
1089 | 1206 | ( |
1090 | 1207 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, |
1091 | value?: K.LiteralKind | K.JSXExpressionContainerKind | null | |
1208 | value?: K.LiteralKind | K.JSXExpressionContainerKind | K.JSXElementKind | K.JSXFragmentKind | null | |
1092 | 1209 | ): namedTypes.JSXAttribute; |
1093 | 1210 | from( |
1094 | 1211 | params: { |
1095 | 1212 | comments?: K.CommentKind[] | null, |
1096 | 1213 | loc?: K.SourceLocationKind | null, |
1097 | 1214 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, |
1098 | value?: K.LiteralKind | K.JSXExpressionContainerKind | null | |
1215 | value?: K.LiteralKind | K.JSXExpressionContainerKind | K.JSXElementKind | K.JSXFragmentKind | null | |
1099 | 1216 | } |
1100 | 1217 | ): namedTypes.JSXAttribute; |
1101 | 1218 | } |
1126 | 1243 | } |
1127 | 1244 | |
1128 | 1245 | export interface JSXExpressionContainerBuilder { |
1129 | (expression: K.ExpressionKind): namedTypes.JSXExpressionContainer; | |
1130 | from( | |
1131 | params: { | |
1132 | comments?: K.CommentKind[] | null, | |
1133 | expression: K.ExpressionKind, | |
1246 | (expression: K.ExpressionKind | K.JSXEmptyExpressionKind): namedTypes.JSXExpressionContainer; | |
1247 | from( | |
1248 | params: { | |
1249 | comments?: K.CommentKind[] | null, | |
1250 | expression: K.ExpressionKind | K.JSXEmptyExpressionKind, | |
1134 | 1251 | loc?: K.SourceLocationKind | null |
1135 | 1252 | } |
1136 | 1253 | ): namedTypes.JSXExpressionContainer; |
1254 | } | |
1255 | ||
1256 | export interface JSXElementBuilder { | |
1257 | ( | |
1258 | openingElement: K.JSXOpeningElementKind, | |
1259 | closingElement?: K.JSXClosingElementKind | null, | |
1260 | children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[] | |
1261 | ): namedTypes.JSXElement; | |
1262 | from( | |
1263 | params: { | |
1264 | attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], | |
1265 | children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[], | |
1266 | closingElement?: K.JSXClosingElementKind | null, | |
1267 | comments?: K.CommentKind[] | null, | |
1268 | loc?: K.SourceLocationKind | null, | |
1269 | name?: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, | |
1270 | openingElement: K.JSXOpeningElementKind, | |
1271 | selfClosing?: boolean | |
1272 | } | |
1273 | ): namedTypes.JSXElement; | |
1274 | } | |
1275 | ||
1276 | export interface JSXFragmentBuilder { | |
1277 | ( | |
1278 | openingFragment: K.JSXOpeningFragmentKind, | |
1279 | closingFragment: K.JSXClosingFragmentKind, | |
1280 | children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[] | |
1281 | ): namedTypes.JSXFragment; | |
1282 | from( | |
1283 | params: { | |
1284 | children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[], | |
1285 | closingFragment: K.JSXClosingFragmentKind, | |
1286 | comments?: K.CommentKind[] | null, | |
1287 | loc?: K.SourceLocationKind | null, | |
1288 | openingFragment: K.JSXOpeningFragmentKind | |
1289 | } | |
1290 | ): namedTypes.JSXFragment; | |
1137 | 1291 | } |
1138 | 1292 | |
1139 | 1293 | export interface JSXMemberExpressionBuilder { |
1163 | 1317 | ): namedTypes.JSXSpreadAttribute; |
1164 | 1318 | } |
1165 | 1319 | |
1166 | export interface JSXElementBuilder { | |
1167 | ( | |
1168 | openingElement: K.JSXOpeningElementKind, | |
1169 | closingElement?: K.JSXClosingElementKind | null, | |
1170 | children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[] | |
1171 | ): namedTypes.JSXElement; | |
1172 | from( | |
1173 | params: { | |
1174 | attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], | |
1175 | children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[], | |
1176 | closingElement?: K.JSXClosingElementKind | null, | |
1177 | comments?: K.CommentKind[] | null, | |
1178 | loc?: K.SourceLocationKind | null, | |
1179 | name?: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, | |
1180 | openingElement: K.JSXOpeningElementKind, | |
1181 | selfClosing?: boolean | |
1182 | } | |
1183 | ): namedTypes.JSXElement; | |
1184 | } | |
1185 | ||
1186 | export interface JSXOpeningElementBuilder { | |
1187 | ( | |
1188 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, | |
1189 | attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], | |
1190 | selfClosing?: boolean | |
1191 | ): namedTypes.JSXOpeningElement; | |
1192 | from( | |
1193 | params: { | |
1194 | attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], | |
1195 | comments?: K.CommentKind[] | null, | |
1196 | loc?: K.SourceLocationKind | null, | |
1197 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, | |
1198 | selfClosing?: boolean | |
1199 | } | |
1200 | ): namedTypes.JSXOpeningElement; | |
1201 | } | |
1202 | ||
1203 | export interface JSXClosingElementBuilder { | |
1204 | ( | |
1205 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind | |
1206 | ): namedTypes.JSXClosingElement; | |
1207 | from( | |
1208 | params: { | |
1209 | comments?: K.CommentKind[] | null, | |
1210 | loc?: K.SourceLocationKind | null, | |
1211 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind | |
1212 | } | |
1213 | ): namedTypes.JSXClosingElement; | |
1214 | } | |
1215 | ||
1216 | export interface JSXFragmentBuilder { | |
1217 | ( | |
1218 | openingElement: K.JSXOpeningFragmentKind, | |
1219 | closingElement: K.JSXClosingFragmentKind, | |
1220 | children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[] | |
1221 | ): namedTypes.JSXFragment; | |
1222 | from( | |
1223 | params: { | |
1224 | children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[], | |
1225 | closingElement: K.JSXClosingFragmentKind, | |
1226 | comments?: K.CommentKind[] | null, | |
1227 | loc?: K.SourceLocationKind | null, | |
1228 | openingElement: K.JSXOpeningFragmentKind | |
1229 | } | |
1230 | ): namedTypes.JSXFragment; | |
1320 | export interface JSXEmptyExpressionBuilder { | |
1321 | (): namedTypes.JSXEmptyExpression; | |
1322 | from( | |
1323 | params: { | |
1324 | comments?: K.CommentKind[] | null, | |
1325 | loc?: K.SourceLocationKind | null | |
1326 | } | |
1327 | ): namedTypes.JSXEmptyExpression; | |
1231 | 1328 | } |
1232 | 1329 | |
1233 | 1330 | export interface JSXTextBuilder { |
1234 | (value: string): namedTypes.JSXText; | |
1235 | from( | |
1236 | params: { | |
1237 | comments?: K.CommentKind[] | null, | |
1238 | loc?: K.SourceLocationKind | null, | |
1331 | (value: string, raw?: string): namedTypes.JSXText; | |
1332 | from( | |
1333 | params: { | |
1334 | comments?: K.CommentKind[] | null, | |
1335 | loc?: K.SourceLocationKind | null, | |
1336 | raw?: string, | |
1239 | 1337 | regex?: { |
1240 | 1338 | pattern: string, |
1241 | 1339 | flags: string |
1245 | 1343 | ): namedTypes.JSXText; |
1246 | 1344 | } |
1247 | 1345 | |
1346 | export interface JSXSpreadChildBuilder { | |
1347 | (expression: K.ExpressionKind): namedTypes.JSXSpreadChild; | |
1348 | from( | |
1349 | params: { | |
1350 | comments?: K.CommentKind[] | null, | |
1351 | expression: K.ExpressionKind, | |
1352 | loc?: K.SourceLocationKind | null | |
1353 | } | |
1354 | ): namedTypes.JSXSpreadChild; | |
1355 | } | |
1356 | ||
1357 | export interface JSXOpeningElementBuilder { | |
1358 | ( | |
1359 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, | |
1360 | attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], | |
1361 | selfClosing?: boolean | |
1362 | ): namedTypes.JSXOpeningElement; | |
1363 | from( | |
1364 | params: { | |
1365 | attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], | |
1366 | comments?: K.CommentKind[] | null, | |
1367 | loc?: K.SourceLocationKind | null, | |
1368 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, | |
1369 | selfClosing?: boolean | |
1370 | } | |
1371 | ): namedTypes.JSXOpeningElement; | |
1372 | } | |
1373 | ||
1374 | export interface JSXClosingElementBuilder { | |
1375 | ( | |
1376 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind | |
1377 | ): namedTypes.JSXClosingElement; | |
1378 | from( | |
1379 | params: { | |
1380 | comments?: K.CommentKind[] | null, | |
1381 | loc?: K.SourceLocationKind | null, | |
1382 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind | |
1383 | } | |
1384 | ): namedTypes.JSXClosingElement; | |
1385 | } | |
1386 | ||
1248 | 1387 | export interface JSXOpeningFragmentBuilder { |
1249 | 1388 | (): namedTypes.JSXOpeningFragment; |
1250 | 1389 | from( |
1265 | 1404 | ): namedTypes.JSXClosingFragment; |
1266 | 1405 | } |
1267 | 1406 | |
1268 | export interface JSXEmptyExpressionBuilder { | |
1269 | (): namedTypes.JSXEmptyExpression; | |
1270 | from( | |
1271 | params: { | |
1272 | comments?: K.CommentKind[] | null, | |
1273 | loc?: K.SourceLocationKind | null | |
1274 | } | |
1275 | ): namedTypes.JSXEmptyExpression; | |
1276 | } | |
1277 | ||
1278 | export interface JSXSpreadChildBuilder { | |
1279 | (expression: K.ExpressionKind): namedTypes.JSXSpreadChild; | |
1407 | export interface DecoratorBuilder { | |
1408 | (expression: K.ExpressionKind): namedTypes.Decorator; | |
1280 | 1409 | from( |
1281 | 1410 | params: { |
1282 | 1411 | comments?: K.CommentKind[] | null, |
1283 | 1412 | expression: K.ExpressionKind, |
1284 | 1413 | loc?: K.SourceLocationKind | null |
1285 | 1414 | } |
1286 | ): namedTypes.JSXSpreadChild; | |
1415 | ): namedTypes.Decorator; | |
1416 | } | |
1417 | ||
1418 | export interface PrivateNameBuilder { | |
1419 | (id: K.IdentifierKind): namedTypes.PrivateName; | |
1420 | from( | |
1421 | params: { | |
1422 | comments?: K.CommentKind[] | null, | |
1423 | id: K.IdentifierKind, | |
1424 | loc?: K.SourceLocationKind | null | |
1425 | } | |
1426 | ): namedTypes.PrivateName; | |
1427 | } | |
1428 | ||
1429 | export interface ClassPrivatePropertyBuilder { | |
1430 | (key: K.PrivateNameKind, value?: K.ExpressionKind | null): namedTypes.ClassPrivateProperty; | |
1431 | from( | |
1432 | params: { | |
1433 | access?: "public" | "private" | "protected" | undefined, | |
1434 | comments?: K.CommentKind[] | null, | |
1435 | computed?: boolean, | |
1436 | key: K.PrivateNameKind, | |
1437 | loc?: K.SourceLocationKind | null, | |
1438 | static?: boolean, | |
1439 | typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null, | |
1440 | value?: K.ExpressionKind | null, | |
1441 | variance?: K.VarianceKind | "plus" | "minus" | null | |
1442 | } | |
1443 | ): namedTypes.ClassPrivateProperty; | |
1287 | 1444 | } |
1288 | 1445 | |
1289 | 1446 | export interface TypeParameterDeclarationBuilder { |
1398 | 1555 | ): namedTypes.VoidTypeAnnotation; |
1399 | 1556 | } |
1400 | 1557 | |
1558 | export interface SymbolTypeAnnotationBuilder { | |
1559 | (): namedTypes.SymbolTypeAnnotation; | |
1560 | from( | |
1561 | params: { | |
1562 | comments?: K.CommentKind[] | null, | |
1563 | loc?: K.SourceLocationKind | null | |
1564 | } | |
1565 | ): namedTypes.SymbolTypeAnnotation; | |
1566 | } | |
1567 | ||
1401 | 1568 | export interface NumberTypeAnnotationBuilder { |
1402 | 1569 | (): namedTypes.NumberTypeAnnotation; |
1403 | 1570 | from( |
1408 | 1575 | ): namedTypes.NumberTypeAnnotation; |
1409 | 1576 | } |
1410 | 1577 | |
1578 | export interface BigIntTypeAnnotationBuilder { | |
1579 | (): namedTypes.BigIntTypeAnnotation; | |
1580 | from( | |
1581 | params: { | |
1582 | comments?: K.CommentKind[] | null, | |
1583 | loc?: K.SourceLocationKind | null | |
1584 | } | |
1585 | ): namedTypes.BigIntTypeAnnotation; | |
1586 | } | |
1587 | ||
1411 | 1588 | export interface NumberLiteralTypeAnnotationBuilder { |
1412 | 1589 | (value: number, raw: string): namedTypes.NumberLiteralTypeAnnotation; |
1413 | 1590 | from( |
1430 | 1607 | value: number |
1431 | 1608 | } |
1432 | 1609 | ): namedTypes.NumericLiteralTypeAnnotation; |
1610 | } | |
1611 | ||
1612 | export interface BigIntLiteralTypeAnnotationBuilder { | |
1613 | (value: null, raw: string): namedTypes.BigIntLiteralTypeAnnotation; | |
1614 | from( | |
1615 | params: { | |
1616 | comments?: K.CommentKind[] | null, | |
1617 | loc?: K.SourceLocationKind | null, | |
1618 | raw: string, | |
1619 | value: null | |
1620 | } | |
1621 | ): namedTypes.BigIntLiteralTypeAnnotation; | |
1433 | 1622 | } |
1434 | 1623 | |
1435 | 1624 | export interface StringTypeAnnotationBuilder { |
1557 | 1746 | } |
1558 | 1747 | |
1559 | 1748 | export interface FunctionTypeParamBuilder { |
1560 | (name: K.IdentifierKind, typeAnnotation: K.FlowTypeKind, optional: boolean): namedTypes.FunctionTypeParam; | |
1561 | from( | |
1562 | params: { | |
1563 | comments?: K.CommentKind[] | null, | |
1564 | loc?: K.SourceLocationKind | null, | |
1565 | name: K.IdentifierKind, | |
1749 | ( | |
1750 | name: K.IdentifierKind | null, | |
1751 | typeAnnotation: K.FlowTypeKind, | |
1752 | optional: boolean | |
1753 | ): namedTypes.FunctionTypeParam; | |
1754 | from( | |
1755 | params: { | |
1756 | comments?: K.CommentKind[] | null, | |
1757 | loc?: K.SourceLocationKind | null, | |
1758 | name: K.IdentifierKind | null, | |
1566 | 1759 | optional: boolean, |
1567 | 1760 | typeAnnotation: K.FlowTypeKind |
1568 | 1761 | } |
1637 | 1830 | id: K.IdentifierKind, |
1638 | 1831 | key: K.FlowTypeKind, |
1639 | 1832 | loc?: K.SourceLocationKind | null, |
1833 | static: boolean, | |
1640 | 1834 | value: K.FlowTypeKind, |
1641 | 1835 | variance?: K.VarianceKind | "plus" | "minus" | null |
1642 | 1836 | } |
1769 | 1963 | ( |
1770 | 1964 | name: string, |
1771 | 1965 | variance?: K.VarianceKind | "plus" | "minus" | null, |
1772 | bound?: K.TypeAnnotationKind | null | |
1966 | bound?: K.TypeAnnotationKind | null, | |
1967 | defaultParam?: K.FlowTypeKind | null | |
1773 | 1968 | ): namedTypes.TypeParameter; |
1774 | 1969 | from( |
1775 | 1970 | params: { |
1776 | 1971 | bound?: K.TypeAnnotationKind | null, |
1777 | 1972 | comments?: K.CommentKind[] | null, |
1973 | default?: K.FlowTypeKind | null, | |
1778 | 1974 | loc?: K.SourceLocationKind | null, |
1779 | 1975 | name: string, |
1780 | 1976 | variance?: K.VarianceKind | "plus" | "minus" | null |
1862 | 2058 | ): namedTypes.TypeAlias; |
1863 | 2059 | } |
1864 | 2060 | |
1865 | export interface OpaqueTypeBuilder { | |
1866 | ( | |
1867 | id: K.IdentifierKind, | |
1868 | typeParameters: K.TypeParameterDeclarationKind | null, | |
1869 | impltype: K.FlowTypeKind, | |
1870 | supertype: K.FlowTypeKind | |
1871 | ): namedTypes.OpaqueType; | |
1872 | from( | |
1873 | params: { | |
1874 | comments?: K.CommentKind[] | null, | |
1875 | id: K.IdentifierKind, | |
1876 | impltype: K.FlowTypeKind, | |
1877 | loc?: K.SourceLocationKind | null, | |
1878 | supertype: K.FlowTypeKind, | |
1879 | typeParameters: K.TypeParameterDeclarationKind | null | |
1880 | } | |
1881 | ): namedTypes.OpaqueType; | |
1882 | } | |
1883 | ||
1884 | 2061 | export interface DeclareTypeAliasBuilder { |
1885 | 2062 | ( |
1886 | 2063 | id: K.IdentifierKind, |
1898 | 2075 | ): namedTypes.DeclareTypeAlias; |
1899 | 2076 | } |
1900 | 2077 | |
2078 | export interface OpaqueTypeBuilder { | |
2079 | ( | |
2080 | id: K.IdentifierKind, | |
2081 | typeParameters: K.TypeParameterDeclarationKind | null, | |
2082 | impltype: K.FlowTypeKind, | |
2083 | supertype: K.FlowTypeKind | null | |
2084 | ): namedTypes.OpaqueType; | |
2085 | from( | |
2086 | params: { | |
2087 | comments?: K.CommentKind[] | null, | |
2088 | id: K.IdentifierKind, | |
2089 | impltype: K.FlowTypeKind, | |
2090 | loc?: K.SourceLocationKind | null, | |
2091 | supertype: K.FlowTypeKind | null, | |
2092 | typeParameters: K.TypeParameterDeclarationKind | null | |
2093 | } | |
2094 | ): namedTypes.OpaqueType; | |
2095 | } | |
2096 | ||
1901 | 2097 | export interface DeclareOpaqueTypeBuilder { |
1902 | 2098 | ( |
1903 | 2099 | id: K.IdentifierKind, |
1904 | typeParameters: K.TypeParameterDeclarationKind | null | |
2100 | typeParameters: K.TypeParameterDeclarationKind | null, | |
2101 | supertype: K.FlowTypeKind | null | |
1905 | 2102 | ): namedTypes.DeclareOpaqueType; |
1906 | 2103 | from( |
1907 | 2104 | params: { |
1908 | 2105 | comments?: K.CommentKind[] | null, |
1909 | 2106 | id: K.IdentifierKind, |
1910 | loc?: K.SourceLocationKind | null, | |
1911 | right: K.FlowTypeKind, | |
2107 | impltype: K.FlowTypeKind | null, | |
2108 | loc?: K.SourceLocationKind | null, | |
2109 | supertype: K.FlowTypeKind | null, | |
1912 | 2110 | typeParameters: K.TypeParameterDeclarationKind | null |
1913 | 2111 | } |
1914 | 2112 | ): namedTypes.DeclareOpaqueType; |
1954 | 2152 | params: { |
1955 | 2153 | comments?: K.CommentKind[] | null, |
1956 | 2154 | id: K.IdentifierKind, |
1957 | loc?: K.SourceLocationKind | null | |
2155 | loc?: K.SourceLocationKind | null, | |
2156 | predicate?: K.FlowPredicateKind | null | |
1958 | 2157 | } |
1959 | 2158 | ): namedTypes.DeclareFunction; |
1960 | 2159 | } |
1999 | 2198 | export interface DeclareExportDeclarationBuilder { |
2000 | 2199 | ( |
2001 | 2200 | defaultParam: boolean, |
2002 | declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null, | |
2201 | declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | K.TypeAliasKind | K.DeclareOpaqueTypeKind | K.InterfaceDeclarationKind | null, | |
2003 | 2202 | specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], |
2004 | 2203 | source?: K.LiteralKind | null |
2005 | 2204 | ): namedTypes.DeclareExportDeclaration; |
2006 | 2205 | from( |
2007 | 2206 | params: { |
2008 | 2207 | comments?: K.CommentKind[] | null, |
2009 | declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null, | |
2208 | declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | K.TypeAliasKind | K.DeclareOpaqueTypeKind | K.InterfaceDeclarationKind | null, | |
2010 | 2209 | default: boolean, |
2011 | 2210 | loc?: K.SourceLocationKind | null, |
2012 | 2211 | source?: K.LiteralKind | null, |
2015 | 2214 | ): namedTypes.DeclareExportDeclaration; |
2016 | 2215 | } |
2017 | 2216 | |
2018 | export interface ExportSpecifierBuilder { | |
2019 | (local: K.IdentifierKind | null | undefined, exported: K.IdentifierKind): namedTypes.ExportSpecifier; | |
2020 | from( | |
2021 | params: { | |
2022 | comments?: K.CommentKind[] | null, | |
2023 | exported: K.IdentifierKind, | |
2024 | id?: K.IdentifierKind | null, | |
2025 | loc?: K.SourceLocationKind | null, | |
2026 | local?: K.IdentifierKind | null, | |
2027 | name?: K.IdentifierKind | null | |
2028 | } | |
2029 | ): namedTypes.ExportSpecifier; | |
2030 | } | |
2031 | ||
2032 | 2217 | export interface ExportBatchSpecifierBuilder { |
2033 | 2218 | (): namedTypes.ExportBatchSpecifier; |
2034 | 2219 | from( |
2069 | 2254 | value: K.ExpressionKind |
2070 | 2255 | } |
2071 | 2256 | ): namedTypes.DeclaredPredicate; |
2257 | } | |
2258 | ||
2259 | export interface EnumDeclarationBuilder { | |
2260 | ( | |
2261 | id: K.IdentifierKind, | |
2262 | body: K.EnumBooleanBodyKind | K.EnumNumberBodyKind | K.EnumStringBodyKind | K.EnumSymbolBodyKind | |
2263 | ): namedTypes.EnumDeclaration; | |
2264 | from( | |
2265 | params: { | |
2266 | body: K.EnumBooleanBodyKind | K.EnumNumberBodyKind | K.EnumStringBodyKind | K.EnumSymbolBodyKind, | |
2267 | comments?: K.CommentKind[] | null, | |
2268 | id: K.IdentifierKind, | |
2269 | loc?: K.SourceLocationKind | null | |
2270 | } | |
2271 | ): namedTypes.EnumDeclaration; | |
2272 | } | |
2273 | ||
2274 | export interface EnumBooleanBodyBuilder { | |
2275 | (members: K.EnumBooleanMemberKind[], explicitType: boolean): namedTypes.EnumBooleanBody; | |
2276 | from( | |
2277 | params: { | |
2278 | explicitType: boolean, | |
2279 | members: K.EnumBooleanMemberKind[] | |
2280 | } | |
2281 | ): namedTypes.EnumBooleanBody; | |
2282 | } | |
2283 | ||
2284 | export interface EnumNumberBodyBuilder { | |
2285 | (members: K.EnumNumberMemberKind[], explicitType: boolean): namedTypes.EnumNumberBody; | |
2286 | from( | |
2287 | params: { | |
2288 | explicitType: boolean, | |
2289 | members: K.EnumNumberMemberKind[] | |
2290 | } | |
2291 | ): namedTypes.EnumNumberBody; | |
2292 | } | |
2293 | ||
2294 | export interface EnumStringBodyBuilder { | |
2295 | ( | |
2296 | members: K.EnumStringMemberKind[] | K.EnumDefaultedMemberKind[], | |
2297 | explicitType: boolean | |
2298 | ): namedTypes.EnumStringBody; | |
2299 | from( | |
2300 | params: { | |
2301 | explicitType: boolean, | |
2302 | members: K.EnumStringMemberKind[] | K.EnumDefaultedMemberKind[] | |
2303 | } | |
2304 | ): namedTypes.EnumStringBody; | |
2305 | } | |
2306 | ||
2307 | export interface EnumSymbolBodyBuilder { | |
2308 | (members: K.EnumDefaultedMemberKind[]): namedTypes.EnumSymbolBody; | |
2309 | from( | |
2310 | params: { | |
2311 | members: K.EnumDefaultedMemberKind[] | |
2312 | } | |
2313 | ): namedTypes.EnumSymbolBody; | |
2314 | } | |
2315 | ||
2316 | export interface EnumBooleanMemberBuilder { | |
2317 | (id: K.IdentifierKind, init: K.LiteralKind | boolean): namedTypes.EnumBooleanMember; | |
2318 | from( | |
2319 | params: { | |
2320 | id: K.IdentifierKind, | |
2321 | init: K.LiteralKind | boolean | |
2322 | } | |
2323 | ): namedTypes.EnumBooleanMember; | |
2324 | } | |
2325 | ||
2326 | export interface EnumNumberMemberBuilder { | |
2327 | (id: K.IdentifierKind, init: K.LiteralKind): namedTypes.EnumNumberMember; | |
2328 | from( | |
2329 | params: { | |
2330 | id: K.IdentifierKind, | |
2331 | init: K.LiteralKind | |
2332 | } | |
2333 | ): namedTypes.EnumNumberMember; | |
2334 | } | |
2335 | ||
2336 | export interface EnumStringMemberBuilder { | |
2337 | (id: K.IdentifierKind, init: K.LiteralKind): namedTypes.EnumStringMember; | |
2338 | from( | |
2339 | params: { | |
2340 | id: K.IdentifierKind, | |
2341 | init: K.LiteralKind | |
2342 | } | |
2343 | ): namedTypes.EnumStringMember; | |
2344 | } | |
2345 | ||
2346 | export interface EnumDefaultedMemberBuilder { | |
2347 | (id: K.IdentifierKind): namedTypes.EnumDefaultedMember; | |
2348 | from( | |
2349 | params: { | |
2350 | id: K.IdentifierKind | |
2351 | } | |
2352 | ): namedTypes.EnumDefaultedMember; | |
2072 | 2353 | } |
2073 | 2354 | |
2074 | 2355 | export interface ExportDeclarationBuilder { |
2135 | 2416 | ): namedTypes.DoExpression; |
2136 | 2417 | } |
2137 | 2418 | |
2138 | export interface SuperBuilder { | |
2139 | (): namedTypes.Super; | |
2140 | from( | |
2141 | params: { | |
2142 | comments?: K.CommentKind[] | null, | |
2143 | loc?: K.SourceLocationKind | null | |
2144 | } | |
2145 | ): namedTypes.Super; | |
2146 | } | |
2147 | ||
2148 | 2419 | export interface BindExpressionBuilder { |
2149 | 2420 | (object: K.ExpressionKind | null, callee: K.ExpressionKind): namedTypes.BindExpression; |
2150 | 2421 | from( |
2157 | 2428 | ): namedTypes.BindExpression; |
2158 | 2429 | } |
2159 | 2430 | |
2160 | export interface DecoratorBuilder { | |
2161 | (expression: K.ExpressionKind): namedTypes.Decorator; | |
2162 | from( | |
2163 | params: { | |
2164 | comments?: K.CommentKind[] | null, | |
2165 | expression: K.ExpressionKind, | |
2166 | loc?: K.SourceLocationKind | null | |
2167 | } | |
2168 | ): namedTypes.Decorator; | |
2169 | } | |
2170 | ||
2171 | export interface MetaPropertyBuilder { | |
2172 | (meta: K.IdentifierKind, property: K.IdentifierKind): namedTypes.MetaProperty; | |
2173 | from( | |
2174 | params: { | |
2175 | comments?: K.CommentKind[] | null, | |
2176 | loc?: K.SourceLocationKind | null, | |
2177 | meta: K.IdentifierKind, | |
2178 | property: K.IdentifierKind | |
2179 | } | |
2180 | ): namedTypes.MetaProperty; | |
2181 | } | |
2182 | ||
2183 | 2431 | export interface ParenthesizedExpressionBuilder { |
2184 | 2432 | (expression: K.ExpressionKind): namedTypes.ParenthesizedExpression; |
2185 | 2433 | from( |
2191 | 2439 | ): namedTypes.ParenthesizedExpression; |
2192 | 2440 | } |
2193 | 2441 | |
2194 | export interface ExportDefaultDeclarationBuilder { | |
2195 | (declaration: K.DeclarationKind | K.ExpressionKind): namedTypes.ExportDefaultDeclaration; | |
2196 | from( | |
2197 | params: { | |
2198 | comments?: K.CommentKind[] | null, | |
2199 | declaration: K.DeclarationKind | K.ExpressionKind, | |
2200 | loc?: K.SourceLocationKind | null | |
2201 | } | |
2202 | ): namedTypes.ExportDefaultDeclaration; | |
2203 | } | |
2204 | ||
2205 | export interface ExportNamedDeclarationBuilder { | |
2206 | ( | |
2207 | declaration: K.DeclarationKind | null, | |
2208 | specifiers?: K.ExportSpecifierKind[], | |
2209 | source?: K.LiteralKind | null | |
2210 | ): namedTypes.ExportNamedDeclaration; | |
2211 | from( | |
2212 | params: { | |
2213 | comments?: K.CommentKind[] | null, | |
2214 | declaration: K.DeclarationKind | null, | |
2215 | loc?: K.SourceLocationKind | null, | |
2216 | source?: K.LiteralKind | null, | |
2217 | specifiers?: K.ExportSpecifierKind[] | |
2218 | } | |
2219 | ): namedTypes.ExportNamedDeclaration; | |
2220 | } | |
2221 | ||
2222 | 2442 | export interface ExportNamespaceSpecifierBuilder { |
2223 | 2443 | (exported: K.IdentifierKind): namedTypes.ExportNamespaceSpecifier; |
2224 | 2444 | from( |
2239 | 2459 | loc?: K.SourceLocationKind | null |
2240 | 2460 | } |
2241 | 2461 | ): namedTypes.ExportDefaultSpecifier; |
2242 | } | |
2243 | ||
2244 | export interface ExportAllDeclarationBuilder { | |
2245 | (exported: K.IdentifierKind | null, source: K.LiteralKind): namedTypes.ExportAllDeclaration; | |
2246 | from( | |
2247 | params: { | |
2248 | comments?: K.CommentKind[] | null, | |
2249 | exported: K.IdentifierKind | null, | |
2250 | loc?: K.SourceLocationKind | null, | |
2251 | source: K.LiteralKind | |
2252 | } | |
2253 | ): namedTypes.ExportAllDeclaration; | |
2254 | 2462 | } |
2255 | 2463 | |
2256 | 2464 | export interface CommentBlockBuilder { |
2435 | 2643 | kind: "method" | "get" | "set", |
2436 | 2644 | loc?: K.SourceLocationKind | null, |
2437 | 2645 | params: K.PatternKind[], |
2646 | predicate?: K.FlowPredicateKind | null, | |
2438 | 2647 | rest?: K.IdentifierKind | null, |
2439 | 2648 | returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null, |
2440 | 2649 | typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null |
2441 | 2650 | } |
2442 | 2651 | ): namedTypes.ObjectMethod; |
2443 | } | |
2444 | ||
2445 | export interface ClassPrivatePropertyBuilder { | |
2446 | (key: K.PrivateNameKind, value?: K.ExpressionKind | null): namedTypes.ClassPrivateProperty; | |
2447 | from( | |
2448 | params: { | |
2449 | access?: "public" | "private" | "protected" | undefined, | |
2450 | comments?: K.CommentKind[] | null, | |
2451 | computed?: boolean, | |
2452 | key: K.PrivateNameKind, | |
2453 | loc?: K.SourceLocationKind | null, | |
2454 | static?: boolean, | |
2455 | typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null, | |
2456 | value?: K.ExpressionKind | null, | |
2457 | variance?: K.VarianceKind | "plus" | "minus" | null | |
2458 | } | |
2459 | ): namedTypes.ClassPrivateProperty; | |
2460 | 2652 | } |
2461 | 2653 | |
2462 | 2654 | export interface ClassMethodBuilder { |
2487 | 2679 | loc?: K.SourceLocationKind | null, |
2488 | 2680 | optional?: boolean | null, |
2489 | 2681 | params: K.PatternKind[], |
2682 | predicate?: K.FlowPredicateKind | null, | |
2490 | 2683 | rest?: K.IdentifierKind | null, |
2491 | 2684 | returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null, |
2492 | 2685 | static?: boolean | null, |
2523 | 2716 | loc?: K.SourceLocationKind | null, |
2524 | 2717 | optional?: boolean | null, |
2525 | 2718 | params: K.PatternKind[], |
2719 | predicate?: K.FlowPredicateKind | null, | |
2526 | 2720 | rest?: K.IdentifierKind | null, |
2527 | 2721 | returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null, |
2528 | 2722 | static?: boolean | null, |
2529 | 2723 | typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null |
2530 | 2724 | } |
2531 | 2725 | ): namedTypes.ClassPrivateMethod; |
2532 | } | |
2533 | ||
2534 | export interface PrivateNameBuilder { | |
2535 | (id: K.IdentifierKind): namedTypes.PrivateName; | |
2536 | from( | |
2537 | params: { | |
2538 | comments?: K.CommentKind[] | null, | |
2539 | id: K.IdentifierKind, | |
2540 | loc?: K.SourceLocationKind | null | |
2541 | } | |
2542 | ): namedTypes.PrivateName; | |
2543 | 2726 | } |
2544 | 2727 | |
2545 | 2728 | export interface RestPropertyBuilder { |
2966 | 3149 | } |
2967 | 3150 | |
2968 | 3151 | export interface TSTupleTypeBuilder { |
2969 | (elementTypes: K.TSTypeKind[]): namedTypes.TSTupleType; | |
2970 | from( | |
2971 | params: { | |
2972 | comments?: K.CommentKind[] | null, | |
2973 | elementTypes: K.TSTypeKind[], | |
3152 | (elementTypes: (K.TSTypeKind | K.TSNamedTupleMemberKind)[]): namedTypes.TSTupleType; | |
3153 | from( | |
3154 | params: { | |
3155 | comments?: K.CommentKind[] | null, | |
3156 | elementTypes: (K.TSTypeKind | K.TSNamedTupleMemberKind)[], | |
2974 | 3157 | loc?: K.SourceLocationKind | null |
2975 | 3158 | } |
2976 | 3159 | ): namedTypes.TSTupleType; |
3160 | } | |
3161 | ||
3162 | export interface TSNamedTupleMemberBuilder { | |
3163 | (label: K.IdentifierKind, elementType: K.TSTypeKind, optional?: boolean): namedTypes.TSNamedTupleMember; | |
3164 | from( | |
3165 | params: { | |
3166 | comments?: K.CommentKind[] | null, | |
3167 | elementType: K.TSTypeKind, | |
3168 | label: K.IdentifierKind, | |
3169 | loc?: K.SourceLocationKind | null, | |
3170 | optional?: boolean | |
3171 | } | |
3172 | ): namedTypes.TSNamedTupleMember; | |
2977 | 3173 | } |
2978 | 3174 | |
2979 | 3175 | export interface TSRestTypeBuilder { |
3081 | 3277 | export interface TSTypePredicateBuilder { |
3082 | 3278 | ( |
3083 | 3279 | parameterName: K.IdentifierKind | K.TSThisTypeKind, |
3084 | typeAnnotation: K.TSTypeAnnotationKind | |
3280 | typeAnnotation?: K.TSTypeAnnotationKind | null, | |
3281 | asserts?: boolean | |
3085 | 3282 | ): namedTypes.TSTypePredicate; |
3086 | 3283 | from( |
3087 | 3284 | params: { |
3285 | asserts?: boolean, | |
3088 | 3286 | comments?: K.CommentKind[] | null, |
3089 | 3287 | loc?: K.SourceLocationKind | null, |
3090 | 3288 | parameterName: K.IdentifierKind | K.TSThisTypeKind, |
3091 | typeAnnotation: K.TSTypeAnnotationKind | |
3289 | typeAnnotation?: K.TSTypeAnnotationKind | null | |
3092 | 3290 | } |
3093 | 3291 | ): namedTypes.TSTypePredicate; |
3094 | 3292 | } |
3341 | 3539 | readonly?: boolean |
3342 | 3540 | } |
3343 | 3541 | ): namedTypes.TSParameterProperty; |
3344 | } | |
3345 | ||
3346 | export interface OptionalMemberExpressionBuilder { | |
3347 | ( | |
3348 | object: K.ExpressionKind, | |
3349 | property: K.IdentifierKind | K.ExpressionKind, | |
3350 | computed?: boolean, | |
3351 | optional?: boolean | |
3352 | ): namedTypes.OptionalMemberExpression; | |
3353 | from( | |
3354 | params: { | |
3355 | comments?: K.CommentKind[] | null, | |
3356 | computed?: boolean, | |
3357 | loc?: K.SourceLocationKind | null, | |
3358 | object: K.ExpressionKind, | |
3359 | optional?: boolean, | |
3360 | property: K.IdentifierKind | K.ExpressionKind | |
3361 | } | |
3362 | ): namedTypes.OptionalMemberExpression; | |
3363 | } | |
3364 | ||
3365 | export interface OptionalCallExpressionBuilder { | |
3366 | ( | |
3367 | callee: K.ExpressionKind, | |
3368 | argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], | |
3369 | optional?: boolean | |
3370 | ): namedTypes.OptionalCallExpression; | |
3371 | from( | |
3372 | params: { | |
3373 | arguments: (K.ExpressionKind | K.SpreadElementKind)[], | |
3374 | callee: K.ExpressionKind, | |
3375 | comments?: K.CommentKind[] | null, | |
3376 | loc?: K.SourceLocationKind | null, | |
3377 | optional?: boolean, | |
3378 | typeArguments?: null | K.TypeParameterInstantiationKind | |
3379 | } | |
3380 | ): namedTypes.OptionalCallExpression; | |
3381 | 3542 | } |
3382 | 3543 | |
3383 | 3544 | export interface builders { |
3436 | 3597 | propertyPattern: PropertyPatternBuilder; |
3437 | 3598 | objectPattern: ObjectPatternBuilder; |
3438 | 3599 | arrayPattern: ArrayPatternBuilder; |
3439 | methodDefinition: MethodDefinitionBuilder; | |
3440 | 3600 | spreadElement: SpreadElementBuilder; |
3441 | 3601 | assignmentPattern: AssignmentPatternBuilder; |
3602 | methodDefinition: MethodDefinitionBuilder; | |
3442 | 3603 | classPropertyDefinition: ClassPropertyDefinitionBuilder; |
3443 | 3604 | classProperty: ClassPropertyBuilder; |
3444 | 3605 | classBody: ClassBodyBuilder; |
3445 | 3606 | classDeclaration: ClassDeclarationBuilder; |
3446 | 3607 | classExpression: ClassExpressionBuilder; |
3608 | super: SuperBuilder; | |
3447 | 3609 | importSpecifier: ImportSpecifierBuilder; |
3610 | importDefaultSpecifier: ImportDefaultSpecifierBuilder; | |
3448 | 3611 | importNamespaceSpecifier: ImportNamespaceSpecifierBuilder; |
3449 | importDefaultSpecifier: ImportDefaultSpecifierBuilder; | |
3450 | 3612 | importDeclaration: ImportDeclarationBuilder; |
3613 | exportNamedDeclaration: ExportNamedDeclarationBuilder; | |
3614 | exportSpecifier: ExportSpecifierBuilder; | |
3615 | exportDefaultDeclaration: ExportDefaultDeclarationBuilder; | |
3616 | exportAllDeclaration: ExportAllDeclarationBuilder; | |
3451 | 3617 | taggedTemplateExpression: TaggedTemplateExpressionBuilder; |
3452 | 3618 | templateLiteral: TemplateLiteralBuilder; |
3453 | 3619 | templateElement: TemplateElementBuilder; |
3620 | metaProperty: MetaPropertyBuilder; | |
3621 | awaitExpression: AwaitExpressionBuilder; | |
3454 | 3622 | spreadProperty: SpreadPropertyBuilder; |
3455 | 3623 | spreadPropertyPattern: SpreadPropertyPatternBuilder; |
3456 | awaitExpression: AwaitExpressionBuilder; | |
3457 | 3624 | importExpression: ImportExpressionBuilder; |
3625 | optionalMemberExpression: OptionalMemberExpressionBuilder; | |
3626 | optionalCallExpression: OptionalCallExpressionBuilder; | |
3458 | 3627 | jsxAttribute: JSXAttributeBuilder; |
3459 | 3628 | jsxIdentifier: JSXIdentifierBuilder; |
3460 | 3629 | jsxNamespacedName: JSXNamespacedNameBuilder; |
3461 | 3630 | jsxExpressionContainer: JSXExpressionContainerBuilder; |
3631 | jsxElement: JSXElementBuilder; | |
3632 | jsxFragment: JSXFragmentBuilder; | |
3462 | 3633 | jsxMemberExpression: JSXMemberExpressionBuilder; |
3463 | 3634 | jsxSpreadAttribute: JSXSpreadAttributeBuilder; |
3464 | jsxElement: JSXElementBuilder; | |
3635 | jsxEmptyExpression: JSXEmptyExpressionBuilder; | |
3636 | jsxText: JSXTextBuilder; | |
3637 | jsxSpreadChild: JSXSpreadChildBuilder; | |
3465 | 3638 | jsxOpeningElement: JSXOpeningElementBuilder; |
3466 | 3639 | jsxClosingElement: JSXClosingElementBuilder; |
3467 | jsxFragment: JSXFragmentBuilder; | |
3468 | jsxText: JSXTextBuilder; | |
3469 | 3640 | jsxOpeningFragment: JSXOpeningFragmentBuilder; |
3470 | 3641 | jsxClosingFragment: JSXClosingFragmentBuilder; |
3471 | jsxEmptyExpression: JSXEmptyExpressionBuilder; | |
3472 | jsxSpreadChild: JSXSpreadChildBuilder; | |
3642 | decorator: DecoratorBuilder; | |
3643 | privateName: PrivateNameBuilder; | |
3644 | classPrivateProperty: ClassPrivatePropertyBuilder; | |
3473 | 3645 | typeParameterDeclaration: TypeParameterDeclarationBuilder; |
3474 | 3646 | tsTypeParameterDeclaration: TSTypeParameterDeclarationBuilder; |
3475 | 3647 | typeParameterInstantiation: TypeParameterInstantiationBuilder; |
3480 | 3652 | emptyTypeAnnotation: EmptyTypeAnnotationBuilder; |
3481 | 3653 | mixedTypeAnnotation: MixedTypeAnnotationBuilder; |
3482 | 3654 | voidTypeAnnotation: VoidTypeAnnotationBuilder; |
3655 | symbolTypeAnnotation: SymbolTypeAnnotationBuilder; | |
3483 | 3656 | numberTypeAnnotation: NumberTypeAnnotationBuilder; |
3657 | bigIntTypeAnnotation: BigIntTypeAnnotationBuilder; | |
3484 | 3658 | numberLiteralTypeAnnotation: NumberLiteralTypeAnnotationBuilder; |
3485 | 3659 | numericLiteralTypeAnnotation: NumericLiteralTypeAnnotationBuilder; |
3660 | bigIntLiteralTypeAnnotation: BigIntLiteralTypeAnnotationBuilder; | |
3486 | 3661 | stringTypeAnnotation: StringTypeAnnotationBuilder; |
3487 | 3662 | stringLiteralTypeAnnotation: StringLiteralTypeAnnotationBuilder; |
3488 | 3663 | booleanTypeAnnotation: BooleanTypeAnnotationBuilder; |
3515 | 3690 | interfaceDeclaration: InterfaceDeclarationBuilder; |
3516 | 3691 | declareInterface: DeclareInterfaceBuilder; |
3517 | 3692 | typeAlias: TypeAliasBuilder; |
3693 | declareTypeAlias: DeclareTypeAliasBuilder; | |
3518 | 3694 | opaqueType: OpaqueTypeBuilder; |
3519 | declareTypeAlias: DeclareTypeAliasBuilder; | |
3520 | 3695 | declareOpaqueType: DeclareOpaqueTypeBuilder; |
3521 | 3696 | typeCastExpression: TypeCastExpressionBuilder; |
3522 | 3697 | tupleTypeAnnotation: TupleTypeAnnotationBuilder; |
3526 | 3701 | declareModule: DeclareModuleBuilder; |
3527 | 3702 | declareModuleExports: DeclareModuleExportsBuilder; |
3528 | 3703 | declareExportDeclaration: DeclareExportDeclarationBuilder; |
3529 | exportSpecifier: ExportSpecifierBuilder; | |
3530 | 3704 | exportBatchSpecifier: ExportBatchSpecifierBuilder; |
3531 | 3705 | declareExportAllDeclaration: DeclareExportAllDeclarationBuilder; |
3532 | 3706 | inferredPredicate: InferredPredicateBuilder; |
3533 | 3707 | declaredPredicate: DeclaredPredicateBuilder; |
3708 | enumDeclaration: EnumDeclarationBuilder; | |
3709 | enumBooleanBody: EnumBooleanBodyBuilder; | |
3710 | enumNumberBody: EnumNumberBodyBuilder; | |
3711 | enumStringBody: EnumStringBodyBuilder; | |
3712 | enumSymbolBody: EnumSymbolBodyBuilder; | |
3713 | enumBooleanMember: EnumBooleanMemberBuilder; | |
3714 | enumNumberMember: EnumNumberMemberBuilder; | |
3715 | enumStringMember: EnumStringMemberBuilder; | |
3716 | enumDefaultedMember: EnumDefaultedMemberBuilder; | |
3534 | 3717 | exportDeclaration: ExportDeclarationBuilder; |
3535 | 3718 | block: BlockBuilder; |
3536 | 3719 | line: LineBuilder; |
3537 | 3720 | noop: NoopBuilder; |
3538 | 3721 | doExpression: DoExpressionBuilder; |
3539 | super: SuperBuilder; | |
3540 | 3722 | bindExpression: BindExpressionBuilder; |
3541 | decorator: DecoratorBuilder; | |
3542 | metaProperty: MetaPropertyBuilder; | |
3543 | 3723 | parenthesizedExpression: ParenthesizedExpressionBuilder; |
3544 | exportDefaultDeclaration: ExportDefaultDeclarationBuilder; | |
3545 | exportNamedDeclaration: ExportNamedDeclarationBuilder; | |
3546 | 3724 | exportNamespaceSpecifier: ExportNamespaceSpecifierBuilder; |
3547 | 3725 | exportDefaultSpecifier: ExportDefaultSpecifierBuilder; |
3548 | exportAllDeclaration: ExportAllDeclarationBuilder; | |
3549 | 3726 | commentBlock: CommentBlockBuilder; |
3550 | 3727 | commentLine: CommentLineBuilder; |
3551 | 3728 | directive: DirectiveBuilder; |
3558 | 3735 | booleanLiteral: BooleanLiteralBuilder; |
3559 | 3736 | regExpLiteral: RegExpLiteralBuilder; |
3560 | 3737 | objectMethod: ObjectMethodBuilder; |
3561 | classPrivateProperty: ClassPrivatePropertyBuilder; | |
3562 | 3738 | classMethod: ClassMethodBuilder; |
3563 | 3739 | classPrivateMethod: ClassPrivateMethodBuilder; |
3564 | privateName: PrivateNameBuilder; | |
3565 | 3740 | restProperty: RestPropertyBuilder; |
3566 | 3741 | forAwaitStatement: ForAwaitStatementBuilder; |
3567 | 3742 | import: ImportBuilder; |
3596 | 3771 | tsDeclareMethod: TSDeclareMethodBuilder; |
3597 | 3772 | tsMappedType: TSMappedTypeBuilder; |
3598 | 3773 | tsTupleType: TSTupleTypeBuilder; |
3774 | tsNamedTupleMember: TSNamedTupleMemberBuilder; | |
3599 | 3775 | tsRestType: TSRestTypeBuilder; |
3600 | 3776 | tsOptionalType: TSOptionalTypeBuilder; |
3601 | 3777 | tsIndexedAccessType: TSIndexedAccessTypeBuilder; |
3622 | 3798 | tsInterfaceBody: TSInterfaceBodyBuilder; |
3623 | 3799 | tsInterfaceDeclaration: TSInterfaceDeclarationBuilder; |
3624 | 3800 | tsParameterProperty: TSParameterPropertyBuilder; |
3625 | optionalMemberExpression: OptionalMemberExpressionBuilder; | |
3626 | optionalCallExpression: OptionalCallExpressionBuilder; | |
3627 | 3801 | [builderName: string]: any; |
3628 | 3802 | }⏎ |
0 | 0 | /* !!! THIS FILE WAS AUTO-GENERATED BY `npm run gen` !!! */ |
1 | 1 | import { namedTypes } from "./namedTypes"; |
2 | export type PrintableKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.MethodDefinition | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.ImportSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.AwaitExpression | namedTypes.ImportExpression | namedTypes.JSXAttribute | namedTypes.JSXIdentifier | namedTypes.JSXNamespacedName | namedTypes.JSXExpressionContainer | namedTypes.JSXMemberExpression | namedTypes.JSXSpreadAttribute | namedTypes.JSXElement | namedTypes.JSXOpeningElement | namedTypes.JSXClosingElement | namedTypes.JSXFragment | namedTypes.JSXText | namedTypes.JSXOpeningFragment | namedTypes.JSXClosingFragment | namedTypes.JSXEmptyExpression | namedTypes.JSXSpreadChild | namedTypes.TypeParameterDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.TypeParameterInstantiation | namedTypes.TSTypeParameterInstantiation | namedTypes.ClassImplements | namedTypes.TSExpressionWithTypeArguments | namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.FunctionTypeParam | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.ObjectTypeProperty | namedTypes.ObjectTypeSpreadProperty | namedTypes.ObjectTypeIndexer | namedTypes.ObjectTypeCallProperty | namedTypes.ObjectTypeInternalSlot | namedTypes.Variance | namedTypes.QualifiedTypeIdentifier | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.InterfaceExtends | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.OpaqueType | namedTypes.DeclareTypeAlias | namedTypes.DeclareOpaqueType | namedTypes.TypeCastExpression | namedTypes.TupleTypeAnnotation | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportBatchSpecifier | namedTypes.DeclareExportAllDeclaration | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate | namedTypes.ExportDeclaration | namedTypes.Block | namedTypes.Line | namedTypes.Noop | namedTypes.DoExpression | namedTypes.Super | namedTypes.BindExpression | namedTypes.Decorator | namedTypes.MetaProperty | namedTypes.ParenthesizedExpression | namedTypes.ExportDefaultDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier | namedTypes.ExportAllDeclaration | namedTypes.CommentBlock | namedTypes.CommentLine | namedTypes.Directive | namedTypes.DirectiveLiteral | namedTypes.InterpreterDirective | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.ObjectMethod | namedTypes.ClassPrivateProperty | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.PrivateName | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSTypeParameter | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSTypePredicate | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumMember | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral | namedTypes.TSTypeAssertion | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression; | |
2 | export type PrintableKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.Super | namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.ImportExpression | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression | namedTypes.JSXAttribute | namedTypes.JSXIdentifier | namedTypes.JSXNamespacedName | namedTypes.JSXExpressionContainer | namedTypes.JSXElement | namedTypes.JSXFragment | namedTypes.JSXMemberExpression | namedTypes.JSXSpreadAttribute | namedTypes.JSXEmptyExpression | namedTypes.JSXText | namedTypes.JSXSpreadChild | namedTypes.JSXOpeningElement | namedTypes.JSXClosingElement | namedTypes.JSXOpeningFragment | namedTypes.JSXClosingFragment | namedTypes.Decorator | namedTypes.PrivateName | namedTypes.ClassPrivateProperty | namedTypes.TypeParameterDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.TypeParameterInstantiation | namedTypes.TSTypeParameterInstantiation | namedTypes.ClassImplements | namedTypes.TSExpressionWithTypeArguments | namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.FunctionTypeParam | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.ObjectTypeProperty | namedTypes.ObjectTypeSpreadProperty | namedTypes.ObjectTypeIndexer | namedTypes.ObjectTypeCallProperty | namedTypes.ObjectTypeInternalSlot | namedTypes.Variance | namedTypes.QualifiedTypeIdentifier | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.InterfaceExtends | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.TypeCastExpression | namedTypes.TupleTypeAnnotation | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.ExportBatchSpecifier | namedTypes.DeclareExportAllDeclaration | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.Block | namedTypes.Line | namedTypes.Noop | namedTypes.DoExpression | namedTypes.BindExpression | namedTypes.ParenthesizedExpression | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier | namedTypes.CommentBlock | namedTypes.CommentLine | namedTypes.Directive | namedTypes.DirectiveLiteral | namedTypes.InterpreterDirective | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.ObjectMethod | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSTypeParameter | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSNamedTupleMember | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSTypePredicate | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumMember | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral | namedTypes.TSTypeAssertion | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty; | |
3 | 3 | export type SourceLocationKind = namedTypes.SourceLocation; |
4 | export type NodeKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.MethodDefinition | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.ImportSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.AwaitExpression | namedTypes.ImportExpression | namedTypes.JSXAttribute | namedTypes.JSXIdentifier | namedTypes.JSXNamespacedName | namedTypes.JSXExpressionContainer | namedTypes.JSXMemberExpression | namedTypes.JSXSpreadAttribute | namedTypes.JSXElement | namedTypes.JSXOpeningElement | namedTypes.JSXClosingElement | namedTypes.JSXFragment | namedTypes.JSXText | namedTypes.JSXOpeningFragment | namedTypes.JSXClosingFragment | namedTypes.JSXEmptyExpression | namedTypes.JSXSpreadChild | namedTypes.TypeParameterDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.TypeParameterInstantiation | namedTypes.TSTypeParameterInstantiation | namedTypes.ClassImplements | namedTypes.TSExpressionWithTypeArguments | namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.FunctionTypeParam | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.ObjectTypeProperty | namedTypes.ObjectTypeSpreadProperty | namedTypes.ObjectTypeIndexer | namedTypes.ObjectTypeCallProperty | namedTypes.ObjectTypeInternalSlot | namedTypes.Variance | namedTypes.QualifiedTypeIdentifier | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.InterfaceExtends | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.OpaqueType | namedTypes.DeclareTypeAlias | namedTypes.DeclareOpaqueType | namedTypes.TypeCastExpression | namedTypes.TupleTypeAnnotation | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportBatchSpecifier | namedTypes.DeclareExportAllDeclaration | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate | namedTypes.ExportDeclaration | namedTypes.Noop | namedTypes.DoExpression | namedTypes.Super | namedTypes.BindExpression | namedTypes.Decorator | namedTypes.MetaProperty | namedTypes.ParenthesizedExpression | namedTypes.ExportDefaultDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier | namedTypes.ExportAllDeclaration | namedTypes.Directive | namedTypes.DirectiveLiteral | namedTypes.InterpreterDirective | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.ObjectMethod | namedTypes.ClassPrivateProperty | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.PrivateName | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSTypeParameter | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSTypePredicate | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumMember | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral | namedTypes.TSTypeAssertion | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression; | |
4 | export type NodeKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.Super | namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.ImportExpression | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression | namedTypes.JSXAttribute | namedTypes.JSXIdentifier | namedTypes.JSXNamespacedName | namedTypes.JSXExpressionContainer | namedTypes.JSXElement | namedTypes.JSXFragment | namedTypes.JSXMemberExpression | namedTypes.JSXSpreadAttribute | namedTypes.JSXEmptyExpression | namedTypes.JSXText | namedTypes.JSXSpreadChild | namedTypes.JSXOpeningElement | namedTypes.JSXClosingElement | namedTypes.JSXOpeningFragment | namedTypes.JSXClosingFragment | namedTypes.Decorator | namedTypes.PrivateName | namedTypes.ClassPrivateProperty | namedTypes.TypeParameterDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.TypeParameterInstantiation | namedTypes.TSTypeParameterInstantiation | namedTypes.ClassImplements | namedTypes.TSExpressionWithTypeArguments | namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.FunctionTypeParam | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.ObjectTypeProperty | namedTypes.ObjectTypeSpreadProperty | namedTypes.ObjectTypeIndexer | namedTypes.ObjectTypeCallProperty | namedTypes.ObjectTypeInternalSlot | namedTypes.Variance | namedTypes.QualifiedTypeIdentifier | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.InterfaceExtends | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.TypeCastExpression | namedTypes.TupleTypeAnnotation | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.ExportBatchSpecifier | namedTypes.DeclareExportAllDeclaration | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.Noop | namedTypes.DoExpression | namedTypes.BindExpression | namedTypes.ParenthesizedExpression | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier | namedTypes.Directive | namedTypes.DirectiveLiteral | namedTypes.InterpreterDirective | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.ObjectMethod | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSTypeParameter | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSNamedTupleMember | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSTypePredicate | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumMember | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral | namedTypes.TSTypeAssertion | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty; | |
5 | 5 | export type CommentKind = namedTypes.Block | namedTypes.Line | namedTypes.CommentBlock | namedTypes.CommentLine; |
6 | 6 | export type PositionKind = namedTypes.Position; |
7 | 7 | export type FileKind = namedTypes.File; |
8 | 8 | export type ProgramKind = namedTypes.Program; |
9 | export type StatementKind = namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.ForOfStatement | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.OpaqueType | namedTypes.DeclareTypeAlias | namedTypes.DeclareOpaqueType | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.ExportDeclaration | namedTypes.Noop | namedTypes.ExportDefaultDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportAllDeclaration | namedTypes.ClassPrivateProperty | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.ForAwaitStatement | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration; | |
9 | export type StatementKind = namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.ForOfStatement | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.ClassPrivateProperty | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.Noop | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.ForAwaitStatement | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration; | |
10 | 10 | export type FunctionKind = namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.ArrowFunctionExpression | namedTypes.ObjectMethod | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod; |
11 | export type ExpressionKind = namedTypes.Identifier | namedTypes.FunctionExpression | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.ArrowFunctionExpression | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionExpression | namedTypes.ClassExpression | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.AwaitExpression | namedTypes.ImportExpression | namedTypes.JSXIdentifier | namedTypes.JSXExpressionContainer | namedTypes.JSXMemberExpression | namedTypes.JSXElement | namedTypes.JSXFragment | namedTypes.JSXText | namedTypes.JSXEmptyExpression | namedTypes.JSXSpreadChild | namedTypes.TypeCastExpression | namedTypes.DoExpression | namedTypes.Super | namedTypes.BindExpression | namedTypes.MetaProperty | namedTypes.ParenthesizedExpression | namedTypes.DirectiveLiteral | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.PrivateName | namedTypes.Import | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSTypeParameter | namedTypes.TSTypeAssertion | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression; | |
11 | export type ExpressionKind = namedTypes.Identifier | namedTypes.FunctionExpression | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.ArrowFunctionExpression | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionExpression | namedTypes.ClassExpression | namedTypes.Super | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.ImportExpression | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression | namedTypes.JSXIdentifier | namedTypes.JSXExpressionContainer | namedTypes.JSXElement | namedTypes.JSXFragment | namedTypes.JSXMemberExpression | namedTypes.JSXText | namedTypes.PrivateName | namedTypes.TypeCastExpression | namedTypes.DoExpression | namedTypes.BindExpression | namedTypes.ParenthesizedExpression | namedTypes.DirectiveLiteral | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.Import | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSTypeParameter | namedTypes.TSTypeAssertion; | |
12 | 12 | export type PatternKind = namedTypes.Identifier | namedTypes.RestElement | namedTypes.SpreadElementPattern | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.AssignmentPattern | namedTypes.SpreadPropertyPattern | namedTypes.JSXIdentifier | namedTypes.PrivateName | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSTypeParameter | namedTypes.TSTypeAssertion | namedTypes.TSParameterProperty; |
13 | 13 | export type IdentifierKind = namedTypes.Identifier | namedTypes.JSXIdentifier | namedTypes.TSTypeParameter; |
14 | 14 | export type BlockStatementKind = namedTypes.BlockStatement; |
28 | 28 | export type WhileStatementKind = namedTypes.WhileStatement; |
29 | 29 | export type DoWhileStatementKind = namedTypes.DoWhileStatement; |
30 | 30 | export type ForStatementKind = namedTypes.ForStatement; |
31 | export type DeclarationKind = namedTypes.VariableDeclaration | namedTypes.FunctionDeclaration | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.OpaqueType | namedTypes.DeclareTypeAlias | namedTypes.DeclareOpaqueType | namedTypes.DeclareClass | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.ExportDeclaration | namedTypes.ExportDefaultDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportAllDeclaration | namedTypes.ClassPrivateProperty | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration; | |
31 | export type DeclarationKind = namedTypes.VariableDeclaration | namedTypes.FunctionDeclaration | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.ClassPrivateProperty | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.DeclareClass | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration; | |
32 | 32 | export type VariableDeclarationKind = namedTypes.VariableDeclaration; |
33 | 33 | export type ForInStatementKind = namedTypes.ForInStatement; |
34 | 34 | export type DebuggerStatementKind = namedTypes.DebuggerStatement; |
44 | 44 | export type UnaryExpressionKind = namedTypes.UnaryExpression; |
45 | 45 | export type BinaryExpressionKind = namedTypes.BinaryExpression; |
46 | 46 | export type AssignmentExpressionKind = namedTypes.AssignmentExpression; |
47 | export type MemberExpressionKind = namedTypes.MemberExpression | namedTypes.JSXMemberExpression | namedTypes.OptionalMemberExpression; | |
47 | export type MemberExpressionKind = namedTypes.MemberExpression | namedTypes.OptionalMemberExpression | namedTypes.JSXMemberExpression; | |
48 | 48 | export type UpdateExpressionKind = namedTypes.UpdateExpression; |
49 | 49 | export type LogicalExpressionKind = namedTypes.LogicalExpression; |
50 | 50 | export type ConditionalExpressionKind = namedTypes.ConditionalExpression; |
64 | 64 | export type PropertyPatternKind = namedTypes.PropertyPattern; |
65 | 65 | export type ObjectPatternKind = namedTypes.ObjectPattern; |
66 | 66 | export type ArrayPatternKind = namedTypes.ArrayPattern; |
67 | export type MethodDefinitionKind = namedTypes.MethodDefinition; | |
68 | 67 | export type SpreadElementKind = namedTypes.SpreadElement; |
69 | 68 | export type AssignmentPatternKind = namedTypes.AssignmentPattern; |
69 | export type MethodDefinitionKind = namedTypes.MethodDefinition; | |
70 | 70 | export type ClassPropertyDefinitionKind = namedTypes.ClassPropertyDefinition; |
71 | 71 | export type ClassPropertyKind = namedTypes.ClassProperty | namedTypes.ClassPrivateProperty; |
72 | 72 | export type ClassBodyKind = namedTypes.ClassBody; |
73 | 73 | export type ClassDeclarationKind = namedTypes.ClassDeclaration; |
74 | 74 | export type ClassExpressionKind = namedTypes.ClassExpression; |
75 | export type SpecifierKind = namedTypes.ImportSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ExportSpecifier | namedTypes.ExportBatchSpecifier | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier; | |
76 | export type ModuleSpecifierKind = namedTypes.ImportSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ExportSpecifier; | |
75 | export type SuperKind = namedTypes.Super; | |
76 | export type SpecifierKind = namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ExportSpecifier | namedTypes.ExportBatchSpecifier | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier; | |
77 | export type ModuleSpecifierKind = namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ExportSpecifier; | |
77 | 78 | export type ImportSpecifierKind = namedTypes.ImportSpecifier; |
79 | export type ImportDefaultSpecifierKind = namedTypes.ImportDefaultSpecifier; | |
78 | 80 | export type ImportNamespaceSpecifierKind = namedTypes.ImportNamespaceSpecifier; |
79 | export type ImportDefaultSpecifierKind = namedTypes.ImportDefaultSpecifier; | |
80 | 81 | export type ImportDeclarationKind = namedTypes.ImportDeclaration; |
82 | export type ExportNamedDeclarationKind = namedTypes.ExportNamedDeclaration; | |
83 | export type ExportSpecifierKind = namedTypes.ExportSpecifier; | |
84 | export type ExportDefaultDeclarationKind = namedTypes.ExportDefaultDeclaration; | |
85 | export type ExportAllDeclarationKind = namedTypes.ExportAllDeclaration; | |
81 | 86 | export type TaggedTemplateExpressionKind = namedTypes.TaggedTemplateExpression; |
82 | 87 | export type TemplateLiteralKind = namedTypes.TemplateLiteral; |
83 | 88 | export type TemplateElementKind = namedTypes.TemplateElement; |
89 | export type MetaPropertyKind = namedTypes.MetaProperty; | |
90 | export type AwaitExpressionKind = namedTypes.AwaitExpression; | |
84 | 91 | export type SpreadPropertyKind = namedTypes.SpreadProperty; |
85 | 92 | export type SpreadPropertyPatternKind = namedTypes.SpreadPropertyPattern; |
86 | export type AwaitExpressionKind = namedTypes.AwaitExpression; | |
87 | 93 | export type ImportExpressionKind = namedTypes.ImportExpression; |
94 | export type OptionalMemberExpressionKind = namedTypes.OptionalMemberExpression; | |
95 | export type OptionalCallExpressionKind = namedTypes.OptionalCallExpression; | |
88 | 96 | export type JSXAttributeKind = namedTypes.JSXAttribute; |
89 | 97 | export type JSXIdentifierKind = namedTypes.JSXIdentifier; |
90 | 98 | export type JSXNamespacedNameKind = namedTypes.JSXNamespacedName; |
91 | 99 | export type JSXExpressionContainerKind = namedTypes.JSXExpressionContainer; |
100 | export type JSXElementKind = namedTypes.JSXElement; | |
101 | export type JSXFragmentKind = namedTypes.JSXFragment; | |
92 | 102 | export type JSXMemberExpressionKind = namedTypes.JSXMemberExpression; |
93 | 103 | export type JSXSpreadAttributeKind = namedTypes.JSXSpreadAttribute; |
94 | export type JSXElementKind = namedTypes.JSXElement; | |
104 | export type JSXEmptyExpressionKind = namedTypes.JSXEmptyExpression; | |
105 | export type JSXTextKind = namedTypes.JSXText; | |
106 | export type JSXSpreadChildKind = namedTypes.JSXSpreadChild; | |
95 | 107 | export type JSXOpeningElementKind = namedTypes.JSXOpeningElement; |
96 | 108 | export type JSXClosingElementKind = namedTypes.JSXClosingElement; |
97 | export type JSXFragmentKind = namedTypes.JSXFragment; | |
98 | export type JSXTextKind = namedTypes.JSXText; | |
99 | 109 | export type JSXOpeningFragmentKind = namedTypes.JSXOpeningFragment; |
100 | 110 | export type JSXClosingFragmentKind = namedTypes.JSXClosingFragment; |
101 | export type JSXEmptyExpressionKind = namedTypes.JSXEmptyExpression; | |
102 | export type JSXSpreadChildKind = namedTypes.JSXSpreadChild; | |
111 | export type DecoratorKind = namedTypes.Decorator; | |
112 | export type PrivateNameKind = namedTypes.PrivateName; | |
113 | export type ClassPrivatePropertyKind = namedTypes.ClassPrivateProperty; | |
103 | 114 | export type TypeParameterDeclarationKind = namedTypes.TypeParameterDeclaration; |
104 | 115 | export type TSTypeParameterDeclarationKind = namedTypes.TSTypeParameterDeclaration; |
105 | 116 | export type TypeParameterInstantiationKind = namedTypes.TypeParameterInstantiation; |
106 | 117 | export type TSTypeParameterInstantiationKind = namedTypes.TSTypeParameterInstantiation; |
107 | 118 | export type ClassImplementsKind = namedTypes.ClassImplements; |
108 | export type TSTypeKind = namedTypes.TSExpressionWithTypeArguments | namedTypes.TSTypeReference | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral; | |
119 | export type TSTypeKind = namedTypes.TSExpressionWithTypeArguments | namedTypes.TSTypeReference | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSNamedTupleMember | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSTypePredicate | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral; | |
109 | 120 | export type TSHasOptionalTypeParameterInstantiationKind = namedTypes.TSExpressionWithTypeArguments | namedTypes.TSTypeReference | namedTypes.TSImportType; |
110 | 121 | export type TSExpressionWithTypeArgumentsKind = namedTypes.TSExpressionWithTypeArguments; |
111 | export type FlowKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate; | |
112 | export type FlowTypeKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation; | |
122 | export type FlowKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate; | |
123 | export type FlowTypeKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation; | |
113 | 124 | export type AnyTypeAnnotationKind = namedTypes.AnyTypeAnnotation; |
114 | 125 | export type EmptyTypeAnnotationKind = namedTypes.EmptyTypeAnnotation; |
115 | 126 | export type MixedTypeAnnotationKind = namedTypes.MixedTypeAnnotation; |
116 | 127 | export type VoidTypeAnnotationKind = namedTypes.VoidTypeAnnotation; |
128 | export type SymbolTypeAnnotationKind = namedTypes.SymbolTypeAnnotation; | |
117 | 129 | export type NumberTypeAnnotationKind = namedTypes.NumberTypeAnnotation; |
130 | export type BigIntTypeAnnotationKind = namedTypes.BigIntTypeAnnotation; | |
118 | 131 | export type NumberLiteralTypeAnnotationKind = namedTypes.NumberLiteralTypeAnnotation; |
119 | 132 | export type NumericLiteralTypeAnnotationKind = namedTypes.NumericLiteralTypeAnnotation; |
133 | export type BigIntLiteralTypeAnnotationKind = namedTypes.BigIntLiteralTypeAnnotation; | |
120 | 134 | export type StringTypeAnnotationKind = namedTypes.StringTypeAnnotation; |
121 | 135 | export type StringLiteralTypeAnnotationKind = namedTypes.StringLiteralTypeAnnotation; |
122 | 136 | export type BooleanTypeAnnotationKind = namedTypes.BooleanTypeAnnotation; |
148 | 162 | export type InterfaceExtendsKind = namedTypes.InterfaceExtends; |
149 | 163 | export type InterfaceDeclarationKind = namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.DeclareClass; |
150 | 164 | export type DeclareInterfaceKind = namedTypes.DeclareInterface; |
151 | export type TypeAliasKind = namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.DeclareOpaqueType; | |
152 | export type OpaqueTypeKind = namedTypes.OpaqueType; | |
165 | export type TypeAliasKind = namedTypes.TypeAlias | namedTypes.DeclareTypeAlias; | |
153 | 166 | export type DeclareTypeAliasKind = namedTypes.DeclareTypeAlias; |
167 | export type OpaqueTypeKind = namedTypes.OpaqueType | namedTypes.DeclareOpaqueType; | |
154 | 168 | export type DeclareOpaqueTypeKind = namedTypes.DeclareOpaqueType; |
155 | 169 | export type TypeCastExpressionKind = namedTypes.TypeCastExpression; |
156 | 170 | export type TupleTypeAnnotationKind = namedTypes.TupleTypeAnnotation; |
157 | 171 | export type DeclareVariableKind = namedTypes.DeclareVariable; |
158 | 172 | export type DeclareFunctionKind = namedTypes.DeclareFunction; |
173 | export type FlowPredicateKind = namedTypes.InferredPredicate | namedTypes.DeclaredPredicate; | |
159 | 174 | export type DeclareClassKind = namedTypes.DeclareClass; |
160 | 175 | export type DeclareModuleKind = namedTypes.DeclareModule; |
161 | 176 | export type DeclareModuleExportsKind = namedTypes.DeclareModuleExports; |
162 | 177 | export type DeclareExportDeclarationKind = namedTypes.DeclareExportDeclaration; |
163 | export type ExportSpecifierKind = namedTypes.ExportSpecifier; | |
164 | 178 | export type ExportBatchSpecifierKind = namedTypes.ExportBatchSpecifier; |
165 | 179 | export type DeclareExportAllDeclarationKind = namedTypes.DeclareExportAllDeclaration; |
166 | export type FlowPredicateKind = namedTypes.InferredPredicate | namedTypes.DeclaredPredicate; | |
167 | 180 | export type InferredPredicateKind = namedTypes.InferredPredicate; |
168 | 181 | export type DeclaredPredicateKind = namedTypes.DeclaredPredicate; |
182 | export type EnumDeclarationKind = namedTypes.EnumDeclaration; | |
183 | export type EnumBooleanBodyKind = namedTypes.EnumBooleanBody; | |
184 | export type EnumNumberBodyKind = namedTypes.EnumNumberBody; | |
185 | export type EnumStringBodyKind = namedTypes.EnumStringBody; | |
186 | export type EnumSymbolBodyKind = namedTypes.EnumSymbolBody; | |
187 | export type EnumBooleanMemberKind = namedTypes.EnumBooleanMember; | |
188 | export type EnumNumberMemberKind = namedTypes.EnumNumberMember; | |
189 | export type EnumStringMemberKind = namedTypes.EnumStringMember; | |
190 | export type EnumDefaultedMemberKind = namedTypes.EnumDefaultedMember; | |
169 | 191 | export type ExportDeclarationKind = namedTypes.ExportDeclaration; |
170 | 192 | export type BlockKind = namedTypes.Block; |
171 | 193 | export type LineKind = namedTypes.Line; |
172 | 194 | export type NoopKind = namedTypes.Noop; |
173 | 195 | export type DoExpressionKind = namedTypes.DoExpression; |
174 | export type SuperKind = namedTypes.Super; | |
175 | 196 | export type BindExpressionKind = namedTypes.BindExpression; |
176 | export type DecoratorKind = namedTypes.Decorator; | |
177 | export type MetaPropertyKind = namedTypes.MetaProperty; | |
178 | 197 | export type ParenthesizedExpressionKind = namedTypes.ParenthesizedExpression; |
179 | export type ExportDefaultDeclarationKind = namedTypes.ExportDefaultDeclaration; | |
180 | export type ExportNamedDeclarationKind = namedTypes.ExportNamedDeclaration; | |
181 | 198 | export type ExportNamespaceSpecifierKind = namedTypes.ExportNamespaceSpecifier; |
182 | 199 | export type ExportDefaultSpecifierKind = namedTypes.ExportDefaultSpecifier; |
183 | export type ExportAllDeclarationKind = namedTypes.ExportAllDeclaration; | |
184 | 200 | export type CommentBlockKind = namedTypes.CommentBlock; |
185 | 201 | export type CommentLineKind = namedTypes.CommentLine; |
186 | 202 | export type DirectiveKind = namedTypes.Directive; |
193 | 209 | export type BooleanLiteralKind = namedTypes.BooleanLiteral; |
194 | 210 | export type RegExpLiteralKind = namedTypes.RegExpLiteral; |
195 | 211 | export type ObjectMethodKind = namedTypes.ObjectMethod; |
196 | export type ClassPrivatePropertyKind = namedTypes.ClassPrivateProperty; | |
197 | 212 | export type ClassMethodKind = namedTypes.ClassMethod; |
198 | 213 | export type ClassPrivateMethodKind = namedTypes.ClassPrivateMethod; |
199 | export type PrivateNameKind = namedTypes.PrivateName; | |
200 | 214 | export type RestPropertyKind = namedTypes.RestProperty; |
201 | 215 | export type ForAwaitStatementKind = namedTypes.ForAwaitStatement; |
202 | 216 | export type ImportKind = namedTypes.Import; |
233 | 247 | export type TSDeclareMethodKind = namedTypes.TSDeclareMethod; |
234 | 248 | export type TSMappedTypeKind = namedTypes.TSMappedType; |
235 | 249 | export type TSTupleTypeKind = namedTypes.TSTupleType; |
250 | export type TSNamedTupleMemberKind = namedTypes.TSNamedTupleMember; | |
236 | 251 | export type TSRestTypeKind = namedTypes.TSRestType; |
237 | 252 | export type TSOptionalTypeKind = namedTypes.TSOptionalType; |
238 | 253 | export type TSIndexedAccessTypeKind = namedTypes.TSIndexedAccessType; |
258 | 273 | export type TSNamespaceExportDeclarationKind = namedTypes.TSNamespaceExportDeclaration; |
259 | 274 | export type TSInterfaceBodyKind = namedTypes.TSInterfaceBody; |
260 | 275 | export type TSInterfaceDeclarationKind = namedTypes.TSInterfaceDeclaration; |
261 | export type TSParameterPropertyKind = namedTypes.TSParameterProperty; | |
262 | export type OptionalMemberExpressionKind = namedTypes.OptionalMemberExpression; | |
263 | export type OptionalCallExpressionKind = namedTypes.OptionalCallExpression;⏎ | |
276 | export type TSParameterPropertyKind = namedTypes.TSParameterProperty;⏎ |
55 | 55 | rest?: K.IdentifierKind | null; |
56 | 56 | returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; |
57 | 57 | typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; |
58 | predicate?: K.FlowPredicateKind | null; | |
58 | 59 | } |
59 | 60 | |
60 | 61 | export interface Expression extends Node {} |
191 | 192 | |
192 | 193 | export interface FunctionDeclaration extends Omit<Function, "type" | "id">, Omit<Declaration, "type"> { |
193 | 194 | type: "FunctionDeclaration"; |
194 | id: K.IdentifierKind; | |
195 | id: K.IdentifierKind | null; | |
195 | 196 | } |
196 | 197 | |
197 | 198 | export interface FunctionExpression extends Omit<Function, "type">, Omit<Expression, "type"> { |
252 | 253 | |
253 | 254 | export interface BinaryExpression extends Omit<Expression, "type"> { |
254 | 255 | type: "BinaryExpression"; |
255 | operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "in" | "instanceof"; | |
256 | operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "&" | "|" | "^" | "in" | "instanceof" | "**"; | |
256 | 257 | left: K.ExpressionKind; |
257 | 258 | right: K.ExpressionKind; |
258 | 259 | } |
259 | 260 | |
260 | 261 | export interface AssignmentExpression extends Omit<Expression, "type"> { |
261 | 262 | type: "AssignmentExpression"; |
262 | operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&="; | |
263 | operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**="; | |
263 | 264 | left: K.PatternKind | K.MemberExpressionKind; |
264 | 265 | right: K.ExpressionKind; |
265 | 266 | } |
339 | 340 | left: K.VariableDeclarationKind | K.PatternKind; |
340 | 341 | right: K.ExpressionKind; |
341 | 342 | body: K.StatementKind; |
343 | await?: boolean; | |
342 | 344 | } |
343 | 345 | |
344 | 346 | export interface YieldExpression extends Omit<Expression, "type"> { |
394 | 396 | export interface ArrayPattern extends Omit<Pattern, "type"> { |
395 | 397 | type: "ArrayPattern"; |
396 | 398 | elements: (K.PatternKind | K.SpreadElementKind | null)[]; |
399 | } | |
400 | ||
401 | export interface SpreadElement extends Omit<Node, "type"> { | |
402 | type: "SpreadElement"; | |
403 | argument: K.ExpressionKind; | |
404 | } | |
405 | ||
406 | export interface AssignmentPattern extends Omit<Pattern, "type"> { | |
407 | type: "AssignmentPattern"; | |
408 | left: K.PatternKind; | |
409 | right: K.ExpressionKind; | |
397 | 410 | } |
398 | 411 | |
399 | 412 | export interface MethodDefinition extends Omit<Declaration, "type"> { |
404 | 417 | computed?: boolean; |
405 | 418 | static?: boolean; |
406 | 419 | decorators?: K.DecoratorKind[] | null; |
407 | } | |
408 | ||
409 | export interface SpreadElement extends Omit<Node, "type"> { | |
410 | type: "SpreadElement"; | |
411 | argument: K.ExpressionKind; | |
412 | } | |
413 | ||
414 | export interface AssignmentPattern extends Omit<Pattern, "type"> { | |
415 | type: "AssignmentPattern"; | |
416 | left: K.PatternKind; | |
417 | right: K.ExpressionKind; | |
418 | 420 | } |
419 | 421 | |
420 | 422 | export interface ClassPropertyDefinition extends Omit<Declaration, "type"> { |
458 | 460 | implements?: K.ClassImplementsKind[] | K.TSExpressionWithTypeArgumentsKind[]; |
459 | 461 | } |
460 | 462 | |
463 | export interface Super extends Omit<Expression, "type"> { | |
464 | type: "Super"; | |
465 | } | |
466 | ||
461 | 467 | export interface Specifier extends Node {} |
462 | 468 | |
463 | 469 | export interface ModuleSpecifier extends Specifier { |
471 | 477 | imported: K.IdentifierKind; |
472 | 478 | } |
473 | 479 | |
480 | export interface ImportDefaultSpecifier extends Omit<ModuleSpecifier, "type"> { | |
481 | type: "ImportDefaultSpecifier"; | |
482 | } | |
483 | ||
474 | 484 | export interface ImportNamespaceSpecifier extends Omit<ModuleSpecifier, "type"> { |
475 | 485 | type: "ImportNamespaceSpecifier"; |
476 | } | |
477 | ||
478 | export interface ImportDefaultSpecifier extends Omit<ModuleSpecifier, "type"> { | |
479 | type: "ImportDefaultSpecifier"; | |
480 | 486 | } |
481 | 487 | |
482 | 488 | export interface ImportDeclaration extends Omit<Declaration, "type"> { |
483 | 489 | type: "ImportDeclaration"; |
484 | 490 | specifiers?: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[]; |
485 | 491 | source: K.LiteralKind; |
486 | importKind?: "value" | "type"; | |
492 | importKind?: "value" | "type" | "typeof"; | |
493 | } | |
494 | ||
495 | export interface ExportNamedDeclaration extends Omit<Declaration, "type"> { | |
496 | type: "ExportNamedDeclaration"; | |
497 | declaration: K.DeclarationKind | null; | |
498 | specifiers?: K.ExportSpecifierKind[]; | |
499 | source?: K.LiteralKind | null; | |
500 | } | |
501 | ||
502 | export interface ExportSpecifier extends Omit<ModuleSpecifier, "type"> { | |
503 | type: "ExportSpecifier"; | |
504 | exported: K.IdentifierKind; | |
505 | } | |
506 | ||
507 | export interface ExportDefaultDeclaration extends Omit<Declaration, "type"> { | |
508 | type: "ExportDefaultDeclaration"; | |
509 | declaration: K.DeclarationKind | K.ExpressionKind; | |
510 | } | |
511 | ||
512 | export interface ExportAllDeclaration extends Omit<Declaration, "type"> { | |
513 | type: "ExportAllDeclaration"; | |
514 | source: K.LiteralKind; | |
515 | exported: K.IdentifierKind | null; | |
487 | 516 | } |
488 | 517 | |
489 | 518 | export interface TaggedTemplateExpression extends Omit<Expression, "type"> { |
501 | 530 | export interface TemplateElement extends Omit<Node, "type"> { |
502 | 531 | type: "TemplateElement"; |
503 | 532 | value: { |
504 | cooked: string, | |
533 | cooked: string | null, | |
505 | 534 | raw: string |
506 | 535 | }; |
507 | 536 | tail: boolean; |
508 | 537 | } |
509 | 538 | |
510 | export interface SpreadProperty extends Omit<Node, "type"> { | |
511 | type: "SpreadProperty"; | |
512 | argument: K.ExpressionKind; | |
513 | } | |
514 | ||
515 | export interface SpreadPropertyPattern extends Omit<Pattern, "type"> { | |
516 | type: "SpreadPropertyPattern"; | |
517 | argument: K.PatternKind; | |
539 | export interface MetaProperty extends Omit<Expression, "type"> { | |
540 | type: "MetaProperty"; | |
541 | meta: K.IdentifierKind; | |
542 | property: K.IdentifierKind; | |
518 | 543 | } |
519 | 544 | |
520 | 545 | export interface AwaitExpression extends Omit<Expression, "type"> { |
523 | 548 | all?: boolean; |
524 | 549 | } |
525 | 550 | |
551 | export interface SpreadProperty extends Omit<Node, "type"> { | |
552 | type: "SpreadProperty"; | |
553 | argument: K.ExpressionKind; | |
554 | } | |
555 | ||
556 | export interface SpreadPropertyPattern extends Omit<Pattern, "type"> { | |
557 | type: "SpreadPropertyPattern"; | |
558 | argument: K.PatternKind; | |
559 | } | |
560 | ||
526 | 561 | export interface ImportExpression extends Omit<Expression, "type"> { |
527 | 562 | type: "ImportExpression"; |
528 | 563 | source: K.ExpressionKind; |
529 | 564 | } |
530 | 565 | |
566 | export interface OptionalMemberExpression extends Omit<MemberExpression, "type"> { | |
567 | type: "OptionalMemberExpression"; | |
568 | optional?: boolean; | |
569 | } | |
570 | ||
571 | export interface OptionalCallExpression extends Omit<CallExpression, "type"> { | |
572 | type: "OptionalCallExpression"; | |
573 | optional?: boolean; | |
574 | } | |
575 | ||
531 | 576 | export interface JSXAttribute extends Omit<Node, "type"> { |
532 | 577 | type: "JSXAttribute"; |
533 | 578 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind; |
534 | value?: K.LiteralKind | K.JSXExpressionContainerKind | null; | |
579 | value?: K.LiteralKind | K.JSXExpressionContainerKind | K.JSXElementKind | K.JSXFragmentKind | null; | |
535 | 580 | } |
536 | 581 | |
537 | 582 | export interface JSXIdentifier extends Omit<Identifier, "type" | "name"> { |
547 | 592 | |
548 | 593 | export interface JSXExpressionContainer extends Omit<Expression, "type"> { |
549 | 594 | type: "JSXExpressionContainer"; |
550 | expression: K.ExpressionKind; | |
595 | expression: K.ExpressionKind | K.JSXEmptyExpressionKind; | |
596 | } | |
597 | ||
598 | export interface JSXElement extends Omit<Expression, "type"> { | |
599 | type: "JSXElement"; | |
600 | openingElement: K.JSXOpeningElementKind; | |
601 | closingElement?: K.JSXClosingElementKind | null; | |
602 | children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[]; | |
603 | name?: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind; | |
604 | selfClosing?: boolean; | |
605 | attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[]; | |
606 | } | |
607 | ||
608 | export interface JSXFragment extends Omit<Expression, "type"> { | |
609 | type: "JSXFragment"; | |
610 | openingFragment: K.JSXOpeningFragmentKind; | |
611 | closingFragment: K.JSXClosingFragmentKind; | |
612 | children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[]; | |
551 | 613 | } |
552 | 614 | |
553 | 615 | export interface JSXMemberExpression extends Omit<MemberExpression, "type" | "object" | "property" | "computed"> { |
562 | 624 | argument: K.ExpressionKind; |
563 | 625 | } |
564 | 626 | |
565 | export interface JSXElement extends Omit<Expression, "type"> { | |
566 | type: "JSXElement"; | |
567 | openingElement: K.JSXOpeningElementKind; | |
568 | closingElement?: K.JSXClosingElementKind | null; | |
569 | children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]; | |
570 | name?: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind; | |
571 | selfClosing?: boolean; | |
572 | attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[]; | |
627 | export interface JSXEmptyExpression extends Omit<Node, "type"> { | |
628 | type: "JSXEmptyExpression"; | |
629 | } | |
630 | ||
631 | export interface JSXText extends Omit<Literal, "type" | "value"> { | |
632 | type: "JSXText"; | |
633 | value: string; | |
634 | raw?: string; | |
635 | } | |
636 | ||
637 | export interface JSXSpreadChild extends Omit<Node, "type"> { | |
638 | type: "JSXSpreadChild"; | |
639 | expression: K.ExpressionKind; | |
573 | 640 | } |
574 | 641 | |
575 | 642 | export interface JSXOpeningElement extends Omit<Node, "type"> { |
584 | 651 | name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind; |
585 | 652 | } |
586 | 653 | |
587 | export interface JSXFragment extends Omit<Expression, "type"> { | |
588 | type: "JSXFragment"; | |
589 | openingElement: K.JSXOpeningFragmentKind; | |
590 | closingElement: K.JSXClosingFragmentKind; | |
591 | children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]; | |
592 | } | |
593 | ||
594 | export interface JSXText extends Omit<Literal, "type" | "value"> { | |
595 | type: "JSXText"; | |
596 | value: string; | |
597 | } | |
598 | ||
599 | 654 | export interface JSXOpeningFragment extends Omit<Node, "type"> { |
600 | 655 | type: "JSXOpeningFragment"; |
601 | 656 | } |
604 | 659 | type: "JSXClosingFragment"; |
605 | 660 | } |
606 | 661 | |
607 | export interface JSXEmptyExpression extends Omit<Expression, "type"> { | |
608 | type: "JSXEmptyExpression"; | |
609 | } | |
610 | ||
611 | export interface JSXSpreadChild extends Omit<Expression, "type"> { | |
612 | type: "JSXSpreadChild"; | |
662 | export interface Decorator extends Omit<Node, "type"> { | |
663 | type: "Decorator"; | |
613 | 664 | expression: K.ExpressionKind; |
665 | } | |
666 | ||
667 | export interface PrivateName extends Omit<Expression, "type">, Omit<Pattern, "type"> { | |
668 | type: "PrivateName"; | |
669 | id: K.IdentifierKind; | |
670 | } | |
671 | ||
672 | export interface ClassPrivateProperty extends Omit<ClassProperty, "type" | "key" | "value"> { | |
673 | type: "ClassPrivateProperty"; | |
674 | key: K.PrivateNameKind; | |
675 | value?: K.ExpressionKind | null; | |
614 | 676 | } |
615 | 677 | |
616 | 678 | export interface TypeParameterDeclaration extends Omit<Node, "type"> { |
670 | 732 | type: "VoidTypeAnnotation"; |
671 | 733 | } |
672 | 734 | |
735 | export interface SymbolTypeAnnotation extends Omit<FlowType, "type"> { | |
736 | type: "SymbolTypeAnnotation"; | |
737 | } | |
738 | ||
673 | 739 | export interface NumberTypeAnnotation extends Omit<FlowType, "type"> { |
674 | 740 | type: "NumberTypeAnnotation"; |
741 | } | |
742 | ||
743 | export interface BigIntTypeAnnotation extends Omit<FlowType, "type"> { | |
744 | type: "BigIntTypeAnnotation"; | |
675 | 745 | } |
676 | 746 | |
677 | 747 | export interface NumberLiteralTypeAnnotation extends Omit<FlowType, "type"> { |
683 | 753 | export interface NumericLiteralTypeAnnotation extends Omit<FlowType, "type"> { |
684 | 754 | type: "NumericLiteralTypeAnnotation"; |
685 | 755 | value: number; |
756 | raw: string; | |
757 | } | |
758 | ||
759 | export interface BigIntLiteralTypeAnnotation extends Omit<FlowType, "type"> { | |
760 | type: "BigIntLiteralTypeAnnotation"; | |
761 | value: null; | |
686 | 762 | raw: string; |
687 | 763 | } |
688 | 764 | |
741 | 817 | |
742 | 818 | export interface FunctionTypeParam extends Omit<Node, "type"> { |
743 | 819 | type: "FunctionTypeParam"; |
744 | name: K.IdentifierKind; | |
820 | name: K.IdentifierKind | null; | |
745 | 821 | typeAnnotation: K.FlowTypeKind; |
746 | 822 | optional: boolean; |
747 | 823 | } |
775 | 851 | } |
776 | 852 | |
777 | 853 | export interface ObjectTypeIndexer extends Omit<Node, "type"> { |
854 | id: K.IdentifierKind; | |
855 | static: boolean; | |
778 | 856 | type: "ObjectTypeIndexer"; |
779 | id: K.IdentifierKind; | |
780 | 857 | key: K.FlowTypeKind; |
781 | 858 | value: K.FlowTypeKind; |
782 | 859 | variance?: K.VarianceKind | "plus" | "minus" | null; |
840 | 917 | name: string; |
841 | 918 | variance?: K.VarianceKind | "plus" | "minus" | null; |
842 | 919 | bound?: K.TypeAnnotationKind | null; |
920 | default?: K.FlowTypeKind | null; | |
843 | 921 | } |
844 | 922 | |
845 | 923 | export interface InterfaceTypeAnnotation extends Omit<FlowType, "type"> { |
873 | 951 | right: K.FlowTypeKind; |
874 | 952 | } |
875 | 953 | |
954 | export interface DeclareTypeAlias extends Omit<TypeAlias, "type"> { | |
955 | type: "DeclareTypeAlias"; | |
956 | } | |
957 | ||
876 | 958 | export interface OpaqueType extends Omit<Declaration, "type"> { |
877 | 959 | type: "OpaqueType"; |
878 | 960 | id: K.IdentifierKind; |
879 | 961 | typeParameters: K.TypeParameterDeclarationKind | null; |
880 | 962 | impltype: K.FlowTypeKind; |
881 | supertype: K.FlowTypeKind; | |
882 | } | |
883 | ||
884 | export interface DeclareTypeAlias extends Omit<TypeAlias, "type"> { | |
885 | type: "DeclareTypeAlias"; | |
886 | } | |
887 | ||
888 | export interface DeclareOpaqueType extends Omit<TypeAlias, "type"> { | |
963 | supertype: K.FlowTypeKind | null; | |
964 | } | |
965 | ||
966 | export interface DeclareOpaqueType extends Omit<OpaqueType, "type" | "impltype"> { | |
889 | 967 | type: "DeclareOpaqueType"; |
968 | impltype: K.FlowTypeKind | null; | |
890 | 969 | } |
891 | 970 | |
892 | 971 | export interface TypeCastExpression extends Omit<Expression, "type"> { |
908 | 987 | export interface DeclareFunction extends Omit<Statement, "type"> { |
909 | 988 | type: "DeclareFunction"; |
910 | 989 | id: K.IdentifierKind; |
911 | } | |
990 | predicate?: K.FlowPredicateKind | null; | |
991 | } | |
992 | ||
993 | export interface FlowPredicate extends Flow {} | |
912 | 994 | |
913 | 995 | export interface DeclareClass extends Omit<InterfaceDeclaration, "type"> { |
914 | 996 | type: "DeclareClass"; |
928 | 1010 | export interface DeclareExportDeclaration extends Omit<Declaration, "type"> { |
929 | 1011 | type: "DeclareExportDeclaration"; |
930 | 1012 | default: boolean; |
931 | declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null; | |
1013 | declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | K.TypeAliasKind | K.DeclareOpaqueTypeKind | K.InterfaceDeclarationKind | null; | |
932 | 1014 | specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[]; |
933 | 1015 | source?: K.LiteralKind | null; |
934 | } | |
935 | ||
936 | export interface ExportSpecifier extends Omit<ModuleSpecifier, "type"> { | |
937 | type: "ExportSpecifier"; | |
938 | exported: K.IdentifierKind; | |
939 | 1016 | } |
940 | 1017 | |
941 | 1018 | export interface ExportBatchSpecifier extends Omit<Specifier, "type"> { |
947 | 1024 | source?: K.LiteralKind | null; |
948 | 1025 | } |
949 | 1026 | |
950 | export interface FlowPredicate extends Flow {} | |
951 | ||
952 | 1027 | export interface InferredPredicate extends Omit<FlowPredicate, "type"> { |
953 | 1028 | type: "InferredPredicate"; |
954 | 1029 | } |
956 | 1031 | export interface DeclaredPredicate extends Omit<FlowPredicate, "type"> { |
957 | 1032 | type: "DeclaredPredicate"; |
958 | 1033 | value: K.ExpressionKind; |
1034 | } | |
1035 | ||
1036 | export interface EnumDeclaration extends Omit<Declaration, "type"> { | |
1037 | type: "EnumDeclaration"; | |
1038 | id: K.IdentifierKind; | |
1039 | body: K.EnumBooleanBodyKind | K.EnumNumberBodyKind | K.EnumStringBodyKind | K.EnumSymbolBodyKind; | |
1040 | } | |
1041 | ||
1042 | export interface EnumBooleanBody { | |
1043 | type: "EnumBooleanBody"; | |
1044 | members: K.EnumBooleanMemberKind[]; | |
1045 | explicitType: boolean; | |
1046 | } | |
1047 | ||
1048 | export interface EnumNumberBody { | |
1049 | type: "EnumNumberBody"; | |
1050 | members: K.EnumNumberMemberKind[]; | |
1051 | explicitType: boolean; | |
1052 | } | |
1053 | ||
1054 | export interface EnumStringBody { | |
1055 | type: "EnumStringBody"; | |
1056 | members: K.EnumStringMemberKind[] | K.EnumDefaultedMemberKind[]; | |
1057 | explicitType: boolean; | |
1058 | } | |
1059 | ||
1060 | export interface EnumSymbolBody { | |
1061 | type: "EnumSymbolBody"; | |
1062 | members: K.EnumDefaultedMemberKind[]; | |
1063 | } | |
1064 | ||
1065 | export interface EnumBooleanMember { | |
1066 | type: "EnumBooleanMember"; | |
1067 | id: K.IdentifierKind; | |
1068 | init: K.LiteralKind | boolean; | |
1069 | } | |
1070 | ||
1071 | export interface EnumNumberMember { | |
1072 | type: "EnumNumberMember"; | |
1073 | id: K.IdentifierKind; | |
1074 | init: K.LiteralKind; | |
1075 | } | |
1076 | ||
1077 | export interface EnumStringMember { | |
1078 | type: "EnumStringMember"; | |
1079 | id: K.IdentifierKind; | |
1080 | init: K.LiteralKind; | |
1081 | } | |
1082 | ||
1083 | export interface EnumDefaultedMember { | |
1084 | type: "EnumDefaultedMember"; | |
1085 | id: K.IdentifierKind; | |
959 | 1086 | } |
960 | 1087 | |
961 | 1088 | export interface ExportDeclaration extends Omit<Declaration, "type"> { |
983 | 1110 | body: K.StatementKind[]; |
984 | 1111 | } |
985 | 1112 | |
986 | export interface Super extends Omit<Expression, "type"> { | |
987 | type: "Super"; | |
988 | } | |
989 | ||
990 | 1113 | export interface BindExpression extends Omit<Expression, "type"> { |
991 | 1114 | type: "BindExpression"; |
992 | 1115 | object: K.ExpressionKind | null; |
993 | 1116 | callee: K.ExpressionKind; |
994 | 1117 | } |
995 | 1118 | |
996 | export interface Decorator extends Omit<Node, "type"> { | |
997 | type: "Decorator"; | |
998 | expression: K.ExpressionKind; | |
999 | } | |
1000 | ||
1001 | export interface MetaProperty extends Omit<Expression, "type"> { | |
1002 | type: "MetaProperty"; | |
1003 | meta: K.IdentifierKind; | |
1004 | property: K.IdentifierKind; | |
1005 | } | |
1006 | ||
1007 | 1119 | export interface ParenthesizedExpression extends Omit<Expression, "type"> { |
1008 | 1120 | type: "ParenthesizedExpression"; |
1009 | 1121 | expression: K.ExpressionKind; |
1010 | 1122 | } |
1011 | 1123 | |
1012 | export interface ExportDefaultDeclaration extends Omit<Declaration, "type"> { | |
1013 | type: "ExportDefaultDeclaration"; | |
1014 | declaration: K.DeclarationKind | K.ExpressionKind; | |
1015 | } | |
1016 | ||
1017 | export interface ExportNamedDeclaration extends Omit<Declaration, "type"> { | |
1018 | type: "ExportNamedDeclaration"; | |
1019 | declaration: K.DeclarationKind | null; | |
1020 | specifiers?: K.ExportSpecifierKind[]; | |
1021 | source?: K.LiteralKind | null; | |
1022 | } | |
1023 | ||
1024 | 1124 | export interface ExportNamespaceSpecifier extends Omit<Specifier, "type"> { |
1025 | 1125 | type: "ExportNamespaceSpecifier"; |
1026 | 1126 | exported: K.IdentifierKind; |
1029 | 1129 | export interface ExportDefaultSpecifier extends Omit<Specifier, "type"> { |
1030 | 1130 | type: "ExportDefaultSpecifier"; |
1031 | 1131 | exported: K.IdentifierKind; |
1032 | } | |
1033 | ||
1034 | export interface ExportAllDeclaration extends Omit<Declaration, "type"> { | |
1035 | type: "ExportAllDeclaration"; | |
1036 | exported: K.IdentifierKind | null; | |
1037 | source: K.LiteralKind; | |
1038 | 1132 | } |
1039 | 1133 | |
1040 | 1134 | export interface CommentBlock extends Comment { |
1112 | 1206 | async?: boolean; |
1113 | 1207 | accessibility?: K.LiteralKind | null; |
1114 | 1208 | decorators?: K.DecoratorKind[] | null; |
1115 | } | |
1116 | ||
1117 | export interface ClassPrivateProperty extends Omit<ClassProperty, "type" | "key" | "value"> { | |
1118 | type: "ClassPrivateProperty"; | |
1119 | key: K.PrivateNameKind; | |
1120 | value?: K.ExpressionKind | null; | |
1121 | 1209 | } |
1122 | 1210 | |
1123 | 1211 | export interface ClassMethod extends Omit<Declaration, "type">, Omit<Function, "type" | "body"> { |
1146 | 1234 | accessibility?: "public" | "private" | "protected" | null; |
1147 | 1235 | decorators?: K.DecoratorKind[] | null; |
1148 | 1236 | optional?: boolean | null; |
1149 | } | |
1150 | ||
1151 | export interface PrivateName extends Omit<Expression, "type">, Omit<Pattern, "type"> { | |
1152 | type: "PrivateName"; | |
1153 | id: K.IdentifierKind; | |
1154 | 1237 | } |
1155 | 1238 | |
1156 | 1239 | export interface RestProperty extends Omit<Node, "type"> { |
1346 | 1429 | |
1347 | 1430 | export interface TSTupleType extends Omit<TSType, "type"> { |
1348 | 1431 | type: "TSTupleType"; |
1349 | elementTypes: K.TSTypeKind[]; | |
1432 | elementTypes: (K.TSTypeKind | K.TSNamedTupleMemberKind)[]; | |
1433 | } | |
1434 | ||
1435 | export interface TSNamedTupleMember extends Omit<TSType, "type"> { | |
1436 | type: "TSNamedTupleMember"; | |
1437 | label: K.IdentifierKind; | |
1438 | optional?: boolean; | |
1439 | elementType: K.TSTypeKind; | |
1350 | 1440 | } |
1351 | 1441 | |
1352 | 1442 | export interface TSRestType extends Omit<TSType, "type"> { |
1394 | 1484 | parameters: (K.IdentifierKind | K.RestElementKind | K.ArrayPatternKind | K.ObjectPatternKind)[]; |
1395 | 1485 | } |
1396 | 1486 | |
1397 | export interface TSTypePredicate extends Omit<TSTypeAnnotation, "type" | "typeAnnotation"> { | |
1487 | export interface TSTypePredicate extends Omit<TSTypeAnnotation, "type" | "typeAnnotation">, Omit<TSType, "type"> { | |
1398 | 1488 | type: "TSTypePredicate"; |
1399 | 1489 | parameterName: K.IdentifierKind | K.TSThisTypeKind; |
1400 | typeAnnotation: K.TSTypeAnnotationKind; | |
1490 | typeAnnotation?: K.TSTypeAnnotationKind | null; | |
1491 | asserts?: boolean; | |
1401 | 1492 | } |
1402 | 1493 | |
1403 | 1494 | export interface TSCallSignatureDeclaration extends Omit<Declaration, "type">, TSHasOptionalTypeParameters, TSHasOptionalTypeAnnotation { |
1512 | 1603 | parameter: K.IdentifierKind | K.AssignmentPatternKind; |
1513 | 1604 | } |
1514 | 1605 | |
1515 | export interface OptionalMemberExpression extends Omit<MemberExpression, "type"> { | |
1516 | type: "OptionalMemberExpression"; | |
1517 | optional?: boolean; | |
1518 | } | |
1519 | ||
1520 | export interface OptionalCallExpression extends Omit<CallExpression, "type"> { | |
1521 | type: "OptionalCallExpression"; | |
1522 | optional?: boolean; | |
1523 | } | |
1524 | ||
1525 | export type ASTNode = File | Program | Identifier | BlockStatement | EmptyStatement | ExpressionStatement | IfStatement | LabeledStatement | BreakStatement | ContinueStatement | WithStatement | SwitchStatement | SwitchCase | ReturnStatement | ThrowStatement | TryStatement | CatchClause | WhileStatement | DoWhileStatement | ForStatement | VariableDeclaration | ForInStatement | DebuggerStatement | FunctionDeclaration | FunctionExpression | VariableDeclarator | ThisExpression | ArrayExpression | ObjectExpression | Property | Literal | SequenceExpression | UnaryExpression | BinaryExpression | AssignmentExpression | MemberExpression | UpdateExpression | LogicalExpression | ConditionalExpression | NewExpression | CallExpression | RestElement | TypeAnnotation | TSTypeAnnotation | SpreadElementPattern | ArrowFunctionExpression | ForOfStatement | YieldExpression | GeneratorExpression | ComprehensionBlock | ComprehensionExpression | ObjectProperty | PropertyPattern | ObjectPattern | ArrayPattern | MethodDefinition | SpreadElement | AssignmentPattern | ClassPropertyDefinition | ClassProperty | ClassBody | ClassDeclaration | ClassExpression | ImportSpecifier | ImportNamespaceSpecifier | ImportDefaultSpecifier | ImportDeclaration | TaggedTemplateExpression | TemplateLiteral | TemplateElement | SpreadProperty | SpreadPropertyPattern | AwaitExpression | ImportExpression | JSXAttribute | JSXIdentifier | JSXNamespacedName | JSXExpressionContainer | JSXMemberExpression | JSXSpreadAttribute | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXText | JSXOpeningFragment | JSXClosingFragment | JSXEmptyExpression | JSXSpreadChild | TypeParameterDeclaration | TSTypeParameterDeclaration | TypeParameterInstantiation | TSTypeParameterInstantiation | ClassImplements | TSExpressionWithTypeArguments | AnyTypeAnnotation | EmptyTypeAnnotation | MixedTypeAnnotation | VoidTypeAnnotation | NumberTypeAnnotation | NumberLiteralTypeAnnotation | NumericLiteralTypeAnnotation | StringTypeAnnotation | StringLiteralTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullableTypeAnnotation | NullLiteralTypeAnnotation | NullTypeAnnotation | ThisTypeAnnotation | ExistsTypeAnnotation | ExistentialTypeParam | FunctionTypeAnnotation | FunctionTypeParam | ArrayTypeAnnotation | ObjectTypeAnnotation | ObjectTypeProperty | ObjectTypeSpreadProperty | ObjectTypeIndexer | ObjectTypeCallProperty | ObjectTypeInternalSlot | Variance | QualifiedTypeIdentifier | GenericTypeAnnotation | MemberTypeAnnotation | UnionTypeAnnotation | IntersectionTypeAnnotation | TypeofTypeAnnotation | TypeParameter | InterfaceTypeAnnotation | InterfaceExtends | InterfaceDeclaration | DeclareInterface | TypeAlias | OpaqueType | DeclareTypeAlias | DeclareOpaqueType | TypeCastExpression | TupleTypeAnnotation | DeclareVariable | DeclareFunction | DeclareClass | DeclareModule | DeclareModuleExports | DeclareExportDeclaration | ExportSpecifier | ExportBatchSpecifier | DeclareExportAllDeclaration | InferredPredicate | DeclaredPredicate | ExportDeclaration | Block | Line | Noop | DoExpression | Super | BindExpression | Decorator | MetaProperty | ParenthesizedExpression | ExportDefaultDeclaration | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportDefaultSpecifier | ExportAllDeclaration | CommentBlock | CommentLine | Directive | DirectiveLiteral | InterpreterDirective | StringLiteral | NumericLiteral | BigIntLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ObjectMethod | ClassPrivateProperty | ClassMethod | ClassPrivateMethod | PrivateName | RestProperty | ForAwaitStatement | Import | TSQualifiedName | TSTypeReference | TSAsExpression | TSNonNullExpression | TSAnyKeyword | TSBigIntKeyword | TSBooleanKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSArrayType | TSLiteralType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSTypeParameter | TSParenthesizedType | TSFunctionType | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSMappedType | TSTupleType | TSRestType | TSOptionalType | TSIndexedAccessType | TSTypeOperator | TSIndexSignature | TSPropertySignature | TSMethodSignature | TSTypePredicate | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSEnumMember | TSTypeQuery | TSImportType | TSTypeLiteral | TSTypeAssertion | TSEnumDeclaration | TSTypeAliasDeclaration | TSModuleBlock | TSModuleDeclaration | TSImportEqualsDeclaration | TSExternalModuleReference | TSExportAssignment | TSNamespaceExportDeclaration | TSInterfaceBody | TSInterfaceDeclaration | TSParameterProperty | OptionalMemberExpression | OptionalCallExpression; | |
1606 | export type ASTNode = File | Program | Identifier | BlockStatement | EmptyStatement | ExpressionStatement | IfStatement | LabeledStatement | BreakStatement | ContinueStatement | WithStatement | SwitchStatement | SwitchCase | ReturnStatement | ThrowStatement | TryStatement | CatchClause | WhileStatement | DoWhileStatement | ForStatement | VariableDeclaration | ForInStatement | DebuggerStatement | FunctionDeclaration | FunctionExpression | VariableDeclarator | ThisExpression | ArrayExpression | ObjectExpression | Property | Literal | SequenceExpression | UnaryExpression | BinaryExpression | AssignmentExpression | MemberExpression | UpdateExpression | LogicalExpression | ConditionalExpression | NewExpression | CallExpression | RestElement | TypeAnnotation | TSTypeAnnotation | SpreadElementPattern | ArrowFunctionExpression | ForOfStatement | YieldExpression | GeneratorExpression | ComprehensionBlock | ComprehensionExpression | ObjectProperty | PropertyPattern | ObjectPattern | ArrayPattern | SpreadElement | AssignmentPattern | MethodDefinition | ClassPropertyDefinition | ClassProperty | ClassBody | ClassDeclaration | ClassExpression | Super | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportDeclaration | ExportNamedDeclaration | ExportSpecifier | ExportDefaultDeclaration | ExportAllDeclaration | TaggedTemplateExpression | TemplateLiteral | TemplateElement | MetaProperty | AwaitExpression | SpreadProperty | SpreadPropertyPattern | ImportExpression | OptionalMemberExpression | OptionalCallExpression | JSXAttribute | JSXIdentifier | JSXNamespacedName | JSXExpressionContainer | JSXElement | JSXFragment | JSXMemberExpression | JSXSpreadAttribute | JSXEmptyExpression | JSXText | JSXSpreadChild | JSXOpeningElement | JSXClosingElement | JSXOpeningFragment | JSXClosingFragment | Decorator | PrivateName | ClassPrivateProperty | TypeParameterDeclaration | TSTypeParameterDeclaration | TypeParameterInstantiation | TSTypeParameterInstantiation | ClassImplements | TSExpressionWithTypeArguments | AnyTypeAnnotation | EmptyTypeAnnotation | MixedTypeAnnotation | VoidTypeAnnotation | SymbolTypeAnnotation | NumberTypeAnnotation | BigIntTypeAnnotation | NumberLiteralTypeAnnotation | NumericLiteralTypeAnnotation | BigIntLiteralTypeAnnotation | StringTypeAnnotation | StringLiteralTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullableTypeAnnotation | NullLiteralTypeAnnotation | NullTypeAnnotation | ThisTypeAnnotation | ExistsTypeAnnotation | ExistentialTypeParam | FunctionTypeAnnotation | FunctionTypeParam | ArrayTypeAnnotation | ObjectTypeAnnotation | ObjectTypeProperty | ObjectTypeSpreadProperty | ObjectTypeIndexer | ObjectTypeCallProperty | ObjectTypeInternalSlot | Variance | QualifiedTypeIdentifier | GenericTypeAnnotation | MemberTypeAnnotation | UnionTypeAnnotation | IntersectionTypeAnnotation | TypeofTypeAnnotation | TypeParameter | InterfaceTypeAnnotation | InterfaceExtends | InterfaceDeclaration | DeclareInterface | TypeAlias | DeclareTypeAlias | OpaqueType | DeclareOpaqueType | TypeCastExpression | TupleTypeAnnotation | DeclareVariable | DeclareFunction | DeclareClass | DeclareModule | DeclareModuleExports | DeclareExportDeclaration | ExportBatchSpecifier | DeclareExportAllDeclaration | InferredPredicate | DeclaredPredicate | EnumDeclaration | EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody | EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember | ExportDeclaration | Block | Line | Noop | DoExpression | BindExpression | ParenthesizedExpression | ExportNamespaceSpecifier | ExportDefaultSpecifier | CommentBlock | CommentLine | Directive | DirectiveLiteral | InterpreterDirective | StringLiteral | NumericLiteral | BigIntLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ObjectMethod | ClassMethod | ClassPrivateMethod | RestProperty | ForAwaitStatement | Import | TSQualifiedName | TSTypeReference | TSAsExpression | TSNonNullExpression | TSAnyKeyword | TSBigIntKeyword | TSBooleanKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSArrayType | TSLiteralType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSTypeParameter | TSParenthesizedType | TSFunctionType | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSMappedType | TSTupleType | TSNamedTupleMember | TSRestType | TSOptionalType | TSIndexedAccessType | TSTypeOperator | TSIndexSignature | TSPropertySignature | TSMethodSignature | TSTypePredicate | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSEnumMember | TSTypeQuery | TSImportType | TSTypeLiteral | TSTypeAssertion | TSEnumDeclaration | TSTypeAliasDeclaration | TSModuleBlock | TSModuleDeclaration | TSImportEqualsDeclaration | TSExternalModuleReference | TSExportAssignment | TSNamespaceExportDeclaration | TSInterfaceBody | TSInterfaceDeclaration | TSParameterProperty; | |
1526 | 1607 | export let Printable: Type<Printable>; |
1527 | 1608 | export let SourceLocation: Type<SourceLocation>; |
1528 | 1609 | export let Node: Type<Node>; |
1588 | 1669 | export let PropertyPattern: Type<PropertyPattern>; |
1589 | 1670 | export let ObjectPattern: Type<ObjectPattern>; |
1590 | 1671 | export let ArrayPattern: Type<ArrayPattern>; |
1591 | export let MethodDefinition: Type<MethodDefinition>; | |
1592 | 1672 | export let SpreadElement: Type<SpreadElement>; |
1593 | 1673 | export let AssignmentPattern: Type<AssignmentPattern>; |
1674 | export let MethodDefinition: Type<MethodDefinition>; | |
1594 | 1675 | export let ClassPropertyDefinition: Type<ClassPropertyDefinition>; |
1595 | 1676 | export let ClassProperty: Type<ClassProperty>; |
1596 | 1677 | export let ClassBody: Type<ClassBody>; |
1597 | 1678 | export let ClassDeclaration: Type<ClassDeclaration>; |
1598 | 1679 | export let ClassExpression: Type<ClassExpression>; |
1680 | export let Super: Type<Super>; | |
1599 | 1681 | export let Specifier: Type<Specifier>; |
1600 | 1682 | export let ModuleSpecifier: Type<ModuleSpecifier>; |
1601 | 1683 | export let ImportSpecifier: Type<ImportSpecifier>; |
1684 | export let ImportDefaultSpecifier: Type<ImportDefaultSpecifier>; | |
1602 | 1685 | export let ImportNamespaceSpecifier: Type<ImportNamespaceSpecifier>; |
1603 | export let ImportDefaultSpecifier: Type<ImportDefaultSpecifier>; | |
1604 | 1686 | export let ImportDeclaration: Type<ImportDeclaration>; |
1687 | export let ExportNamedDeclaration: Type<ExportNamedDeclaration>; | |
1688 | export let ExportSpecifier: Type<ExportSpecifier>; | |
1689 | export let ExportDefaultDeclaration: Type<ExportDefaultDeclaration>; | |
1690 | export let ExportAllDeclaration: Type<ExportAllDeclaration>; | |
1605 | 1691 | export let TaggedTemplateExpression: Type<TaggedTemplateExpression>; |
1606 | 1692 | export let TemplateLiteral: Type<TemplateLiteral>; |
1607 | 1693 | export let TemplateElement: Type<TemplateElement>; |
1694 | export let MetaProperty: Type<MetaProperty>; | |
1695 | export let AwaitExpression: Type<AwaitExpression>; | |
1608 | 1696 | export let SpreadProperty: Type<SpreadProperty>; |
1609 | 1697 | export let SpreadPropertyPattern: Type<SpreadPropertyPattern>; |
1610 | export let AwaitExpression: Type<AwaitExpression>; | |
1611 | 1698 | export let ImportExpression: Type<ImportExpression>; |
1699 | export let OptionalMemberExpression: Type<OptionalMemberExpression>; | |
1700 | export let OptionalCallExpression: Type<OptionalCallExpression>; | |
1612 | 1701 | export let JSXAttribute: Type<JSXAttribute>; |
1613 | 1702 | export let JSXIdentifier: Type<JSXIdentifier>; |
1614 | 1703 | export let JSXNamespacedName: Type<JSXNamespacedName>; |
1615 | 1704 | export let JSXExpressionContainer: Type<JSXExpressionContainer>; |
1705 | export let JSXElement: Type<JSXElement>; | |
1706 | export let JSXFragment: Type<JSXFragment>; | |
1616 | 1707 | export let JSXMemberExpression: Type<JSXMemberExpression>; |
1617 | 1708 | export let JSXSpreadAttribute: Type<JSXSpreadAttribute>; |
1618 | export let JSXElement: Type<JSXElement>; | |
1709 | export let JSXEmptyExpression: Type<JSXEmptyExpression>; | |
1710 | export let JSXText: Type<JSXText>; | |
1711 | export let JSXSpreadChild: Type<JSXSpreadChild>; | |
1619 | 1712 | export let JSXOpeningElement: Type<JSXOpeningElement>; |
1620 | 1713 | export let JSXClosingElement: Type<JSXClosingElement>; |
1621 | export let JSXFragment: Type<JSXFragment>; | |
1622 | export let JSXText: Type<JSXText>; | |
1623 | 1714 | export let JSXOpeningFragment: Type<JSXOpeningFragment>; |
1624 | 1715 | export let JSXClosingFragment: Type<JSXClosingFragment>; |
1625 | export let JSXEmptyExpression: Type<JSXEmptyExpression>; | |
1626 | export let JSXSpreadChild: Type<JSXSpreadChild>; | |
1716 | export let Decorator: Type<Decorator>; | |
1717 | export let PrivateName: Type<PrivateName>; | |
1718 | export let ClassPrivateProperty: Type<ClassPrivateProperty>; | |
1627 | 1719 | export let TypeParameterDeclaration: Type<TypeParameterDeclaration>; |
1628 | 1720 | export let TSTypeParameterDeclaration: Type<TSTypeParameterDeclaration>; |
1629 | 1721 | export let TypeParameterInstantiation: Type<TypeParameterInstantiation>; |
1638 | 1730 | export let EmptyTypeAnnotation: Type<EmptyTypeAnnotation>; |
1639 | 1731 | export let MixedTypeAnnotation: Type<MixedTypeAnnotation>; |
1640 | 1732 | export let VoidTypeAnnotation: Type<VoidTypeAnnotation>; |
1733 | export let SymbolTypeAnnotation: Type<SymbolTypeAnnotation>; | |
1641 | 1734 | export let NumberTypeAnnotation: Type<NumberTypeAnnotation>; |
1735 | export let BigIntTypeAnnotation: Type<BigIntTypeAnnotation>; | |
1642 | 1736 | export let NumberLiteralTypeAnnotation: Type<NumberLiteralTypeAnnotation>; |
1643 | 1737 | export let NumericLiteralTypeAnnotation: Type<NumericLiteralTypeAnnotation>; |
1738 | export let BigIntLiteralTypeAnnotation: Type<BigIntLiteralTypeAnnotation>; | |
1644 | 1739 | export let StringTypeAnnotation: Type<StringTypeAnnotation>; |
1645 | 1740 | export let StringLiteralTypeAnnotation: Type<StringLiteralTypeAnnotation>; |
1646 | 1741 | export let BooleanTypeAnnotation: Type<BooleanTypeAnnotation>; |
1673 | 1768 | export let InterfaceDeclaration: Type<InterfaceDeclaration>; |
1674 | 1769 | export let DeclareInterface: Type<DeclareInterface>; |
1675 | 1770 | export let TypeAlias: Type<TypeAlias>; |
1771 | export let DeclareTypeAlias: Type<DeclareTypeAlias>; | |
1676 | 1772 | export let OpaqueType: Type<OpaqueType>; |
1677 | export let DeclareTypeAlias: Type<DeclareTypeAlias>; | |
1678 | 1773 | export let DeclareOpaqueType: Type<DeclareOpaqueType>; |
1679 | 1774 | export let TypeCastExpression: Type<TypeCastExpression>; |
1680 | 1775 | export let TupleTypeAnnotation: Type<TupleTypeAnnotation>; |
1681 | 1776 | export let DeclareVariable: Type<DeclareVariable>; |
1682 | 1777 | export let DeclareFunction: Type<DeclareFunction>; |
1778 | export let FlowPredicate: Type<FlowPredicate>; | |
1683 | 1779 | export let DeclareClass: Type<DeclareClass>; |
1684 | 1780 | export let DeclareModule: Type<DeclareModule>; |
1685 | 1781 | export let DeclareModuleExports: Type<DeclareModuleExports>; |
1686 | 1782 | export let DeclareExportDeclaration: Type<DeclareExportDeclaration>; |
1687 | export let ExportSpecifier: Type<ExportSpecifier>; | |
1688 | 1783 | export let ExportBatchSpecifier: Type<ExportBatchSpecifier>; |
1689 | 1784 | export let DeclareExportAllDeclaration: Type<DeclareExportAllDeclaration>; |
1690 | export let FlowPredicate: Type<FlowPredicate>; | |
1691 | 1785 | export let InferredPredicate: Type<InferredPredicate>; |
1692 | 1786 | export let DeclaredPredicate: Type<DeclaredPredicate>; |
1787 | export let EnumDeclaration: Type<EnumDeclaration>; | |
1788 | export let EnumBooleanBody: Type<EnumBooleanBody>; | |
1789 | export let EnumNumberBody: Type<EnumNumberBody>; | |
1790 | export let EnumStringBody: Type<EnumStringBody>; | |
1791 | export let EnumSymbolBody: Type<EnumSymbolBody>; | |
1792 | export let EnumBooleanMember: Type<EnumBooleanMember>; | |
1793 | export let EnumNumberMember: Type<EnumNumberMember>; | |
1794 | export let EnumStringMember: Type<EnumStringMember>; | |
1795 | export let EnumDefaultedMember: Type<EnumDefaultedMember>; | |
1693 | 1796 | export let ExportDeclaration: Type<ExportDeclaration>; |
1694 | 1797 | export let Block: Type<Block>; |
1695 | 1798 | export let Line: Type<Line>; |
1696 | 1799 | export let Noop: Type<Noop>; |
1697 | 1800 | export let DoExpression: Type<DoExpression>; |
1698 | export let Super: Type<Super>; | |
1699 | 1801 | export let BindExpression: Type<BindExpression>; |
1700 | export let Decorator: Type<Decorator>; | |
1701 | export let MetaProperty: Type<MetaProperty>; | |
1702 | 1802 | export let ParenthesizedExpression: Type<ParenthesizedExpression>; |
1703 | export let ExportDefaultDeclaration: Type<ExportDefaultDeclaration>; | |
1704 | export let ExportNamedDeclaration: Type<ExportNamedDeclaration>; | |
1705 | 1803 | export let ExportNamespaceSpecifier: Type<ExportNamespaceSpecifier>; |
1706 | 1804 | export let ExportDefaultSpecifier: Type<ExportDefaultSpecifier>; |
1707 | export let ExportAllDeclaration: Type<ExportAllDeclaration>; | |
1708 | 1805 | export let CommentBlock: Type<CommentBlock>; |
1709 | 1806 | export let CommentLine: Type<CommentLine>; |
1710 | 1807 | export let Directive: Type<Directive>; |
1717 | 1814 | export let BooleanLiteral: Type<BooleanLiteral>; |
1718 | 1815 | export let RegExpLiteral: Type<RegExpLiteral>; |
1719 | 1816 | export let ObjectMethod: Type<ObjectMethod>; |
1720 | export let ClassPrivateProperty: Type<ClassPrivateProperty>; | |
1721 | 1817 | export let ClassMethod: Type<ClassMethod>; |
1722 | 1818 | export let ClassPrivateMethod: Type<ClassPrivateMethod>; |
1723 | export let PrivateName: Type<PrivateName>; | |
1724 | 1819 | export let RestProperty: Type<RestProperty>; |
1725 | 1820 | export let ForAwaitStatement: Type<ForAwaitStatement>; |
1726 | 1821 | export let Import: Type<Import>; |
1757 | 1852 | export let TSDeclareMethod: Type<TSDeclareMethod>; |
1758 | 1853 | export let TSMappedType: Type<TSMappedType>; |
1759 | 1854 | export let TSTupleType: Type<TSTupleType>; |
1855 | export let TSNamedTupleMember: Type<TSNamedTupleMember>; | |
1760 | 1856 | export let TSRestType: Type<TSRestType>; |
1761 | 1857 | export let TSOptionalType: Type<TSOptionalType>; |
1762 | 1858 | export let TSIndexedAccessType: Type<TSIndexedAccessType>; |
1783 | 1879 | export let TSInterfaceBody: Type<TSInterfaceBody>; |
1784 | 1880 | export let TSInterfaceDeclaration: Type<TSInterfaceDeclaration>; |
1785 | 1881 | export let TSParameterProperty: Type<TSParameterProperty>; |
1786 | export let OptionalMemberExpression: Type<OptionalMemberExpression>; | |
1787 | export let OptionalCallExpression: Type<OptionalCallExpression>; | |
1788 | 1882 | } |
1789 | 1883 | |
1790 | 1884 | export interface NamedTypes { |
1853 | 1947 | PropertyPattern: Type<namedTypes.PropertyPattern>; |
1854 | 1948 | ObjectPattern: Type<namedTypes.ObjectPattern>; |
1855 | 1949 | ArrayPattern: Type<namedTypes.ArrayPattern>; |
1856 | MethodDefinition: Type<namedTypes.MethodDefinition>; | |
1857 | 1950 | SpreadElement: Type<namedTypes.SpreadElement>; |
1858 | 1951 | AssignmentPattern: Type<namedTypes.AssignmentPattern>; |
1952 | MethodDefinition: Type<namedTypes.MethodDefinition>; | |
1859 | 1953 | ClassPropertyDefinition: Type<namedTypes.ClassPropertyDefinition>; |
1860 | 1954 | ClassProperty: Type<namedTypes.ClassProperty>; |
1861 | 1955 | ClassBody: Type<namedTypes.ClassBody>; |
1862 | 1956 | ClassDeclaration: Type<namedTypes.ClassDeclaration>; |
1863 | 1957 | ClassExpression: Type<namedTypes.ClassExpression>; |
1958 | Super: Type<namedTypes.Super>; | |
1864 | 1959 | Specifier: Type<namedTypes.Specifier>; |
1865 | 1960 | ModuleSpecifier: Type<namedTypes.ModuleSpecifier>; |
1866 | 1961 | ImportSpecifier: Type<namedTypes.ImportSpecifier>; |
1962 | ImportDefaultSpecifier: Type<namedTypes.ImportDefaultSpecifier>; | |
1867 | 1963 | ImportNamespaceSpecifier: Type<namedTypes.ImportNamespaceSpecifier>; |
1868 | ImportDefaultSpecifier: Type<namedTypes.ImportDefaultSpecifier>; | |
1869 | 1964 | ImportDeclaration: Type<namedTypes.ImportDeclaration>; |
1965 | ExportNamedDeclaration: Type<namedTypes.ExportNamedDeclaration>; | |
1966 | ExportSpecifier: Type<namedTypes.ExportSpecifier>; | |
1967 | ExportDefaultDeclaration: Type<namedTypes.ExportDefaultDeclaration>; | |
1968 | ExportAllDeclaration: Type<namedTypes.ExportAllDeclaration>; | |
1870 | 1969 | TaggedTemplateExpression: Type<namedTypes.TaggedTemplateExpression>; |
1871 | 1970 | TemplateLiteral: Type<namedTypes.TemplateLiteral>; |
1872 | 1971 | TemplateElement: Type<namedTypes.TemplateElement>; |
1972 | MetaProperty: Type<namedTypes.MetaProperty>; | |
1973 | AwaitExpression: Type<namedTypes.AwaitExpression>; | |
1873 | 1974 | SpreadProperty: Type<namedTypes.SpreadProperty>; |
1874 | 1975 | SpreadPropertyPattern: Type<namedTypes.SpreadPropertyPattern>; |
1875 | AwaitExpression: Type<namedTypes.AwaitExpression>; | |
1876 | 1976 | ImportExpression: Type<namedTypes.ImportExpression>; |
1977 | OptionalMemberExpression: Type<namedTypes.OptionalMemberExpression>; | |
1978 | OptionalCallExpression: Type<namedTypes.OptionalCallExpression>; | |
1877 | 1979 | JSXAttribute: Type<namedTypes.JSXAttribute>; |
1878 | 1980 | JSXIdentifier: Type<namedTypes.JSXIdentifier>; |
1879 | 1981 | JSXNamespacedName: Type<namedTypes.JSXNamespacedName>; |
1880 | 1982 | JSXExpressionContainer: Type<namedTypes.JSXExpressionContainer>; |
1983 | JSXElement: Type<namedTypes.JSXElement>; | |
1984 | JSXFragment: Type<namedTypes.JSXFragment>; | |
1881 | 1985 | JSXMemberExpression: Type<namedTypes.JSXMemberExpression>; |
1882 | 1986 | JSXSpreadAttribute: Type<namedTypes.JSXSpreadAttribute>; |
1883 | JSXElement: Type<namedTypes.JSXElement>; | |
1987 | JSXEmptyExpression: Type<namedTypes.JSXEmptyExpression>; | |
1988 | JSXText: Type<namedTypes.JSXText>; | |
1989 | JSXSpreadChild: Type<namedTypes.JSXSpreadChild>; | |
1884 | 1990 | JSXOpeningElement: Type<namedTypes.JSXOpeningElement>; |
1885 | 1991 | JSXClosingElement: Type<namedTypes.JSXClosingElement>; |
1886 | JSXFragment: Type<namedTypes.JSXFragment>; | |
1887 | JSXText: Type<namedTypes.JSXText>; | |
1888 | 1992 | JSXOpeningFragment: Type<namedTypes.JSXOpeningFragment>; |
1889 | 1993 | JSXClosingFragment: Type<namedTypes.JSXClosingFragment>; |
1890 | JSXEmptyExpression: Type<namedTypes.JSXEmptyExpression>; | |
1891 | JSXSpreadChild: Type<namedTypes.JSXSpreadChild>; | |
1994 | Decorator: Type<namedTypes.Decorator>; | |
1995 | PrivateName: Type<namedTypes.PrivateName>; | |
1996 | ClassPrivateProperty: Type<namedTypes.ClassPrivateProperty>; | |
1892 | 1997 | TypeParameterDeclaration: Type<namedTypes.TypeParameterDeclaration>; |
1893 | 1998 | TSTypeParameterDeclaration: Type<namedTypes.TSTypeParameterDeclaration>; |
1894 | 1999 | TypeParameterInstantiation: Type<namedTypes.TypeParameterInstantiation>; |
1903 | 2008 | EmptyTypeAnnotation: Type<namedTypes.EmptyTypeAnnotation>; |
1904 | 2009 | MixedTypeAnnotation: Type<namedTypes.MixedTypeAnnotation>; |
1905 | 2010 | VoidTypeAnnotation: Type<namedTypes.VoidTypeAnnotation>; |
2011 | SymbolTypeAnnotation: Type<namedTypes.SymbolTypeAnnotation>; | |
1906 | 2012 | NumberTypeAnnotation: Type<namedTypes.NumberTypeAnnotation>; |
2013 | BigIntTypeAnnotation: Type<namedTypes.BigIntTypeAnnotation>; | |
1907 | 2014 | NumberLiteralTypeAnnotation: Type<namedTypes.NumberLiteralTypeAnnotation>; |
1908 | 2015 | NumericLiteralTypeAnnotation: Type<namedTypes.NumericLiteralTypeAnnotation>; |
2016 | BigIntLiteralTypeAnnotation: Type<namedTypes.BigIntLiteralTypeAnnotation>; | |
1909 | 2017 | StringTypeAnnotation: Type<namedTypes.StringTypeAnnotation>; |
1910 | 2018 | StringLiteralTypeAnnotation: Type<namedTypes.StringLiteralTypeAnnotation>; |
1911 | 2019 | BooleanTypeAnnotation: Type<namedTypes.BooleanTypeAnnotation>; |
1938 | 2046 | InterfaceDeclaration: Type<namedTypes.InterfaceDeclaration>; |
1939 | 2047 | DeclareInterface: Type<namedTypes.DeclareInterface>; |
1940 | 2048 | TypeAlias: Type<namedTypes.TypeAlias>; |
2049 | DeclareTypeAlias: Type<namedTypes.DeclareTypeAlias>; | |
1941 | 2050 | OpaqueType: Type<namedTypes.OpaqueType>; |
1942 | DeclareTypeAlias: Type<namedTypes.DeclareTypeAlias>; | |
1943 | 2051 | DeclareOpaqueType: Type<namedTypes.DeclareOpaqueType>; |
1944 | 2052 | TypeCastExpression: Type<namedTypes.TypeCastExpression>; |
1945 | 2053 | TupleTypeAnnotation: Type<namedTypes.TupleTypeAnnotation>; |
1946 | 2054 | DeclareVariable: Type<namedTypes.DeclareVariable>; |
1947 | 2055 | DeclareFunction: Type<namedTypes.DeclareFunction>; |
2056 | FlowPredicate: Type<namedTypes.FlowPredicate>; | |
1948 | 2057 | DeclareClass: Type<namedTypes.DeclareClass>; |
1949 | 2058 | DeclareModule: Type<namedTypes.DeclareModule>; |
1950 | 2059 | DeclareModuleExports: Type<namedTypes.DeclareModuleExports>; |
1951 | 2060 | DeclareExportDeclaration: Type<namedTypes.DeclareExportDeclaration>; |
1952 | ExportSpecifier: Type<namedTypes.ExportSpecifier>; | |
1953 | 2061 | ExportBatchSpecifier: Type<namedTypes.ExportBatchSpecifier>; |
1954 | 2062 | DeclareExportAllDeclaration: Type<namedTypes.DeclareExportAllDeclaration>; |
1955 | FlowPredicate: Type<namedTypes.FlowPredicate>; | |
1956 | 2063 | InferredPredicate: Type<namedTypes.InferredPredicate>; |
1957 | 2064 | DeclaredPredicate: Type<namedTypes.DeclaredPredicate>; |
2065 | EnumDeclaration: Type<namedTypes.EnumDeclaration>; | |
2066 | EnumBooleanBody: Type<namedTypes.EnumBooleanBody>; | |
2067 | EnumNumberBody: Type<namedTypes.EnumNumberBody>; | |
2068 | EnumStringBody: Type<namedTypes.EnumStringBody>; | |
2069 | EnumSymbolBody: Type<namedTypes.EnumSymbolBody>; | |
2070 | EnumBooleanMember: Type<namedTypes.EnumBooleanMember>; | |
2071 | EnumNumberMember: Type<namedTypes.EnumNumberMember>; | |
2072 | EnumStringMember: Type<namedTypes.EnumStringMember>; | |
2073 | EnumDefaultedMember: Type<namedTypes.EnumDefaultedMember>; | |
1958 | 2074 | ExportDeclaration: Type<namedTypes.ExportDeclaration>; |
1959 | 2075 | Block: Type<namedTypes.Block>; |
1960 | 2076 | Line: Type<namedTypes.Line>; |
1961 | 2077 | Noop: Type<namedTypes.Noop>; |
1962 | 2078 | DoExpression: Type<namedTypes.DoExpression>; |
1963 | Super: Type<namedTypes.Super>; | |
1964 | 2079 | BindExpression: Type<namedTypes.BindExpression>; |
1965 | Decorator: Type<namedTypes.Decorator>; | |
1966 | MetaProperty: Type<namedTypes.MetaProperty>; | |
1967 | 2080 | ParenthesizedExpression: Type<namedTypes.ParenthesizedExpression>; |
1968 | ExportDefaultDeclaration: Type<namedTypes.ExportDefaultDeclaration>; | |
1969 | ExportNamedDeclaration: Type<namedTypes.ExportNamedDeclaration>; | |
1970 | 2081 | ExportNamespaceSpecifier: Type<namedTypes.ExportNamespaceSpecifier>; |
1971 | 2082 | ExportDefaultSpecifier: Type<namedTypes.ExportDefaultSpecifier>; |
1972 | ExportAllDeclaration: Type<namedTypes.ExportAllDeclaration>; | |
1973 | 2083 | CommentBlock: Type<namedTypes.CommentBlock>; |
1974 | 2084 | CommentLine: Type<namedTypes.CommentLine>; |
1975 | 2085 | Directive: Type<namedTypes.Directive>; |
1982 | 2092 | BooleanLiteral: Type<namedTypes.BooleanLiteral>; |
1983 | 2093 | RegExpLiteral: Type<namedTypes.RegExpLiteral>; |
1984 | 2094 | ObjectMethod: Type<namedTypes.ObjectMethod>; |
1985 | ClassPrivateProperty: Type<namedTypes.ClassPrivateProperty>; | |
1986 | 2095 | ClassMethod: Type<namedTypes.ClassMethod>; |
1987 | 2096 | ClassPrivateMethod: Type<namedTypes.ClassPrivateMethod>; |
1988 | PrivateName: Type<namedTypes.PrivateName>; | |
1989 | 2097 | RestProperty: Type<namedTypes.RestProperty>; |
1990 | 2098 | ForAwaitStatement: Type<namedTypes.ForAwaitStatement>; |
1991 | 2099 | Import: Type<namedTypes.Import>; |
2022 | 2130 | TSDeclareMethod: Type<namedTypes.TSDeclareMethod>; |
2023 | 2131 | TSMappedType: Type<namedTypes.TSMappedType>; |
2024 | 2132 | TSTupleType: Type<namedTypes.TSTupleType>; |
2133 | TSNamedTupleMember: Type<namedTypes.TSNamedTupleMember>; | |
2025 | 2134 | TSRestType: Type<namedTypes.TSRestType>; |
2026 | 2135 | TSOptionalType: Type<namedTypes.TSOptionalType>; |
2027 | 2136 | TSIndexedAccessType: Type<namedTypes.TSIndexedAccessType>; |
2048 | 2157 | TSInterfaceBody: Type<namedTypes.TSInterfaceBody>; |
2049 | 2158 | TSInterfaceDeclaration: Type<namedTypes.TSInterfaceDeclaration>; |
2050 | 2159 | TSParameterProperty: Type<namedTypes.TSParameterProperty>; |
2051 | OptionalMemberExpression: Type<namedTypes.OptionalMemberExpression>; | |
2052 | OptionalCallExpression: Type<namedTypes.OptionalCallExpression>; | |
2053 | 2160 | }⏎ |
68 | 68 | visitPropertyPattern?(this: Context & M, path: NodePath<namedTypes.PropertyPattern>): any; |
69 | 69 | visitObjectPattern?(this: Context & M, path: NodePath<namedTypes.ObjectPattern>): any; |
70 | 70 | visitArrayPattern?(this: Context & M, path: NodePath<namedTypes.ArrayPattern>): any; |
71 | visitMethodDefinition?(this: Context & M, path: NodePath<namedTypes.MethodDefinition>): any; | |
72 | 71 | visitSpreadElement?(this: Context & M, path: NodePath<namedTypes.SpreadElement>): any; |
73 | 72 | visitAssignmentPattern?(this: Context & M, path: NodePath<namedTypes.AssignmentPattern>): any; |
73 | visitMethodDefinition?(this: Context & M, path: NodePath<namedTypes.MethodDefinition>): any; | |
74 | 74 | visitClassPropertyDefinition?(this: Context & M, path: NodePath<namedTypes.ClassPropertyDefinition>): any; |
75 | 75 | visitClassProperty?(this: Context & M, path: NodePath<namedTypes.ClassProperty>): any; |
76 | 76 | visitClassBody?(this: Context & M, path: NodePath<namedTypes.ClassBody>): any; |
77 | 77 | visitClassDeclaration?(this: Context & M, path: NodePath<namedTypes.ClassDeclaration>): any; |
78 | 78 | visitClassExpression?(this: Context & M, path: NodePath<namedTypes.ClassExpression>): any; |
79 | visitSuper?(this: Context & M, path: NodePath<namedTypes.Super>): any; | |
79 | 80 | visitSpecifier?(this: Context & M, path: NodePath<namedTypes.Specifier>): any; |
80 | 81 | visitModuleSpecifier?(this: Context & M, path: NodePath<namedTypes.ModuleSpecifier>): any; |
81 | 82 | visitImportSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportSpecifier>): any; |
83 | visitImportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportDefaultSpecifier>): any; | |
82 | 84 | visitImportNamespaceSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportNamespaceSpecifier>): any; |
83 | visitImportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportDefaultSpecifier>): any; | |
84 | 85 | visitImportDeclaration?(this: Context & M, path: NodePath<namedTypes.ImportDeclaration>): any; |
86 | visitExportNamedDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportNamedDeclaration>): any; | |
87 | visitExportSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportSpecifier>): any; | |
88 | visitExportDefaultDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDefaultDeclaration>): any; | |
89 | visitExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportAllDeclaration>): any; | |
85 | 90 | visitTaggedTemplateExpression?(this: Context & M, path: NodePath<namedTypes.TaggedTemplateExpression>): any; |
86 | 91 | visitTemplateLiteral?(this: Context & M, path: NodePath<namedTypes.TemplateLiteral>): any; |
87 | 92 | visitTemplateElement?(this: Context & M, path: NodePath<namedTypes.TemplateElement>): any; |
93 | visitMetaProperty?(this: Context & M, path: NodePath<namedTypes.MetaProperty>): any; | |
94 | visitAwaitExpression?(this: Context & M, path: NodePath<namedTypes.AwaitExpression>): any; | |
88 | 95 | visitSpreadProperty?(this: Context & M, path: NodePath<namedTypes.SpreadProperty>): any; |
89 | 96 | visitSpreadPropertyPattern?(this: Context & M, path: NodePath<namedTypes.SpreadPropertyPattern>): any; |
90 | visitAwaitExpression?(this: Context & M, path: NodePath<namedTypes.AwaitExpression>): any; | |
91 | 97 | visitImportExpression?(this: Context & M, path: NodePath<namedTypes.ImportExpression>): any; |
98 | visitOptionalMemberExpression?(this: Context & M, path: NodePath<namedTypes.OptionalMemberExpression>): any; | |
99 | visitOptionalCallExpression?(this: Context & M, path: NodePath<namedTypes.OptionalCallExpression>): any; | |
92 | 100 | visitJSXAttribute?(this: Context & M, path: NodePath<namedTypes.JSXAttribute>): any; |
93 | 101 | visitJSXIdentifier?(this: Context & M, path: NodePath<namedTypes.JSXIdentifier>): any; |
94 | 102 | visitJSXNamespacedName?(this: Context & M, path: NodePath<namedTypes.JSXNamespacedName>): any; |
95 | 103 | visitJSXExpressionContainer?(this: Context & M, path: NodePath<namedTypes.JSXExpressionContainer>): any; |
104 | visitJSXElement?(this: Context & M, path: NodePath<namedTypes.JSXElement>): any; | |
105 | visitJSXFragment?(this: Context & M, path: NodePath<namedTypes.JSXFragment>): any; | |
96 | 106 | visitJSXMemberExpression?(this: Context & M, path: NodePath<namedTypes.JSXMemberExpression>): any; |
97 | 107 | visitJSXSpreadAttribute?(this: Context & M, path: NodePath<namedTypes.JSXSpreadAttribute>): any; |
98 | visitJSXElement?(this: Context & M, path: NodePath<namedTypes.JSXElement>): any; | |
108 | visitJSXEmptyExpression?(this: Context & M, path: NodePath<namedTypes.JSXEmptyExpression>): any; | |
109 | visitJSXText?(this: Context & M, path: NodePath<namedTypes.JSXText>): any; | |
110 | visitJSXSpreadChild?(this: Context & M, path: NodePath<namedTypes.JSXSpreadChild>): any; | |
99 | 111 | visitJSXOpeningElement?(this: Context & M, path: NodePath<namedTypes.JSXOpeningElement>): any; |
100 | 112 | visitJSXClosingElement?(this: Context & M, path: NodePath<namedTypes.JSXClosingElement>): any; |
101 | visitJSXFragment?(this: Context & M, path: NodePath<namedTypes.JSXFragment>): any; | |
102 | visitJSXText?(this: Context & M, path: NodePath<namedTypes.JSXText>): any; | |
103 | 113 | visitJSXOpeningFragment?(this: Context & M, path: NodePath<namedTypes.JSXOpeningFragment>): any; |
104 | 114 | visitJSXClosingFragment?(this: Context & M, path: NodePath<namedTypes.JSXClosingFragment>): any; |
105 | visitJSXEmptyExpression?(this: Context & M, path: NodePath<namedTypes.JSXEmptyExpression>): any; | |
106 | visitJSXSpreadChild?(this: Context & M, path: NodePath<namedTypes.JSXSpreadChild>): any; | |
115 | visitDecorator?(this: Context & M, path: NodePath<namedTypes.Decorator>): any; | |
116 | visitPrivateName?(this: Context & M, path: NodePath<namedTypes.PrivateName>): any; | |
117 | visitClassPrivateProperty?(this: Context & M, path: NodePath<namedTypes.ClassPrivateProperty>): any; | |
107 | 118 | visitTypeParameterDeclaration?(this: Context & M, path: NodePath<namedTypes.TypeParameterDeclaration>): any; |
108 | 119 | visitTSTypeParameterDeclaration?(this: Context & M, path: NodePath<namedTypes.TSTypeParameterDeclaration>): any; |
109 | 120 | visitTypeParameterInstantiation?(this: Context & M, path: NodePath<namedTypes.TypeParameterInstantiation>): any; |
124 | 135 | visitEmptyTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.EmptyTypeAnnotation>): any; |
125 | 136 | visitMixedTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.MixedTypeAnnotation>): any; |
126 | 137 | visitVoidTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.VoidTypeAnnotation>): any; |
138 | visitSymbolTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.SymbolTypeAnnotation>): any; | |
127 | 139 | visitNumberTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumberTypeAnnotation>): any; |
140 | visitBigIntTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.BigIntTypeAnnotation>): any; | |
128 | 141 | visitNumberLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumberLiteralTypeAnnotation>): any; |
129 | 142 | visitNumericLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumericLiteralTypeAnnotation>): any; |
143 | visitBigIntLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.BigIntLiteralTypeAnnotation>): any; | |
130 | 144 | visitStringTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.StringTypeAnnotation>): any; |
131 | 145 | visitStringLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.StringLiteralTypeAnnotation>): any; |
132 | 146 | visitBooleanTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.BooleanTypeAnnotation>): any; |
159 | 173 | visitInterfaceDeclaration?(this: Context & M, path: NodePath<namedTypes.InterfaceDeclaration>): any; |
160 | 174 | visitDeclareInterface?(this: Context & M, path: NodePath<namedTypes.DeclareInterface>): any; |
161 | 175 | visitTypeAlias?(this: Context & M, path: NodePath<namedTypes.TypeAlias>): any; |
176 | visitDeclareTypeAlias?(this: Context & M, path: NodePath<namedTypes.DeclareTypeAlias>): any; | |
162 | 177 | visitOpaqueType?(this: Context & M, path: NodePath<namedTypes.OpaqueType>): any; |
163 | visitDeclareTypeAlias?(this: Context & M, path: NodePath<namedTypes.DeclareTypeAlias>): any; | |
164 | 178 | visitDeclareOpaqueType?(this: Context & M, path: NodePath<namedTypes.DeclareOpaqueType>): any; |
165 | 179 | visitTypeCastExpression?(this: Context & M, path: NodePath<namedTypes.TypeCastExpression>): any; |
166 | 180 | visitTupleTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.TupleTypeAnnotation>): any; |
167 | 181 | visitDeclareVariable?(this: Context & M, path: NodePath<namedTypes.DeclareVariable>): any; |
168 | 182 | visitDeclareFunction?(this: Context & M, path: NodePath<namedTypes.DeclareFunction>): any; |
183 | visitFlowPredicate?(this: Context & M, path: NodePath<namedTypes.FlowPredicate>): any; | |
169 | 184 | visitDeclareClass?(this: Context & M, path: NodePath<namedTypes.DeclareClass>): any; |
170 | 185 | visitDeclareModule?(this: Context & M, path: NodePath<namedTypes.DeclareModule>): any; |
171 | 186 | visitDeclareModuleExports?(this: Context & M, path: NodePath<namedTypes.DeclareModuleExports>): any; |
172 | 187 | visitDeclareExportDeclaration?(this: Context & M, path: NodePath<namedTypes.DeclareExportDeclaration>): any; |
173 | visitExportSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportSpecifier>): any; | |
174 | 188 | visitExportBatchSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportBatchSpecifier>): any; |
175 | 189 | visitDeclareExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.DeclareExportAllDeclaration>): any; |
176 | visitFlowPredicate?(this: Context & M, path: NodePath<namedTypes.FlowPredicate>): any; | |
177 | 190 | visitInferredPredicate?(this: Context & M, path: NodePath<namedTypes.InferredPredicate>): any; |
178 | 191 | visitDeclaredPredicate?(this: Context & M, path: NodePath<namedTypes.DeclaredPredicate>): any; |
192 | visitEnumDeclaration?(this: Context & M, path: NodePath<namedTypes.EnumDeclaration>): any; | |
193 | visitEnumBooleanBody?(this: Context & M, path: NodePath<namedTypes.EnumBooleanBody>): any; | |
194 | visitEnumNumberBody?(this: Context & M, path: NodePath<namedTypes.EnumNumberBody>): any; | |
195 | visitEnumStringBody?(this: Context & M, path: NodePath<namedTypes.EnumStringBody>): any; | |
196 | visitEnumSymbolBody?(this: Context & M, path: NodePath<namedTypes.EnumSymbolBody>): any; | |
197 | visitEnumBooleanMember?(this: Context & M, path: NodePath<namedTypes.EnumBooleanMember>): any; | |
198 | visitEnumNumberMember?(this: Context & M, path: NodePath<namedTypes.EnumNumberMember>): any; | |
199 | visitEnumStringMember?(this: Context & M, path: NodePath<namedTypes.EnumStringMember>): any; | |
200 | visitEnumDefaultedMember?(this: Context & M, path: NodePath<namedTypes.EnumDefaultedMember>): any; | |
179 | 201 | visitExportDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDeclaration>): any; |
180 | 202 | visitBlock?(this: Context & M, path: NodePath<namedTypes.Block>): any; |
181 | 203 | visitLine?(this: Context & M, path: NodePath<namedTypes.Line>): any; |
182 | 204 | visitNoop?(this: Context & M, path: NodePath<namedTypes.Noop>): any; |
183 | 205 | visitDoExpression?(this: Context & M, path: NodePath<namedTypes.DoExpression>): any; |
184 | visitSuper?(this: Context & M, path: NodePath<namedTypes.Super>): any; | |
185 | 206 | visitBindExpression?(this: Context & M, path: NodePath<namedTypes.BindExpression>): any; |
186 | visitDecorator?(this: Context & M, path: NodePath<namedTypes.Decorator>): any; | |
187 | visitMetaProperty?(this: Context & M, path: NodePath<namedTypes.MetaProperty>): any; | |
188 | 207 | visitParenthesizedExpression?(this: Context & M, path: NodePath<namedTypes.ParenthesizedExpression>): any; |
189 | visitExportDefaultDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDefaultDeclaration>): any; | |
190 | visitExportNamedDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportNamedDeclaration>): any; | |
191 | 208 | visitExportNamespaceSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportNamespaceSpecifier>): any; |
192 | 209 | visitExportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportDefaultSpecifier>): any; |
193 | visitExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportAllDeclaration>): any; | |
194 | 210 | visitCommentBlock?(this: Context & M, path: NodePath<namedTypes.CommentBlock>): any; |
195 | 211 | visitCommentLine?(this: Context & M, path: NodePath<namedTypes.CommentLine>): any; |
196 | 212 | visitDirective?(this: Context & M, path: NodePath<namedTypes.Directive>): any; |
203 | 219 | visitBooleanLiteral?(this: Context & M, path: NodePath<namedTypes.BooleanLiteral>): any; |
204 | 220 | visitRegExpLiteral?(this: Context & M, path: NodePath<namedTypes.RegExpLiteral>): any; |
205 | 221 | visitObjectMethod?(this: Context & M, path: NodePath<namedTypes.ObjectMethod>): any; |
206 | visitClassPrivateProperty?(this: Context & M, path: NodePath<namedTypes.ClassPrivateProperty>): any; | |
207 | 222 | visitClassMethod?(this: Context & M, path: NodePath<namedTypes.ClassMethod>): any; |
208 | 223 | visitClassPrivateMethod?(this: Context & M, path: NodePath<namedTypes.ClassPrivateMethod>): any; |
209 | visitPrivateName?(this: Context & M, path: NodePath<namedTypes.PrivateName>): any; | |
210 | 224 | visitRestProperty?(this: Context & M, path: NodePath<namedTypes.RestProperty>): any; |
211 | 225 | visitForAwaitStatement?(this: Context & M, path: NodePath<namedTypes.ForAwaitStatement>): any; |
212 | 226 | visitImport?(this: Context & M, path: NodePath<namedTypes.Import>): any; |
243 | 257 | visitTSDeclareMethod?(this: Context & M, path: NodePath<namedTypes.TSDeclareMethod>): any; |
244 | 258 | visitTSMappedType?(this: Context & M, path: NodePath<namedTypes.TSMappedType>): any; |
245 | 259 | visitTSTupleType?(this: Context & M, path: NodePath<namedTypes.TSTupleType>): any; |
260 | visitTSNamedTupleMember?(this: Context & M, path: NodePath<namedTypes.TSNamedTupleMember>): any; | |
246 | 261 | visitTSRestType?(this: Context & M, path: NodePath<namedTypes.TSRestType>): any; |
247 | 262 | visitTSOptionalType?(this: Context & M, path: NodePath<namedTypes.TSOptionalType>): any; |
248 | 263 | visitTSIndexedAccessType?(this: Context & M, path: NodePath<namedTypes.TSIndexedAccessType>): any; |
272 | 287 | visitTSInterfaceBody?(this: Context & M, path: NodePath<namedTypes.TSInterfaceBody>): any; |
273 | 288 | visitTSInterfaceDeclaration?(this: Context & M, path: NodePath<namedTypes.TSInterfaceDeclaration>): any; |
274 | 289 | visitTSParameterProperty?(this: Context & M, path: NodePath<namedTypes.TSParameterProperty>): any; |
275 | visitOptionalMemberExpression?(this: Context & M, path: NodePath<namedTypes.OptionalMemberExpression>): any; | |
276 | visitOptionalCallExpression?(this: Context & M, path: NodePath<namedTypes.OptionalCallExpression>): any; | |
277 | 290 | }⏎ |
172 | 172 | // A catch clause establishes a new scope but the only variable |
173 | 173 | // bound in that scope is the catch parameter. Any other |
174 | 174 | // declarations create bindings in the outer scope. |
175 | addPattern(path.get("param"), bindings); | |
175 | var param = path.get("param"); | |
176 | if (param.value) { | |
177 | addPattern(param, bindings); | |
178 | } | |
176 | 179 | |
177 | 180 | } else { |
178 | 181 | recursiveScanScope(path, bindings, scopeTypes); |
389 | 389 | var builtInCtorTypes: Type<any>[] = []; |
390 | 390 | |
391 | 391 | type BuiltInTypes = { |
392 | string: typeof isString; | |
393 | function: typeof isFunction; | |
394 | array: typeof isArray; | |
395 | object: typeof isObject; | |
396 | RegExp: typeof isRegExp; | |
397 | Date: typeof isDate; | |
398 | number: typeof isNumber; | |
399 | boolean: typeof isBoolean; | |
400 | null: typeof isNull; | |
401 | undefined: typeof isUndefined; | |
392 | string: string; | |
393 | function: Function; | |
394 | array: any[]; | |
395 | object: { [key: string]: any }; | |
396 | RegExp: RegExp; | |
397 | Date: Date; | |
398 | number: number; | |
399 | boolean: boolean; | |
400 | null: null; | |
401 | undefined: undefined; | |
402 | 402 | }; |
403 | var builtInTypes = {} as BuiltInTypes; | |
404 | ||
405 | function defBuiltInType<T>(example: T, name: keyof BuiltInTypes): Type<T> { | |
406 | const objStr = objToStr.call(example); | |
407 | ||
408 | const type = new PredicateType<T>(name, value => objToStr.call(value) === objStr); | |
409 | ||
410 | builtInTypes[name] = type; | |
403 | ||
404 | function defBuiltInType<K extends keyof BuiltInTypes>( | |
405 | name: K, | |
406 | example: BuiltInTypes[K] | |
407 | ): Type<BuiltInTypes[K]> { | |
408 | const objStr: string = objToStr.call(example); | |
409 | ||
410 | const type = new PredicateType<BuiltInTypes[K]>( | |
411 | name, | |
412 | value => objToStr.call(value) === objStr); | |
411 | 413 | |
412 | 414 | if (example && typeof example.constructor === "function") { |
413 | 415 | builtInCtorFns.push(example.constructor); |
421 | 423 | // value, rather than using the problematic typeof operator. Note however |
422 | 424 | // that no subtyping is considered; so, for instance, isObject.check |
423 | 425 | // returns false for [], /./, new Date, and null. |
424 | var isString = defBuiltInType<string>("truthy", "string"); | |
425 | var isFunction = defBuiltInType<Function>(function () {}, "function"); | |
426 | var isArray = defBuiltInType<any[]>([], "array"); | |
427 | var isObject = defBuiltInType<{ [key: string]: any }>({}, "object"); | |
428 | var isRegExp = defBuiltInType<RegExp>(/./, "RegExp"); | |
429 | var isDate = defBuiltInType<Date>(new Date, "Date"); | |
430 | var isNumber = defBuiltInType<number>(3, "number"); | |
431 | var isBoolean = defBuiltInType<boolean>(true, "boolean"); | |
432 | var isNull = defBuiltInType<null>(null, "null"); | |
433 | var isUndefined = defBuiltInType<undefined>(void 0, "undefined"); | |
426 | const isString = defBuiltInType("string", "truthy"); | |
427 | const isFunction = defBuiltInType("function", function () {}); | |
428 | const isArray = defBuiltInType("array", []); | |
429 | const isObject = defBuiltInType("object", {}); | |
430 | const isRegExp = defBuiltInType("RegExp", /./); | |
431 | const isDate = defBuiltInType("Date", new Date()); | |
432 | const isNumber = defBuiltInType("number", 3); | |
433 | const isBoolean = defBuiltInType("boolean", true); | |
434 | const isNull = defBuiltInType("null", null); | |
435 | const isUndefined = defBuiltInType("undefined", undefined); | |
436 | ||
437 | const builtInTypes = { | |
438 | string: isString, | |
439 | function: isFunction, | |
440 | array: isArray, | |
441 | object: isObject, | |
442 | RegExp: isRegExp, | |
443 | Date: isDate, | |
444 | number: isNumber, | |
445 | boolean: isBoolean, | |
446 | null: isNull, | |
447 | undefined: isUndefined, | |
448 | }; | |
434 | 449 | |
435 | 450 | // In order to return the same Def instance every time Type.def is called |
436 | 451 | // with a particular name, those instances need to be stored in a cache. |
0 | 0 | import fork from "./fork"; |
1 | 1 | import coreDef from "./def/core"; |
2 | 2 | import es6Def from "./def/es6"; |
3 | import es7Def from "./def/es7"; | |
3 | import es2016Def from "./def/es2016"; | |
4 | import es2017Def from "./def/es2017"; | |
5 | import es2018Def from "./def/es2018"; | |
6 | import es2019Def from "./def/es2019"; | |
4 | 7 | import es2020Def from "./def/es2020"; |
5 | 8 | import jsxDef from "./def/jsx"; |
6 | 9 | import flowDef from "./def/flow"; |
41 | 44 | // Feel free to add to or remove from this list of extension modules to |
42 | 45 | // configure the precise type hierarchy that you need. |
43 | 46 | es6Def, |
44 | es7Def, | |
47 | es2016Def, | |
48 | es2017Def, | |
49 | es2018Def, | |
50 | es2019Def, | |
45 | 51 | es2020Def, |
46 | 52 | jsxDef, |
47 | 53 | flowDef, |
0 | 0 | { |
1 | 1 | "name": "ast-types", |
2 | "version": "0.13.3", | |
2 | "version": "0.14.0", | |
3 | 3 | "lockfileVersion": 1, |
4 | 4 | "requires": true, |
5 | 5 | "dependencies": { |
6 | 6 | "@babel/parser": { |
7 | "version": "7.4.4", | |
8 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.4.4.tgz", | |
9 | "integrity": "sha512-5pCS4mOsL+ANsFZGdvNLybx4wtqAZJ0MJjMHxvzI3bvIsz6sQvzW8XX92EYIkiPtIvcfG3Aj+Ir5VNyjnZhP7w==", | |
7 | "version": "7.7.7", | |
8 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", | |
9 | "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", | |
10 | 10 | "dev": true |
11 | 11 | }, |
12 | 12 | "@babel/types": { |
30 | 30 | } |
31 | 31 | }, |
32 | 32 | "@types/estree": { |
33 | "version": "0.0.39", | |
34 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", | |
35 | "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", | |
36 | "dev": true | |
37 | }, | |
38 | "@types/events": { | |
39 | "version": "3.0.0", | |
40 | "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", | |
41 | "integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==", | |
33 | "version": "0.0.45", | |
34 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.45.tgz", | |
35 | "integrity": "sha512-jnqIUKDUqJbDIUxm0Uj7bnlMnRm1T/eZ9N+AVMqhPgzrba2GhGG5o/jCTwmdPK709nEZsGoMzXEDUjcXHa3W0g==", | |
42 | 36 | "dev": true |
43 | 37 | }, |
44 | 38 | "@types/glob": { |
45 | "version": "7.1.1", | |
46 | "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz", | |
47 | "integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==", | |
48 | "dev": true, | |
49 | "requires": { | |
50 | "@types/events": "*", | |
39 | "version": "7.1.3", | |
40 | "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.3.tgz", | |
41 | "integrity": "sha512-SEYeGAIQIQX8NN6LDKprLjbrd5dARM5EXsd8GI/A5l0apYI1fGMWgPHSe4ZKL4eozlAyI+doUE9XbYS4xCkQ1w==", | |
42 | "dev": true, | |
43 | "requires": { | |
51 | 44 | "@types/minimatch": "*", |
52 | 45 | "@types/node": "*" |
53 | 46 | } |
59 | 52 | "dev": true |
60 | 53 | }, |
61 | 54 | "@types/mocha": { |
62 | "version": "5.2.6", | |
63 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-5.2.6.tgz", | |
64 | "integrity": "sha512-1axi39YdtBI7z957vdqXI4Ac25e7YihYQtJa+Clnxg1zTJEaIRbndt71O3sP4GAMgiAm0pY26/b9BrY4MR/PMw==", | |
55 | "version": "8.0.3", | |
56 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-8.0.3.tgz", | |
57 | "integrity": "sha512-vyxR57nv8NfcU0GZu8EUXZLTbCMupIUwy95LJ6lllN+JRPG25CwMHoB1q5xKh8YKhQnHYRAn4yW2yuHbf/5xgg==", | |
65 | 58 | "dev": true |
66 | 59 | }, |
67 | 60 | "@types/node": { |
71 | 64 | "dev": true |
72 | 65 | }, |
73 | 66 | "acorn": { |
74 | "version": "6.1.1", | |
75 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.1.tgz", | |
76 | "integrity": "sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==", | |
67 | "version": "7.4.0", | |
68 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz", | |
69 | "integrity": "sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==", | |
77 | 70 | "dev": true |
78 | 71 | }, |
79 | 72 | "acorn-dynamic-import": { |
83 | 76 | "dev": true |
84 | 77 | }, |
85 | 78 | "acorn-jsx": { |
86 | "version": "5.0.2", | |
87 | "resolved": "http://artprod.dev.bloomberg.com/artifactory/api/npm/npm-repos/acorn-jsx/-/acorn-jsx-5.0.2.tgz", | |
88 | "integrity": "sha1-hLaOpEs3PE+GhgI6VR9hoht8Sk8=", | |
79 | "version": "5.2.0", | |
80 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.2.0.tgz", | |
81 | "integrity": "sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ==", | |
89 | 82 | "dev": true |
90 | 83 | }, |
91 | 84 | "ansi-colors": { |
92 | "version": "3.2.3", | |
93 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", | |
94 | "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", | |
85 | "version": "4.1.1", | |
86 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", | |
87 | "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", | |
95 | 88 | "dev": true |
96 | 89 | }, |
97 | 90 | "ansi-regex": { |
109 | 102 | "color-convert": "^1.9.0" |
110 | 103 | } |
111 | 104 | }, |
105 | "anymatch": { | |
106 | "version": "3.1.1", | |
107 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", | |
108 | "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", | |
109 | "dev": true, | |
110 | "requires": { | |
111 | "normalize-path": "^3.0.0", | |
112 | "picomatch": "^2.0.4" | |
113 | } | |
114 | }, | |
112 | 115 | "argparse": { |
113 | 116 | "version": "1.0.10", |
114 | 117 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", |
118 | 121 | "sprintf-js": "~1.0.2" |
119 | 122 | } |
120 | 123 | }, |
124 | "array.prototype.map": { | |
125 | "version": "1.0.2", | |
126 | "resolved": "https://registry.npmjs.org/array.prototype.map/-/array.prototype.map-1.0.2.tgz", | |
127 | "integrity": "sha512-Az3OYxgsa1g7xDYp86l0nnN4bcmuEITGe1rbdEBVkrqkzMgDcbdQ2R7r41pNzti+4NMces3H8gMmuioZUilLgw==", | |
128 | "dev": true, | |
129 | "requires": { | |
130 | "define-properties": "^1.1.3", | |
131 | "es-abstract": "^1.17.0-next.1", | |
132 | "es-array-method-boxes-properly": "^1.0.0", | |
133 | "is-string": "^1.0.4" | |
134 | } | |
135 | }, | |
121 | 136 | "arrify": { |
122 | 137 | "version": "1.0.1", |
123 | 138 | "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", |
125 | 140 | "dev": true |
126 | 141 | }, |
127 | 142 | "ast-types": { |
128 | "version": "0.13.1", | |
129 | "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.1.tgz", | |
130 | "integrity": "sha512-b+EeK0WlzrSmpMw5jktWvQGxblpWnvMrV+vOp69RLjzGiHwWV0vgq75DPKtUjppKni3yWwSW8WLGV3Ch/XIWcQ==", | |
143 | "version": "0.13.3", | |
144 | "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.3.tgz", | |
145 | "integrity": "sha512-XTZ7xGML849LkQP86sWdQzfhwbt3YwIO6MqbX9mUNYY98VKaaVZP7YNNm70IpwecbkkxmfC5IYAzOQ/2p29zRA==", | |
131 | 146 | "dev": true |
132 | 147 | }, |
133 | 148 | "balanced-match": { |
136 | 151 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", |
137 | 152 | "dev": true |
138 | 153 | }, |
154 | "binary-extensions": { | |
155 | "version": "2.1.0", | |
156 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz", | |
157 | "integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==", | |
158 | "dev": true | |
159 | }, | |
139 | 160 | "brace-expansion": { |
140 | 161 | "version": "1.1.11", |
141 | 162 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", |
144 | 165 | "requires": { |
145 | 166 | "balanced-match": "^1.0.0", |
146 | 167 | "concat-map": "0.0.1" |
168 | } | |
169 | }, | |
170 | "braces": { | |
171 | "version": "3.0.2", | |
172 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", | |
173 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", | |
174 | "dev": true, | |
175 | "requires": { | |
176 | "fill-range": "^7.0.1" | |
147 | 177 | } |
148 | 178 | }, |
149 | 179 | "browser-stdout": { |
186 | 216 | } |
187 | 217 | } |
188 | 218 | }, |
219 | "chokidar": { | |
220 | "version": "3.3.1", | |
221 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.1.tgz", | |
222 | "integrity": "sha512-4QYCEWOcK3OJrxwvyyAOxFuhpvOVCYkr33LPfFNBjAD/w3sEzWsp2BUOkI4l9bHvWioAd0rc6NlHUOEaWkTeqg==", | |
223 | "dev": true, | |
224 | "requires": { | |
225 | "anymatch": "~3.1.1", | |
226 | "braces": "~3.0.2", | |
227 | "fsevents": "~2.1.2", | |
228 | "glob-parent": "~5.1.0", | |
229 | "is-binary-path": "~2.1.0", | |
230 | "is-glob": "~4.0.1", | |
231 | "normalize-path": "~3.0.0", | |
232 | "readdirp": "~3.3.0" | |
233 | } | |
234 | }, | |
189 | 235 | "cliui": { |
190 | "version": "4.1.0", | |
191 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", | |
192 | "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", | |
193 | "dev": true, | |
194 | "requires": { | |
195 | "string-width": "^2.1.1", | |
196 | "strip-ansi": "^4.0.0", | |
197 | "wrap-ansi": "^2.0.0" | |
198 | } | |
199 | }, | |
200 | "code-point-at": { | |
201 | "version": "1.1.0", | |
202 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", | |
203 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", | |
204 | "dev": true | |
236 | "version": "5.0.0", | |
237 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", | |
238 | "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", | |
239 | "dev": true, | |
240 | "requires": { | |
241 | "string-width": "^3.1.0", | |
242 | "strip-ansi": "^5.2.0", | |
243 | "wrap-ansi": "^5.1.0" | |
244 | }, | |
245 | "dependencies": { | |
246 | "ansi-regex": { | |
247 | "version": "4.1.0", | |
248 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", | |
249 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", | |
250 | "dev": true | |
251 | }, | |
252 | "string-width": { | |
253 | "version": "3.1.0", | |
254 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", | |
255 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", | |
256 | "dev": true, | |
257 | "requires": { | |
258 | "emoji-regex": "^7.0.1", | |
259 | "is-fullwidth-code-point": "^2.0.0", | |
260 | "strip-ansi": "^5.1.0" | |
261 | } | |
262 | }, | |
263 | "strip-ansi": { | |
264 | "version": "5.2.0", | |
265 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", | |
266 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", | |
267 | "dev": true, | |
268 | "requires": { | |
269 | "ansi-regex": "^4.1.0" | |
270 | } | |
271 | } | |
272 | } | |
205 | 273 | }, |
206 | 274 | "color-convert": { |
207 | 275 | "version": "1.9.3", |
224 | 292 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", |
225 | 293 | "dev": true |
226 | 294 | }, |
227 | "cross-spawn": { | |
228 | "version": "6.0.5", | |
229 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", | |
230 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", | |
231 | "dev": true, | |
232 | "requires": { | |
233 | "nice-try": "^1.0.4", | |
234 | "path-key": "^2.0.1", | |
235 | "semver": "^5.5.0", | |
236 | "shebang-command": "^1.2.0", | |
237 | "which": "^1.2.9" | |
238 | } | |
239 | }, | |
240 | 295 | "debug": { |
241 | 296 | "version": "3.2.6", |
242 | 297 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", |
273 | 328 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", |
274 | 329 | "dev": true |
275 | 330 | }, |
276 | "end-of-stream": { | |
277 | "version": "1.4.1", | |
278 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", | |
279 | "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", | |
280 | "dev": true, | |
281 | "requires": { | |
282 | "once": "^1.4.0" | |
283 | } | |
284 | }, | |
285 | 331 | "es-abstract": { |
286 | "version": "1.13.0", | |
287 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.13.0.tgz", | |
288 | "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==", | |
289 | "dev": true, | |
290 | "requires": { | |
291 | "es-to-primitive": "^1.2.0", | |
332 | "version": "1.17.6", | |
333 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.6.tgz", | |
334 | "integrity": "sha512-Fr89bON3WFyUi5EvAeI48QTWX0AyekGgLA8H+c+7fbfCkJwRWRMLd8CQedNEyJuoYYhmtEqY92pgte1FAhBlhw==", | |
335 | "dev": true, | |
336 | "requires": { | |
337 | "es-to-primitive": "^1.2.1", | |
292 | 338 | "function-bind": "^1.1.1", |
293 | 339 | "has": "^1.0.3", |
294 | "is-callable": "^1.1.4", | |
295 | "is-regex": "^1.0.4", | |
296 | "object-keys": "^1.0.12" | |
340 | "has-symbols": "^1.0.1", | |
341 | "is-callable": "^1.2.0", | |
342 | "is-regex": "^1.1.0", | |
343 | "object-inspect": "^1.7.0", | |
344 | "object-keys": "^1.1.1", | |
345 | "object.assign": "^4.1.0", | |
346 | "string.prototype.trimend": "^1.0.1", | |
347 | "string.prototype.trimstart": "^1.0.1" | |
348 | } | |
349 | }, | |
350 | "es-array-method-boxes-properly": { | |
351 | "version": "1.0.0", | |
352 | "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", | |
353 | "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", | |
354 | "dev": true | |
355 | }, | |
356 | "es-get-iterator": { | |
357 | "version": "1.1.0", | |
358 | "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.0.tgz", | |
359 | "integrity": "sha512-UfrmHuWQlNMTs35e1ypnvikg6jCz3SK8v8ImvmDsh36fCVUR1MqoFDiyn0/k52C8NqO3YsO8Oe0azeesNuqSsQ==", | |
360 | "dev": true, | |
361 | "requires": { | |
362 | "es-abstract": "^1.17.4", | |
363 | "has-symbols": "^1.0.1", | |
364 | "is-arguments": "^1.0.4", | |
365 | "is-map": "^2.0.1", | |
366 | "is-set": "^2.0.1", | |
367 | "is-string": "^1.0.5", | |
368 | "isarray": "^2.0.5" | |
297 | 369 | } |
298 | 370 | }, |
299 | 371 | "es-to-primitive": { |
300 | "version": "1.2.0", | |
301 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", | |
302 | "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", | |
372 | "version": "1.2.1", | |
373 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", | |
374 | "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", | |
303 | 375 | "dev": true, |
304 | 376 | "requires": { |
305 | 377 | "is-callable": "^1.1.4", |
314 | 386 | "dev": true |
315 | 387 | }, |
316 | 388 | "eslint-visitor-keys": { |
317 | "version": "1.1.0", | |
318 | "resolved": "http://artprod.dev.bloomberg.com/artifactory/api/npm/npm-repos/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz", | |
319 | "integrity": "sha1-4qgs6oT/JGrW+1f5veW0ZiFFnsI=", | |
389 | "version": "1.3.0", | |
390 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", | |
391 | "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", | |
320 | 392 | "dev": true |
321 | 393 | }, |
322 | 394 | "espree": { |
323 | "version": "6.1.1", | |
324 | "resolved": "http://artprod.dev.bloomberg.com/artifactory/api/npm/npm-repos/espree/-/espree-6.1.1.tgz", | |
325 | "integrity": "sha1-f4Dl9yV/xH20UAItcj41ba6x5d4=", | |
326 | "dev": true, | |
327 | "requires": { | |
328 | "acorn": "^7.0.0", | |
329 | "acorn-jsx": "^5.0.2", | |
330 | "eslint-visitor-keys": "^1.1.0" | |
331 | }, | |
332 | "dependencies": { | |
333 | "acorn": { | |
334 | "version": "7.0.0", | |
335 | "resolved": "http://artprod.dev.bloomberg.com/artifactory/api/npm/npm-repos/acorn/-/acorn-7.0.0.tgz", | |
336 | "integrity": "sha1-JrjRzZqbcANQtxwJBVRvZNEoTno=", | |
337 | "dev": true | |
338 | } | |
395 | "version": "7.3.0", | |
396 | "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.0.tgz", | |
397 | "integrity": "sha512-dksIWsvKCixn1yrEXO8UosNSxaDoSYpq9reEjZSbHLpT5hpaCAKTLBwq0RHtLrIr+c0ByiYzWT8KTMRzoRCNlw==", | |
398 | "dev": true, | |
399 | "requires": { | |
400 | "acorn": "^7.4.0", | |
401 | "acorn-jsx": "^5.2.0", | |
402 | "eslint-visitor-keys": "^1.3.0" | |
339 | 403 | } |
340 | 404 | }, |
341 | 405 | "esprima": { |
351 | 415 | "dev": true |
352 | 416 | }, |
353 | 417 | "esutils": { |
354 | "version": "2.0.2", | |
355 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", | |
356 | "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", | |
357 | "dev": true | |
358 | }, | |
359 | "execa": { | |
360 | "version": "1.0.0", | |
361 | "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", | |
362 | "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", | |
363 | "dev": true, | |
364 | "requires": { | |
365 | "cross-spawn": "^6.0.0", | |
366 | "get-stream": "^4.0.0", | |
367 | "is-stream": "^1.1.0", | |
368 | "npm-run-path": "^2.0.0", | |
369 | "p-finally": "^1.0.0", | |
370 | "signal-exit": "^3.0.0", | |
371 | "strip-eof": "^1.0.0" | |
418 | "version": "2.0.3", | |
419 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", | |
420 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", | |
421 | "dev": true | |
422 | }, | |
423 | "fill-range": { | |
424 | "version": "7.0.1", | |
425 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", | |
426 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", | |
427 | "dev": true, | |
428 | "requires": { | |
429 | "to-regex-range": "^5.0.1" | |
372 | 430 | } |
373 | 431 | }, |
374 | 432 | "find-up": { |
375 | "version": "3.0.0", | |
376 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", | |
377 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", | |
378 | "dev": true, | |
379 | "requires": { | |
380 | "locate-path": "^3.0.0" | |
433 | "version": "4.1.0", | |
434 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", | |
435 | "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", | |
436 | "dev": true, | |
437 | "requires": { | |
438 | "locate-path": "^5.0.0", | |
439 | "path-exists": "^4.0.0" | |
381 | 440 | } |
382 | 441 | }, |
383 | 442 | "flat": { |
390 | 449 | } |
391 | 450 | }, |
392 | 451 | "flow-parser": { |
393 | "version": "0.98.1", | |
394 | "resolved": "https://registry.npmjs.org/flow-parser/-/flow-parser-0.98.1.tgz", | |
395 | "integrity": "sha512-vpDh0ZTGzUH/Ge5kvt4KdTNBatTm1OGfOSUM4hUDBs3bktvitoqzFRQPv/u5Goi9a/rGyuRRF02QIsIG5YQigg==", | |
452 | "version": "0.132.0", | |
453 | "resolved": "https://registry.npmjs.org/flow-parser/-/flow-parser-0.132.0.tgz", | |
454 | "integrity": "sha512-y1P37zDCPSdphlk+w+roCqcOar6iQdNaAJldJ6xx5/2r4ZRv4KHO+qL+AXwPWp+34eN+oPxPjWnU7GybJnyISQ==", | |
396 | 455 | "dev": true |
397 | 456 | }, |
398 | 457 | "fs.realpath": { |
401 | 460 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", |
402 | 461 | "dev": true |
403 | 462 | }, |
463 | "fsevents": { | |
464 | "version": "2.1.3", | |
465 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", | |
466 | "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", | |
467 | "dev": true, | |
468 | "optional": true | |
469 | }, | |
404 | 470 | "function-bind": { |
405 | 471 | "version": "1.1.1", |
406 | 472 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", |
413 | 479 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", |
414 | 480 | "dev": true |
415 | 481 | }, |
416 | "get-stream": { | |
417 | "version": "4.1.0", | |
418 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", | |
419 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", | |
420 | "dev": true, | |
421 | "requires": { | |
422 | "pump": "^3.0.0" | |
423 | } | |
424 | }, | |
425 | 482 | "glob": { |
426 | "version": "7.1.4", | |
427 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", | |
428 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", | |
483 | "version": "7.1.6", | |
484 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", | |
485 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", | |
429 | 486 | "dev": true, |
430 | 487 | "requires": { |
431 | 488 | "fs.realpath": "^1.0.0", |
436 | 493 | "path-is-absolute": "^1.0.0" |
437 | 494 | } |
438 | 495 | }, |
496 | "glob-parent": { | |
497 | "version": "5.1.1", | |
498 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", | |
499 | "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", | |
500 | "dev": true, | |
501 | "requires": { | |
502 | "is-glob": "^4.0.1" | |
503 | } | |
504 | }, | |
439 | 505 | "growl": { |
440 | 506 | "version": "1.10.5", |
441 | 507 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", |
458 | 524 | "dev": true |
459 | 525 | }, |
460 | 526 | "has-symbols": { |
461 | "version": "1.0.0", | |
462 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", | |
463 | "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", | |
527 | "version": "1.0.1", | |
528 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", | |
529 | "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", | |
464 | 530 | "dev": true |
465 | 531 | }, |
466 | 532 | "he": { |
480 | 546 | } |
481 | 547 | }, |
482 | 548 | "inherits": { |
483 | "version": "2.0.3", | |
484 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", | |
485 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", | |
486 | "dev": true | |
487 | }, | |
488 | "invert-kv": { | |
489 | "version": "2.0.0", | |
490 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", | |
491 | "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", | |
492 | "dev": true | |
549 | "version": "2.0.4", | |
550 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", | |
551 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", | |
552 | "dev": true | |
553 | }, | |
554 | "is-arguments": { | |
555 | "version": "1.0.4", | |
556 | "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.0.4.tgz", | |
557 | "integrity": "sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA==", | |
558 | "dev": true | |
559 | }, | |
560 | "is-binary-path": { | |
561 | "version": "2.1.0", | |
562 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", | |
563 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", | |
564 | "dev": true, | |
565 | "requires": { | |
566 | "binary-extensions": "^2.0.0" | |
567 | } | |
493 | 568 | }, |
494 | 569 | "is-buffer": { |
495 | "version": "2.0.3", | |
496 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz", | |
497 | "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==", | |
570 | "version": "2.0.4", | |
571 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz", | |
572 | "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==", | |
498 | 573 | "dev": true |
499 | 574 | }, |
500 | 575 | "is-callable": { |
501 | "version": "1.1.4", | |
502 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", | |
503 | "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", | |
576 | "version": "1.2.0", | |
577 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", | |
578 | "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==", | |
504 | 579 | "dev": true |
505 | 580 | }, |
506 | 581 | "is-date-object": { |
507 | "version": "1.0.1", | |
508 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", | |
509 | "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", | |
582 | "version": "1.0.2", | |
583 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", | |
584 | "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", | |
585 | "dev": true | |
586 | }, | |
587 | "is-extglob": { | |
588 | "version": "2.1.1", | |
589 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", | |
590 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", | |
510 | 591 | "dev": true |
511 | 592 | }, |
512 | 593 | "is-fullwidth-code-point": { |
515 | 596 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", |
516 | 597 | "dev": true |
517 | 598 | }, |
599 | "is-glob": { | |
600 | "version": "4.0.1", | |
601 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", | |
602 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", | |
603 | "dev": true, | |
604 | "requires": { | |
605 | "is-extglob": "^2.1.1" | |
606 | } | |
607 | }, | |
608 | "is-map": { | |
609 | "version": "2.0.1", | |
610 | "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.1.tgz", | |
611 | "integrity": "sha512-T/S49scO8plUiAOA2DBTBG3JHpn1yiw0kRp6dgiZ0v2/6twi5eiB0rHtHFH9ZIrvlWc6+4O+m4zg5+Z833aXgw==", | |
612 | "dev": true | |
613 | }, | |
614 | "is-number": { | |
615 | "version": "7.0.0", | |
616 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", | |
617 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", | |
618 | "dev": true | |
619 | }, | |
620 | "is-plain-obj": { | |
621 | "version": "1.1.0", | |
622 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", | |
623 | "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", | |
624 | "dev": true | |
625 | }, | |
518 | 626 | "is-regex": { |
519 | "version": "1.0.4", | |
520 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", | |
521 | "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", | |
522 | "dev": true, | |
523 | "requires": { | |
524 | "has": "^1.0.1" | |
525 | } | |
526 | }, | |
527 | "is-stream": { | |
528 | "version": "1.1.0", | |
529 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", | |
530 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", | |
627 | "version": "1.1.1", | |
628 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz", | |
629 | "integrity": "sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg==", | |
630 | "dev": true, | |
631 | "requires": { | |
632 | "has-symbols": "^1.0.1" | |
633 | } | |
634 | }, | |
635 | "is-set": { | |
636 | "version": "2.0.1", | |
637 | "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.1.tgz", | |
638 | "integrity": "sha512-eJEzOtVyenDs1TMzSQ3kU3K+E0GUS9sno+F0OBT97xsgcJsF9nXMBtkT9/kut5JEpM7oL7X/0qxR17K3mcwIAA==", | |
639 | "dev": true | |
640 | }, | |
641 | "is-string": { | |
642 | "version": "1.0.5", | |
643 | "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz", | |
644 | "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==", | |
531 | 645 | "dev": true |
532 | 646 | }, |
533 | 647 | "is-symbol": { |
534 | "version": "1.0.2", | |
535 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", | |
536 | "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", | |
537 | "dev": true, | |
538 | "requires": { | |
539 | "has-symbols": "^1.0.0" | |
540 | } | |
648 | "version": "1.0.3", | |
649 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", | |
650 | "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", | |
651 | "dev": true, | |
652 | "requires": { | |
653 | "has-symbols": "^1.0.1" | |
654 | } | |
655 | }, | |
656 | "isarray": { | |
657 | "version": "2.0.5", | |
658 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", | |
659 | "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", | |
660 | "dev": true | |
541 | 661 | }, |
542 | 662 | "isexe": { |
543 | 663 | "version": "2.0.0", |
545 | 665 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", |
546 | 666 | "dev": true |
547 | 667 | }, |
668 | "iterate-iterator": { | |
669 | "version": "1.0.1", | |
670 | "resolved": "https://registry.npmjs.org/iterate-iterator/-/iterate-iterator-1.0.1.tgz", | |
671 | "integrity": "sha512-3Q6tudGN05kbkDQDI4CqjaBf4qf85w6W6GnuZDtUVYwKgtC1q8yxYX7CZed7N+tLzQqS6roujWvszf13T+n9aw==", | |
672 | "dev": true | |
673 | }, | |
674 | "iterate-value": { | |
675 | "version": "1.0.2", | |
676 | "resolved": "https://registry.npmjs.org/iterate-value/-/iterate-value-1.0.2.tgz", | |
677 | "integrity": "sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ==", | |
678 | "dev": true, | |
679 | "requires": { | |
680 | "es-get-iterator": "^1.0.2", | |
681 | "iterate-iterator": "^1.0.1" | |
682 | } | |
683 | }, | |
548 | 684 | "js-yaml": { |
549 | 685 | "version": "3.13.1", |
550 | 686 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", |
555 | 691 | "esprima": "^4.0.0" |
556 | 692 | } |
557 | 693 | }, |
558 | "lcid": { | |
559 | "version": "2.0.0", | |
560 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", | |
561 | "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", | |
562 | "dev": true, | |
563 | "requires": { | |
564 | "invert-kv": "^2.0.0" | |
565 | } | |
566 | }, | |
567 | 694 | "locate-path": { |
695 | "version": "5.0.0", | |
696 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", | |
697 | "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", | |
698 | "dev": true, | |
699 | "requires": { | |
700 | "p-locate": "^4.1.0" | |
701 | } | |
702 | }, | |
703 | "lodash": { | |
704 | "version": "4.17.20", | |
705 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", | |
706 | "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", | |
707 | "dev": true | |
708 | }, | |
709 | "log-symbols": { | |
568 | 710 | "version": "3.0.0", |
569 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", | |
570 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", | |
571 | "dev": true, | |
572 | "requires": { | |
573 | "p-locate": "^3.0.0", | |
574 | "path-exists": "^3.0.0" | |
575 | } | |
576 | }, | |
577 | "lodash": { | |
578 | "version": "4.17.11", | |
579 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", | |
580 | "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", | |
581 | "dev": true | |
582 | }, | |
583 | "log-symbols": { | |
584 | "version": "2.2.0", | |
585 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", | |
586 | "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", | |
587 | "dev": true, | |
588 | "requires": { | |
589 | "chalk": "^2.0.1" | |
711 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", | |
712 | "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", | |
713 | "dev": true, | |
714 | "requires": { | |
715 | "chalk": "^2.4.2" | |
716 | } | |
717 | }, | |
718 | "magic-string": { | |
719 | "version": "0.25.7", | |
720 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz", | |
721 | "integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==", | |
722 | "dev": true, | |
723 | "requires": { | |
724 | "sourcemap-codec": "^1.4.4" | |
590 | 725 | } |
591 | 726 | }, |
592 | 727 | "make-error": { |
593 | "version": "1.3.5", | |
594 | "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", | |
595 | "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==", | |
596 | "dev": true | |
597 | }, | |
598 | "map-age-cleaner": { | |
599 | "version": "0.1.3", | |
600 | "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", | |
601 | "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", | |
602 | "dev": true, | |
603 | "requires": { | |
604 | "p-defer": "^1.0.0" | |
605 | } | |
606 | }, | |
607 | "mem": { | |
608 | "version": "4.3.0", | |
609 | "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", | |
610 | "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", | |
611 | "dev": true, | |
612 | "requires": { | |
613 | "map-age-cleaner": "^0.1.1", | |
614 | "mimic-fn": "^2.0.0", | |
615 | "p-is-promise": "^2.0.0" | |
616 | } | |
617 | }, | |
618 | "mimic-fn": { | |
619 | "version": "2.1.0", | |
620 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", | |
621 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", | |
728 | "version": "1.3.6", | |
729 | "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", | |
730 | "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", | |
622 | 731 | "dev": true |
623 | 732 | }, |
624 | 733 | "minimatch": { |
646 | 755 | } |
647 | 756 | }, |
648 | 757 | "mocha": { |
649 | "version": "6.1.4", | |
650 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.1.4.tgz", | |
651 | "integrity": "sha512-PN8CIy4RXsIoxoFJzS4QNnCH4psUCPWc4/rPrst/ecSJJbLBkubMiyGCP2Kj/9YnWbotFqAoeXyXMucj7gwCFg==", | |
652 | "dev": true, | |
653 | "requires": { | |
654 | "ansi-colors": "3.2.3", | |
758 | "version": "8.1.1", | |
759 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-8.1.1.tgz", | |
760 | "integrity": "sha512-p7FuGlYH8t7gaiodlFreseLxEmxTgvyG9RgPHODFPySNhwUehu8NIb0vdSt3WFckSneswZ0Un5typYcWElk7HQ==", | |
761 | "dev": true, | |
762 | "requires": { | |
763 | "ansi-colors": "4.1.1", | |
655 | 764 | "browser-stdout": "1.3.1", |
765 | "chokidar": "3.3.1", | |
656 | 766 | "debug": "3.2.6", |
657 | "diff": "3.5.0", | |
767 | "diff": "4.0.2", | |
658 | 768 | "escape-string-regexp": "1.0.5", |
659 | "find-up": "3.0.0", | |
660 | "glob": "7.1.3", | |
769 | "find-up": "4.1.0", | |
770 | "glob": "7.1.6", | |
661 | 771 | "growl": "1.10.5", |
662 | 772 | "he": "1.2.0", |
663 | 773 | "js-yaml": "3.13.1", |
664 | "log-symbols": "2.2.0", | |
774 | "log-symbols": "3.0.0", | |
665 | 775 | "minimatch": "3.0.4", |
666 | "mkdirp": "0.5.1", | |
667 | "ms": "2.1.1", | |
668 | "node-environment-flags": "1.0.5", | |
776 | "ms": "2.1.2", | |
669 | 777 | "object.assign": "4.1.0", |
670 | "strip-json-comments": "2.0.1", | |
671 | "supports-color": "6.0.0", | |
672 | "which": "1.3.1", | |
778 | "promise.allsettled": "1.0.2", | |
779 | "serialize-javascript": "4.0.0", | |
780 | "strip-json-comments": "3.0.1", | |
781 | "supports-color": "7.1.0", | |
782 | "which": "2.0.2", | |
673 | 783 | "wide-align": "1.1.3", |
674 | "yargs": "13.2.2", | |
675 | "yargs-parser": "13.0.0", | |
676 | "yargs-unparser": "1.5.0" | |
784 | "workerpool": "6.0.0", | |
785 | "yargs": "13.3.2", | |
786 | "yargs-parser": "13.1.2", | |
787 | "yargs-unparser": "1.6.1" | |
677 | 788 | }, |
678 | 789 | "dependencies": { |
679 | "glob": { | |
680 | "version": "7.1.3", | |
681 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", | |
682 | "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", | |
683 | "dev": true, | |
684 | "requires": { | |
685 | "fs.realpath": "^1.0.0", | |
686 | "inflight": "^1.0.4", | |
687 | "inherits": "2", | |
688 | "minimatch": "^3.0.4", | |
689 | "once": "^1.3.0", | |
690 | "path-is-absolute": "^1.0.0" | |
691 | } | |
790 | "diff": { | |
791 | "version": "4.0.2", | |
792 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", | |
793 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", | |
794 | "dev": true | |
692 | 795 | } |
693 | 796 | } |
694 | 797 | }, |
695 | 798 | "ms": { |
696 | "version": "2.1.1", | |
697 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", | |
698 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", | |
699 | "dev": true | |
700 | }, | |
701 | "nice-try": { | |
702 | "version": "1.0.5", | |
703 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", | |
704 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", | |
705 | "dev": true | |
706 | }, | |
707 | "node-environment-flags": { | |
708 | "version": "1.0.5", | |
709 | "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", | |
710 | "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", | |
711 | "dev": true, | |
712 | "requires": { | |
713 | "object.getownpropertydescriptors": "^2.0.3", | |
714 | "semver": "^5.7.0" | |
715 | } | |
716 | }, | |
717 | "npm-run-path": { | |
718 | "version": "2.0.2", | |
719 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", | |
720 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", | |
721 | "dev": true, | |
722 | "requires": { | |
723 | "path-key": "^2.0.0" | |
724 | } | |
725 | }, | |
726 | "number-is-nan": { | |
727 | "version": "1.0.1", | |
728 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", | |
729 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", | |
799 | "version": "2.1.2", | |
800 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", | |
801 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", | |
802 | "dev": true | |
803 | }, | |
804 | "normalize-path": { | |
805 | "version": "3.0.0", | |
806 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", | |
807 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", | |
808 | "dev": true | |
809 | }, | |
810 | "object-inspect": { | |
811 | "version": "1.8.0", | |
812 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.8.0.tgz", | |
813 | "integrity": "sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA==", | |
730 | 814 | "dev": true |
731 | 815 | }, |
732 | 816 | "object-keys": { |
747 | 831 | "object-keys": "^1.0.11" |
748 | 832 | } |
749 | 833 | }, |
750 | "object.getownpropertydescriptors": { | |
751 | "version": "2.0.3", | |
752 | "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", | |
753 | "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", | |
754 | "dev": true, | |
755 | "requires": { | |
756 | "define-properties": "^1.1.2", | |
757 | "es-abstract": "^1.5.1" | |
758 | } | |
759 | }, | |
760 | 834 | "once": { |
761 | 835 | "version": "1.4.0", |
762 | 836 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", |
766 | 840 | "wrappy": "1" |
767 | 841 | } |
768 | 842 | }, |
769 | "os-locale": { | |
770 | "version": "3.1.0", | |
771 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", | |
772 | "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", | |
773 | "dev": true, | |
774 | "requires": { | |
775 | "execa": "^1.0.0", | |
776 | "lcid": "^2.0.0", | |
777 | "mem": "^4.0.0" | |
778 | } | |
779 | }, | |
780 | "p-defer": { | |
781 | "version": "1.0.0", | |
782 | "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", | |
783 | "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", | |
784 | "dev": true | |
785 | }, | |
786 | "p-finally": { | |
787 | "version": "1.0.0", | |
788 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", | |
789 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", | |
790 | "dev": true | |
791 | }, | |
792 | "p-is-promise": { | |
793 | "version": "2.1.0", | |
794 | "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", | |
795 | "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", | |
796 | "dev": true | |
797 | }, | |
798 | 843 | "p-limit": { |
799 | "version": "2.2.0", | |
800 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz", | |
801 | "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", | |
844 | "version": "2.3.0", | |
845 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", | |
846 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", | |
802 | 847 | "dev": true, |
803 | 848 | "requires": { |
804 | 849 | "p-try": "^2.0.0" |
805 | 850 | } |
806 | 851 | }, |
807 | 852 | "p-locate": { |
808 | "version": "3.0.0", | |
809 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", | |
810 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", | |
811 | "dev": true, | |
812 | "requires": { | |
813 | "p-limit": "^2.0.0" | |
853 | "version": "4.1.0", | |
854 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", | |
855 | "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", | |
856 | "dev": true, | |
857 | "requires": { | |
858 | "p-limit": "^2.2.0" | |
814 | 859 | } |
815 | 860 | }, |
816 | 861 | "p-try": { |
820 | 865 | "dev": true |
821 | 866 | }, |
822 | 867 | "path-exists": { |
823 | "version": "3.0.0", | |
824 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", | |
825 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", | |
868 | "version": "4.0.0", | |
869 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", | |
870 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", | |
826 | 871 | "dev": true |
827 | 872 | }, |
828 | 873 | "path-is-absolute": { |
831 | 876 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", |
832 | 877 | "dev": true |
833 | 878 | }, |
834 | "path-key": { | |
835 | "version": "2.0.1", | |
836 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", | |
837 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", | |
879 | "picomatch": { | |
880 | "version": "2.2.2", | |
881 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", | |
882 | "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", | |
838 | 883 | "dev": true |
839 | 884 | }, |
840 | 885 | "private": { |
843 | 888 | "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", |
844 | 889 | "dev": true |
845 | 890 | }, |
846 | "pump": { | |
847 | "version": "3.0.0", | |
848 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", | |
849 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", | |
850 | "dev": true, | |
851 | "requires": { | |
852 | "end-of-stream": "^1.1.0", | |
853 | "once": "^1.3.1" | |
891 | "promise.allsettled": { | |
892 | "version": "1.0.2", | |
893 | "resolved": "https://registry.npmjs.org/promise.allsettled/-/promise.allsettled-1.0.2.tgz", | |
894 | "integrity": "sha512-UpcYW5S1RaNKT6pd+s9jp9K9rlQge1UXKskec0j6Mmuq7UJCvlS2J2/s/yuPN8ehftf9HXMxWlKiPbGGUzpoRg==", | |
895 | "dev": true, | |
896 | "requires": { | |
897 | "array.prototype.map": "^1.0.1", | |
898 | "define-properties": "^1.1.3", | |
899 | "es-abstract": "^1.17.0-next.1", | |
900 | "function-bind": "^1.1.1", | |
901 | "iterate-value": "^1.0.0" | |
902 | } | |
903 | }, | |
904 | "randombytes": { | |
905 | "version": "2.1.0", | |
906 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", | |
907 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", | |
908 | "dev": true, | |
909 | "requires": { | |
910 | "safe-buffer": "^5.1.0" | |
911 | } | |
912 | }, | |
913 | "readdirp": { | |
914 | "version": "3.3.0", | |
915 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.3.0.tgz", | |
916 | "integrity": "sha512-zz0pAkSPOXXm1viEwygWIPSPkcBYjW1xU5j/JBh5t9bGCJwa6f9+BJa6VaB2g+b55yVrmXzqkyLf4xaWYM0IkQ==", | |
917 | "dev": true, | |
918 | "requires": { | |
919 | "picomatch": "^2.0.7" | |
854 | 920 | } |
855 | 921 | }, |
856 | 922 | "recast": { |
857 | "version": "0.18.1", | |
858 | "resolved": "https://registry.npmjs.org/recast/-/recast-0.18.1.tgz", | |
859 | "integrity": "sha512-Ri42yIOwHetqKgEhQSS4N1B9wSLn+eYcyLoQfuSpvd661Jty1Q3P0FXkzjIQ9XxTN+3+kRu1JFXbRmUCUmde5Q==", | |
860 | "dev": true, | |
861 | "requires": { | |
862 | "ast-types": "0.13.1", | |
923 | "version": "0.20.0", | |
924 | "resolved": "https://registry.npmjs.org/recast/-/recast-0.20.0.tgz", | |
925 | "integrity": "sha512-4fxsO5q170W1Ihz3uUXY5dkb+zNTK0CUt44K7avxhbkXbLFAzorfpj+7PNlrYWI2AaNWGzcnNuKwIQfVp1d6XQ==", | |
926 | "dev": true, | |
927 | "requires": { | |
928 | "ast-types": "0.13.3", | |
863 | 929 | "esprima": "~4.0.0", |
864 | 930 | "private": "^0.1.8", |
865 | 931 | "source-map": "~0.6.1" |
866 | 932 | } |
867 | 933 | }, |
868 | 934 | "reify": { |
869 | "version": "0.20.6", | |
870 | "resolved": "https://registry.npmjs.org/reify/-/reify-0.20.6.tgz", | |
871 | "integrity": "sha512-kCgL6HyzFBK3fIKwurPn0O4+mzdK4R4uOYyQxXaYm4B+QgrQ1EHiQ222qsLPEhB1ReBRh+njO0I4kw7hCGfM2w==", | |
935 | "version": "0.20.12", | |
936 | "resolved": "https://registry.npmjs.org/reify/-/reify-0.20.12.tgz", | |
937 | "integrity": "sha512-4BzKwDWyJJbukwI6xIJRh+BDTitoGzxdgYPiQQ1zbcTZW6I8xgHPw1DnVuEs/mEZQlYm1e09DcFSApb4UaR5bQ==", | |
872 | 938 | "dev": true, |
873 | 939 | "requires": { |
874 | 940 | "acorn": "^6.1.1", |
875 | 941 | "acorn-dynamic-import": "^4.0.0", |
942 | "magic-string": "^0.25.3", | |
876 | 943 | "semver": "^5.4.1" |
944 | }, | |
945 | "dependencies": { | |
946 | "acorn": { | |
947 | "version": "6.4.1", | |
948 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.1.tgz", | |
949 | "integrity": "sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==", | |
950 | "dev": true | |
951 | } | |
877 | 952 | } |
878 | 953 | }, |
879 | 954 | "require-directory": { |
888 | 963 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", |
889 | 964 | "dev": true |
890 | 965 | }, |
966 | "safe-buffer": { | |
967 | "version": "5.2.1", | |
968 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", | |
969 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", | |
970 | "dev": true | |
971 | }, | |
891 | 972 | "semver": { |
892 | "version": "5.7.0", | |
893 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", | |
894 | "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", | |
895 | "dev": true | |
973 | "version": "5.7.1", | |
974 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", | |
975 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", | |
976 | "dev": true | |
977 | }, | |
978 | "serialize-javascript": { | |
979 | "version": "4.0.0", | |
980 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", | |
981 | "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", | |
982 | "dev": true, | |
983 | "requires": { | |
984 | "randombytes": "^2.1.0" | |
985 | } | |
896 | 986 | }, |
897 | 987 | "set-blocking": { |
898 | 988 | "version": "2.0.0", |
900 | 990 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", |
901 | 991 | "dev": true |
902 | 992 | }, |
903 | "shebang-command": { | |
904 | "version": "1.2.0", | |
905 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", | |
906 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", | |
907 | "dev": true, | |
908 | "requires": { | |
909 | "shebang-regex": "^1.0.0" | |
910 | } | |
911 | }, | |
912 | "shebang-regex": { | |
913 | "version": "1.0.0", | |
914 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", | |
915 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", | |
916 | "dev": true | |
917 | }, | |
918 | "signal-exit": { | |
919 | "version": "3.0.2", | |
920 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", | |
921 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", | |
922 | "dev": true | |
923 | }, | |
924 | 993 | "source-map": { |
925 | 994 | "version": "0.6.1", |
926 | 995 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", |
928 | 997 | "dev": true |
929 | 998 | }, |
930 | 999 | "source-map-support": { |
931 | "version": "0.5.12", | |
932 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.12.tgz", | |
933 | "integrity": "sha512-4h2Pbvyy15EE02G+JOZpUCmqWJuqrs+sEkzewTm++BPi7Hvn/HwcqLAcNxYAyI0x13CpPPn+kMjl+hplXMHITQ==", | |
1000 | "version": "0.5.19", | |
1001 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", | |
1002 | "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", | |
934 | 1003 | "dev": true, |
935 | 1004 | "requires": { |
936 | 1005 | "buffer-from": "^1.0.0", |
937 | 1006 | "source-map": "^0.6.0" |
938 | 1007 | } |
1008 | }, | |
1009 | "sourcemap-codec": { | |
1010 | "version": "1.4.8", | |
1011 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", | |
1012 | "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", | |
1013 | "dev": true | |
939 | 1014 | }, |
940 | 1015 | "sprintf-js": { |
941 | 1016 | "version": "1.0.3", |
953 | 1028 | "strip-ansi": "^4.0.0" |
954 | 1029 | } |
955 | 1030 | }, |
1031 | "string.prototype.trimend": { | |
1032 | "version": "1.0.1", | |
1033 | "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz", | |
1034 | "integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==", | |
1035 | "dev": true, | |
1036 | "requires": { | |
1037 | "define-properties": "^1.1.3", | |
1038 | "es-abstract": "^1.17.5" | |
1039 | } | |
1040 | }, | |
1041 | "string.prototype.trimstart": { | |
1042 | "version": "1.0.1", | |
1043 | "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz", | |
1044 | "integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==", | |
1045 | "dev": true, | |
1046 | "requires": { | |
1047 | "define-properties": "^1.1.3", | |
1048 | "es-abstract": "^1.17.5" | |
1049 | } | |
1050 | }, | |
956 | 1051 | "strip-ansi": { |
957 | 1052 | "version": "4.0.0", |
958 | 1053 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", |
962 | 1057 | "ansi-regex": "^3.0.0" |
963 | 1058 | } |
964 | 1059 | }, |
965 | "strip-eof": { | |
966 | "version": "1.0.0", | |
967 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", | |
968 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", | |
969 | "dev": true | |
970 | }, | |
971 | 1060 | "strip-json-comments": { |
972 | "version": "2.0.1", | |
973 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", | |
974 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", | |
1061 | "version": "3.0.1", | |
1062 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.0.1.tgz", | |
1063 | "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", | |
975 | 1064 | "dev": true |
976 | 1065 | }, |
977 | 1066 | "supports-color": { |
978 | "version": "6.0.0", | |
979 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", | |
980 | "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", | |
981 | "dev": true, | |
982 | "requires": { | |
983 | "has-flag": "^3.0.0" | |
1067 | "version": "7.1.0", | |
1068 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", | |
1069 | "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", | |
1070 | "dev": true, | |
1071 | "requires": { | |
1072 | "has-flag": "^4.0.0" | |
1073 | }, | |
1074 | "dependencies": { | |
1075 | "has-flag": { | |
1076 | "version": "4.0.0", | |
1077 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", | |
1078 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", | |
1079 | "dev": true | |
1080 | } | |
984 | 1081 | } |
985 | 1082 | }, |
986 | 1083 | "to-fast-properties": { |
988 | 1085 | "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", |
989 | 1086 | "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", |
990 | 1087 | "dev": true |
1088 | }, | |
1089 | "to-regex-range": { | |
1090 | "version": "5.0.1", | |
1091 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", | |
1092 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", | |
1093 | "dev": true, | |
1094 | "requires": { | |
1095 | "is-number": "^7.0.0" | |
1096 | } | |
991 | 1097 | }, |
992 | 1098 | "ts-add-module-exports": { |
993 | 1099 | "version": "1.0.0", |
1042 | 1148 | }, |
1043 | 1149 | "dependencies": { |
1044 | 1150 | "minimist": { |
1045 | "version": "1.2.0", | |
1046 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", | |
1047 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", | |
1151 | "version": "1.2.5", | |
1152 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", | |
1153 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", | |
1048 | 1154 | "dev": true |
1049 | 1155 | } |
1050 | 1156 | } |
1051 | 1157 | }, |
1158 | "tslib": { | |
1159 | "version": "2.0.1", | |
1160 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.1.tgz", | |
1161 | "integrity": "sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ==" | |
1162 | }, | |
1052 | 1163 | "typescript": { |
1053 | "version": "3.4.5", | |
1054 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz", | |
1055 | "integrity": "sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==", | |
1164 | "version": "3.9.7", | |
1165 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz", | |
1166 | "integrity": "sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==", | |
1056 | 1167 | "dev": true |
1057 | 1168 | }, |
1058 | 1169 | "which": { |
1059 | "version": "1.3.1", | |
1060 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", | |
1061 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", | |
1170 | "version": "2.0.2", | |
1171 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", | |
1172 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", | |
1062 | 1173 | "dev": true, |
1063 | 1174 | "requires": { |
1064 | 1175 | "isexe": "^2.0.0" |
1079 | 1190 | "string-width": "^1.0.2 || 2" |
1080 | 1191 | } |
1081 | 1192 | }, |
1193 | "workerpool": { | |
1194 | "version": "6.0.0", | |
1195 | "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.0.0.tgz", | |
1196 | "integrity": "sha512-fU2OcNA/GVAJLLyKUoHkAgIhKb0JoCpSjLC/G2vYKxUjVmQwGbRVeoPJ1a8U4pnVofz4AQV5Y/NEw8oKqxEBtA==", | |
1197 | "dev": true | |
1198 | }, | |
1082 | 1199 | "wrap-ansi": { |
1083 | "version": "2.1.0", | |
1084 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", | |
1085 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", | |
1086 | "dev": true, | |
1087 | "requires": { | |
1088 | "string-width": "^1.0.1", | |
1089 | "strip-ansi": "^3.0.1" | |
1090 | }, | |
1091 | "dependencies": { | |
1092 | "ansi-regex": { | |
1093 | "version": "2.1.1", | |
1094 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", | |
1095 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", | |
1096 | "dev": true | |
1097 | }, | |
1098 | "is-fullwidth-code-point": { | |
1099 | "version": "1.0.0", | |
1100 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", | |
1101 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", | |
1102 | "dev": true, | |
1103 | "requires": { | |
1104 | "number-is-nan": "^1.0.0" | |
1105 | } | |
1106 | }, | |
1107 | "string-width": { | |
1108 | "version": "1.0.2", | |
1109 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", | |
1110 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", | |
1111 | "dev": true, | |
1112 | "requires": { | |
1113 | "code-point-at": "^1.0.0", | |
1114 | "is-fullwidth-code-point": "^1.0.0", | |
1115 | "strip-ansi": "^3.0.0" | |
1116 | } | |
1117 | }, | |
1118 | "strip-ansi": { | |
1119 | "version": "3.0.1", | |
1120 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", | |
1121 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", | |
1122 | "dev": true, | |
1123 | "requires": { | |
1124 | "ansi-regex": "^2.0.0" | |
1125 | } | |
1126 | } | |
1127 | } | |
1128 | }, | |
1129 | "wrappy": { | |
1130 | "version": "1.0.2", | |
1131 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", | |
1132 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", | |
1133 | "dev": true | |
1134 | }, | |
1135 | "y18n": { | |
1136 | "version": "4.0.0", | |
1137 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", | |
1138 | "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", | |
1139 | "dev": true | |
1140 | }, | |
1141 | "yargs": { | |
1142 | "version": "13.2.2", | |
1143 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.2.tgz", | |
1144 | "integrity": "sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA==", | |
1145 | "dev": true, | |
1146 | "requires": { | |
1147 | "cliui": "^4.0.0", | |
1148 | "find-up": "^3.0.0", | |
1149 | "get-caller-file": "^2.0.1", | |
1150 | "os-locale": "^3.1.0", | |
1151 | "require-directory": "^2.1.1", | |
1152 | "require-main-filename": "^2.0.0", | |
1153 | "set-blocking": "^2.0.0", | |
1200 | "version": "5.1.0", | |
1201 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", | |
1202 | "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", | |
1203 | "dev": true, | |
1204 | "requires": { | |
1205 | "ansi-styles": "^3.2.0", | |
1154 | 1206 | "string-width": "^3.0.0", |
1155 | "which-module": "^2.0.0", | |
1156 | "y18n": "^4.0.0", | |
1157 | "yargs-parser": "^13.0.0" | |
1207 | "strip-ansi": "^5.0.0" | |
1158 | 1208 | }, |
1159 | 1209 | "dependencies": { |
1160 | 1210 | "ansi-regex": { |
1185 | 1235 | } |
1186 | 1236 | } |
1187 | 1237 | }, |
1238 | "wrappy": { | |
1239 | "version": "1.0.2", | |
1240 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", | |
1241 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", | |
1242 | "dev": true | |
1243 | }, | |
1244 | "y18n": { | |
1245 | "version": "4.0.0", | |
1246 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", | |
1247 | "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", | |
1248 | "dev": true | |
1249 | }, | |
1250 | "yargs": { | |
1251 | "version": "13.3.2", | |
1252 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", | |
1253 | "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", | |
1254 | "dev": true, | |
1255 | "requires": { | |
1256 | "cliui": "^5.0.0", | |
1257 | "find-up": "^3.0.0", | |
1258 | "get-caller-file": "^2.0.1", | |
1259 | "require-directory": "^2.1.1", | |
1260 | "require-main-filename": "^2.0.0", | |
1261 | "set-blocking": "^2.0.0", | |
1262 | "string-width": "^3.0.0", | |
1263 | "which-module": "^2.0.0", | |
1264 | "y18n": "^4.0.0", | |
1265 | "yargs-parser": "^13.1.2" | |
1266 | }, | |
1267 | "dependencies": { | |
1268 | "ansi-regex": { | |
1269 | "version": "4.1.0", | |
1270 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", | |
1271 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", | |
1272 | "dev": true | |
1273 | }, | |
1274 | "find-up": { | |
1275 | "version": "3.0.0", | |
1276 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", | |
1277 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", | |
1278 | "dev": true, | |
1279 | "requires": { | |
1280 | "locate-path": "^3.0.0" | |
1281 | } | |
1282 | }, | |
1283 | "locate-path": { | |
1284 | "version": "3.0.0", | |
1285 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", | |
1286 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", | |
1287 | "dev": true, | |
1288 | "requires": { | |
1289 | "p-locate": "^3.0.0", | |
1290 | "path-exists": "^3.0.0" | |
1291 | } | |
1292 | }, | |
1293 | "p-locate": { | |
1294 | "version": "3.0.0", | |
1295 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", | |
1296 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", | |
1297 | "dev": true, | |
1298 | "requires": { | |
1299 | "p-limit": "^2.0.0" | |
1300 | } | |
1301 | }, | |
1302 | "path-exists": { | |
1303 | "version": "3.0.0", | |
1304 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", | |
1305 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", | |
1306 | "dev": true | |
1307 | }, | |
1308 | "string-width": { | |
1309 | "version": "3.1.0", | |
1310 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", | |
1311 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", | |
1312 | "dev": true, | |
1313 | "requires": { | |
1314 | "emoji-regex": "^7.0.1", | |
1315 | "is-fullwidth-code-point": "^2.0.0", | |
1316 | "strip-ansi": "^5.1.0" | |
1317 | } | |
1318 | }, | |
1319 | "strip-ansi": { | |
1320 | "version": "5.2.0", | |
1321 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", | |
1322 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", | |
1323 | "dev": true, | |
1324 | "requires": { | |
1325 | "ansi-regex": "^4.1.0" | |
1326 | } | |
1327 | } | |
1328 | } | |
1329 | }, | |
1188 | 1330 | "yargs-parser": { |
1189 | "version": "13.0.0", | |
1190 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz", | |
1191 | "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==", | |
1331 | "version": "13.1.2", | |
1332 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", | |
1333 | "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", | |
1192 | 1334 | "dev": true, |
1193 | 1335 | "requires": { |
1194 | 1336 | "camelcase": "^5.0.0", |
1196 | 1338 | } |
1197 | 1339 | }, |
1198 | 1340 | "yargs-unparser": { |
1199 | "version": "1.5.0", | |
1200 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.5.0.tgz", | |
1201 | "integrity": "sha512-HK25qidFTCVuj/D1VfNiEndpLIeJN78aqgR23nL3y4N0U/91cOAzqfHlF8n2BvoNDcZmJKin3ddNSvOxSr8flw==", | |
1202 | "dev": true, | |
1203 | "requires": { | |
1341 | "version": "1.6.1", | |
1342 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.1.tgz", | |
1343 | "integrity": "sha512-qZV14lK9MWsGCmcr7u5oXGH0dbGqZAIxTDrWXZDo5zUr6b6iUmelNKO6x6R1dQT24AH3LgRxJpr8meWy2unolA==", | |
1344 | "dev": true, | |
1345 | "requires": { | |
1346 | "camelcase": "^5.3.1", | |
1347 | "decamelize": "^1.2.0", | |
1204 | 1348 | "flat": "^4.1.0", |
1205 | "lodash": "^4.17.11", | |
1206 | "yargs": "^12.0.5" | |
1349 | "is-plain-obj": "^1.1.0", | |
1350 | "yargs": "^14.2.3" | |
1207 | 1351 | }, |
1208 | 1352 | "dependencies": { |
1209 | "get-caller-file": { | |
1210 | "version": "1.0.3", | |
1211 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", | |
1212 | "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", | |
1353 | "ansi-regex": { | |
1354 | "version": "4.1.0", | |
1355 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", | |
1356 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", | |
1213 | 1357 | "dev": true |
1214 | 1358 | }, |
1215 | "require-main-filename": { | |
1216 | "version": "1.0.1", | |
1217 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", | |
1218 | "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", | |
1359 | "find-up": { | |
1360 | "version": "3.0.0", | |
1361 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", | |
1362 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", | |
1363 | "dev": true, | |
1364 | "requires": { | |
1365 | "locate-path": "^3.0.0" | |
1366 | } | |
1367 | }, | |
1368 | "locate-path": { | |
1369 | "version": "3.0.0", | |
1370 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", | |
1371 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", | |
1372 | "dev": true, | |
1373 | "requires": { | |
1374 | "p-locate": "^3.0.0", | |
1375 | "path-exists": "^3.0.0" | |
1376 | } | |
1377 | }, | |
1378 | "p-locate": { | |
1379 | "version": "3.0.0", | |
1380 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", | |
1381 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", | |
1382 | "dev": true, | |
1383 | "requires": { | |
1384 | "p-limit": "^2.0.0" | |
1385 | } | |
1386 | }, | |
1387 | "path-exists": { | |
1388 | "version": "3.0.0", | |
1389 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", | |
1390 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", | |
1219 | 1391 | "dev": true |
1220 | 1392 | }, |
1393 | "string-width": { | |
1394 | "version": "3.1.0", | |
1395 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", | |
1396 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", | |
1397 | "dev": true, | |
1398 | "requires": { | |
1399 | "emoji-regex": "^7.0.1", | |
1400 | "is-fullwidth-code-point": "^2.0.0", | |
1401 | "strip-ansi": "^5.1.0" | |
1402 | } | |
1403 | }, | |
1404 | "strip-ansi": { | |
1405 | "version": "5.2.0", | |
1406 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", | |
1407 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", | |
1408 | "dev": true, | |
1409 | "requires": { | |
1410 | "ansi-regex": "^4.1.0" | |
1411 | } | |
1412 | }, | |
1221 | 1413 | "yargs": { |
1222 | "version": "12.0.5", | |
1223 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", | |
1224 | "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", | |
1225 | "dev": true, | |
1226 | "requires": { | |
1227 | "cliui": "^4.0.0", | |
1414 | "version": "14.2.3", | |
1415 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-14.2.3.tgz", | |
1416 | "integrity": "sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg==", | |
1417 | "dev": true, | |
1418 | "requires": { | |
1419 | "cliui": "^5.0.0", | |
1228 | 1420 | "decamelize": "^1.2.0", |
1229 | 1421 | "find-up": "^3.0.0", |
1230 | "get-caller-file": "^1.0.1", | |
1231 | "os-locale": "^3.0.0", | |
1422 | "get-caller-file": "^2.0.1", | |
1232 | 1423 | "require-directory": "^2.1.1", |
1233 | "require-main-filename": "^1.0.1", | |
1424 | "require-main-filename": "^2.0.0", | |
1234 | 1425 | "set-blocking": "^2.0.0", |
1235 | "string-width": "^2.0.0", | |
1426 | "string-width": "^3.0.0", | |
1236 | 1427 | "which-module": "^2.0.0", |
1237 | "y18n": "^3.2.1 || ^4.0.0", | |
1238 | "yargs-parser": "^11.1.1" | |
1428 | "y18n": "^4.0.0", | |
1429 | "yargs-parser": "^15.0.1" | |
1239 | 1430 | } |
1240 | 1431 | }, |
1241 | 1432 | "yargs-parser": { |
1242 | "version": "11.1.1", | |
1243 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", | |
1244 | "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", | |
1433 | "version": "15.0.1", | |
1434 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-15.0.1.tgz", | |
1435 | "integrity": "sha512-0OAMV2mAZQrs3FkNpDQcBk1x5HXb8X4twADss4S0Iuk+2dGnLOE/fRHrsYm542GduMveyA77OF4wrNJuanRCWw==", | |
1245 | 1436 | "dev": true, |
1246 | 1437 | "requires": { |
1247 | 1438 | "camelcase": "^5.0.0", |
0 | 0 | { |
1 | 1 | "author": "Ben Newman <bn@cs.stanford.edu>", |
2 | 2 | "name": "ast-types", |
3 | "version": "0.13.3", | |
3 | "version": "0.14.0", | |
4 | 4 | "description": "Esprima-compatible implementation of the Mozilla JS Parser API", |
5 | 5 | "keywords": [ |
6 | 6 | "ast", |
35 | 35 | "prepack": "npm run clean && npm run gen && npm run build", |
36 | 36 | "postpack": "npm run clean" |
37 | 37 | }, |
38 | "dependencies": {}, | |
38 | "dependencies": { | |
39 | "tslib": "^2.0.1" | |
40 | }, | |
39 | 41 | "devDependencies": { |
40 | "@babel/parser": "7.4.4", | |
42 | "@babel/parser": "7.7.7", | |
41 | 43 | "@babel/types": "7.4.4", |
42 | 44 | "@types/esprima": "4.0.2", |
43 | "@types/glob": "7.1.1", | |
44 | "@types/mocha": "5.2.6", | |
45 | "@types/glob": "7.1.3", | |
46 | "@types/mocha": "8.0.3", | |
45 | 47 | "@types/node": "12.0.0", |
46 | "espree": "6.1.1", | |
48 | "espree": "7.3.0", | |
47 | 49 | "esprima": "4.0.1", |
48 | 50 | "esprima-fb": "15001.1001.0-dev-harmony-fb", |
49 | "flow-parser": "0.98.1", | |
50 | "glob": "7.1.4", | |
51 | "mocha": "6.1.4", | |
52 | "recast": "0.18.1", | |
53 | "reify": "0.20.6", | |
51 | "flow-parser": "0.132.0", | |
52 | "glob": "7.1.6", | |
53 | "mocha": "^8.1.1", | |
54 | "recast": "0.20.0", | |
55 | "reify": "0.20.12", | |
54 | 56 | "ts-add-module-exports": "1.0.0", |
55 | 57 | "ts-emit-clean": "1.0.0", |
56 | 58 | "ts-node": "7.0.1", |
57 | "typescript": "3.4.5" | |
59 | "typescript": "3.9.7" | |
58 | 60 | }, |
59 | 61 | "engines": { |
60 | 62 | "node": ">=4" |
29 | 29 | import esprimaDef from "../def/esprima"; |
30 | 30 | import coreDef from "../def/core"; |
31 | 31 | import es6Def from "../def/es6"; |
32 | import es7Def from "../def/es7"; | |
33 | 32 | import es2020Def from "../def/es2020"; |
34 | 33 | import babelDef from "../def/babel"; |
35 | 34 | |
1071 | 1070 | var node = path.node; |
1072 | 1071 | assert.strictEqual(path.scope.isGlobal, false); |
1073 | 1072 | |
1074 | assert.strictEqual(node.id.name, "bar"); | |
1073 | const name = node.id ? node.id.name : null; | |
1074 | assert.strictEqual(name, "bar"); | |
1075 | 1075 | assert.notStrictEqual(path.scope, globalScope); |
1076 | 1076 | assert.strictEqual(path.scope.isGlobal, false); |
1077 | 1077 | assert.strictEqual(path.scope.parent, globalScope); |
1443 | 1443 | var types = fork([ |
1444 | 1444 | coreDef, |
1445 | 1445 | es6Def, |
1446 | es7Def, | |
1446 | es2020Def, | |
1447 | 1447 | ]); |
1448 | 1448 | var b = types.builders; |
1449 | 1449 |
25 | 25 | |
26 | 26 | cd .. # back to the ast-types/test/ directory |
27 | 27 | |
28 | exec mocha --require ts-node/register/transpile-only \ | |
29 | --reporter spec --full-trace $@ run.ts | |
28 | # Run Mocha on the generated .js code, rather than the .ts source code, so | |
29 | # that we're testing the same kind of output that we're shipping to npm. | |
30 | exec mocha --reporter spec --full-trace $@ run.js |
3 | 3 | import glob from "glob"; |
4 | 4 | import { parse as babelParse, ParserOptions, ParserPlugin } from "@babel/parser"; |
5 | 5 | import fork from "../fork"; |
6 | import esProposalsDef from '../def/es-proposals'; | |
6 | 7 | import typescriptDef from "../def/typescript"; |
7 | 8 | import jsxDef from "../def/jsx"; |
8 | 9 | import { visit } from "../main"; |
9 | 10 | |
10 | 11 | var pkgRootDir = path.resolve(__dirname, ".."); |
11 | 12 | var tsTypes = fork([ |
13 | esProposalsDef, | |
12 | 14 | typescriptDef, |
13 | 15 | jsxDef, |
14 | 16 | ]); |
32 | 34 | |
33 | 35 | files.forEach((tsPath: any) => { |
34 | 36 | var fullPath = path.join(babelTSFixturesDir, tsPath); |
37 | ||
38 | if (tsPath === "class/method-readonly/input.js") { | |
39 | // This file intentionally triggers a parse error for a babel test, so | |
40 | // it doesn't make sense to test here. | |
41 | return; | |
42 | } | |
35 | 43 | |
36 | 44 | it("should validate " + path.relative(pkgRootDir, fullPath), function (done) { |
37 | 45 | fs.readFile(fullPath, "utf8", function (error, code) { |
124 | 132 | files.forEach((tsPath: string) => { |
125 | 133 | var fullPath = path.join(tsCompilerDir, tsPath); |
126 | 134 | |
135 | // We have to skip checker.ts because of a bug in babel's typescript | |
136 | // parser plugin. See | |
137 | // https://github.com/babel/babel/issues/7235#issuecomment-549437974 | |
138 | if (tsPath === "checker.ts") { | |
139 | return; | |
140 | } | |
141 | ||
127 | 142 | it("should validate " + path.relative(pkgRootDir, fullPath), function (done) { |
128 | 143 | fs.readFile(fullPath, "utf8", function (error, code) { |
129 | 144 | if (error) { |
138 | 153 | "classProperties", |
139 | 154 | "optionalCatchBinding", |
140 | 155 | "numericSeparator", |
156 | "optionalChaining", | |
157 | "nullishCoalescingOperator", | |
141 | 158 | ] |
142 | 159 | }).program; |
143 | 160 |