ether-code 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/ether.js +1 -1
- package/generators/css-generator.js +42 -55
- package/generators/graphql-generator.js +19 -22
- package/generators/html-generator.js +51 -182
- package/generators/js-generator.js +76 -157
- package/generators/node-generator.js +49 -93
- package/generators/php-generator.js +46 -68
- package/generators/python-generator.js +35 -54
- package/generators/react-generator.js +37 -47
- package/generators/ruby-generator.js +59 -119
- package/generators/sql-generator.js +42 -63
- package/generators/ts-generator.js +59 -133
- package/i18n/i18n-css.json +147 -147
- package/i18n/i18n-graphql.json +6 -6
- package/i18n/i18n-html.json +135 -135
- package/i18n/i18n-js.json +107 -107
- package/i18n/i18n-node.json +14 -14
- package/i18n/i18n-php.json +177 -177
- package/i18n/i18n-python.json +16 -16
- package/i18n/i18n-react.json +97 -97
- package/i18n/i18n-ruby.json +22 -22
- package/i18n/i18n-sql.json +153 -153
- package/i18n/i18n-ts.json +10 -10
- package/lexer/ether-lexer.js +175 -34
- package/lexer/tokens.js +6 -6
- package/package.json +1 -1
- package/parsers/ast-css.js +0 -545
- package/parsers/ast-graphql.js +0 -424
- package/parsers/ast-html.js +0 -886
- package/parsers/ast-js.js +0 -750
- package/parsers/ast-node.js +0 -2440
- package/parsers/ast-php.js +0 -957
- package/parsers/ast-react.js +0 -580
- package/parsers/ast-ruby.js +0 -895
- package/parsers/ast-ts.js +0 -1352
- package/parsers/css-parser.js +0 -1981
- package/parsers/graphql-parser.js +0 -2011
- package/parsers/html-parser.js +0 -1182
- package/parsers/js-parser.js +0 -2564
- package/parsers/node-parser.js +0 -2644
- package/parsers/php-parser.js +0 -3037
- package/parsers/react-parser.js +0 -1035
- package/parsers/ruby-parser.js +0 -2680
- package/parsers/ts-parser.js +0 -3881
package/parsers/ast-node.js
DELETED
|
@@ -1,2440 +0,0 @@
|
|
|
1
|
-
class ASTNode {
|
|
2
|
-
constructor(type, loc = null) {
|
|
3
|
-
this.type = type
|
|
4
|
-
this.loc = loc
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
class Program extends ASTNode {
|
|
9
|
-
constructor(body = [], loc = null) {
|
|
10
|
-
super('Program', loc)
|
|
11
|
-
this.body = body
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
class Identifier extends ASTNode {
|
|
16
|
-
constructor(name, loc = null) {
|
|
17
|
-
super('Identifier', loc)
|
|
18
|
-
this.name = name
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
class StringLiteral extends ASTNode {
|
|
23
|
-
constructor(value, raw = null, loc = null) {
|
|
24
|
-
super('StringLiteral', loc)
|
|
25
|
-
this.value = value
|
|
26
|
-
this.raw = raw || `"${value}"`
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
class NumericLiteral extends ASTNode {
|
|
31
|
-
constructor(value, raw = null, loc = null) {
|
|
32
|
-
super('NumericLiteral', loc)
|
|
33
|
-
this.value = value
|
|
34
|
-
this.raw = raw || String(value)
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
class BooleanLiteral extends ASTNode {
|
|
39
|
-
constructor(value, loc = null) {
|
|
40
|
-
super('BooleanLiteral', loc)
|
|
41
|
-
this.value = value
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
class NullLiteral extends ASTNode {
|
|
46
|
-
constructor(loc = null) {
|
|
47
|
-
super('NullLiteral', loc)
|
|
48
|
-
this.value = null
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
class UndefinedLiteral extends ASTNode {
|
|
53
|
-
constructor(loc = null) {
|
|
54
|
-
super('UndefinedLiteral', loc)
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
class TemplateLiteral extends ASTNode {
|
|
59
|
-
constructor(quasis = [], expressions = [], loc = null) {
|
|
60
|
-
super('TemplateLiteral', loc)
|
|
61
|
-
this.quasis = quasis
|
|
62
|
-
this.expressions = expressions
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
class TemplateElement extends ASTNode {
|
|
67
|
-
constructor(value, tail = false, loc = null) {
|
|
68
|
-
super('TemplateElement', loc)
|
|
69
|
-
this.value = value
|
|
70
|
-
this.tail = tail
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
class RegExpLiteral extends ASTNode {
|
|
75
|
-
constructor(pattern, flags = '', loc = null) {
|
|
76
|
-
super('RegExpLiteral', loc)
|
|
77
|
-
this.pattern = pattern
|
|
78
|
-
this.flags = flags
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
class ArrayExpression extends ASTNode {
|
|
83
|
-
constructor(elements = [], loc = null) {
|
|
84
|
-
super('ArrayExpression', loc)
|
|
85
|
-
this.elements = elements
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
class ObjectExpression extends ASTNode {
|
|
90
|
-
constructor(properties = [], loc = null) {
|
|
91
|
-
super('ObjectExpression', loc)
|
|
92
|
-
this.properties = properties
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
class Property extends ASTNode {
|
|
97
|
-
constructor(key, value, shorthand = false, computed = false, loc = null) {
|
|
98
|
-
super('Property', loc)
|
|
99
|
-
this.key = key
|
|
100
|
-
this.value = value
|
|
101
|
-
this.shorthand = shorthand
|
|
102
|
-
this.computed = computed
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
class SpreadElement extends ASTNode {
|
|
107
|
-
constructor(argument, loc = null) {
|
|
108
|
-
super('SpreadElement', loc)
|
|
109
|
-
this.argument = argument
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
class RequireStatement extends ASTNode {
|
|
114
|
-
constructor(module, variable = null, loc = null) {
|
|
115
|
-
super('RequireStatement', loc)
|
|
116
|
-
this.module = module
|
|
117
|
-
this.variable = variable
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
class RequireDestructuring extends ASTNode {
|
|
122
|
-
constructor(module, properties = [], loc = null) {
|
|
123
|
-
super('RequireDestructuring', loc)
|
|
124
|
-
this.module = module
|
|
125
|
-
this.properties = properties
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
class ImportDeclaration extends ASTNode {
|
|
130
|
-
constructor(specifiers = [], source, loc = null) {
|
|
131
|
-
super('ImportDeclaration', loc)
|
|
132
|
-
this.specifiers = specifiers
|
|
133
|
-
this.source = source
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
class ImportDefaultSpecifier extends ASTNode {
|
|
138
|
-
constructor(local, loc = null) {
|
|
139
|
-
super('ImportDefaultSpecifier', loc)
|
|
140
|
-
this.local = local
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
class ImportSpecifier extends ASTNode {
|
|
145
|
-
constructor(imported, local, loc = null) {
|
|
146
|
-
super('ImportSpecifier', loc)
|
|
147
|
-
this.imported = imported
|
|
148
|
-
this.local = local
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
class ImportNamespaceSpecifier extends ASTNode {
|
|
153
|
-
constructor(local, loc = null) {
|
|
154
|
-
super('ImportNamespaceSpecifier', loc)
|
|
155
|
-
this.local = local
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
class DynamicImport extends ASTNode {
|
|
160
|
-
constructor(source, loc = null) {
|
|
161
|
-
super('DynamicImport', loc)
|
|
162
|
-
this.source = source
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
class ExportNamedDeclaration extends ASTNode {
|
|
167
|
-
constructor(declaration = null, specifiers = [], source = null, loc = null) {
|
|
168
|
-
super('ExportNamedDeclaration', loc)
|
|
169
|
-
this.declaration = declaration
|
|
170
|
-
this.specifiers = specifiers
|
|
171
|
-
this.source = source
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
class ExportDefaultDeclaration extends ASTNode {
|
|
176
|
-
constructor(declaration, loc = null) {
|
|
177
|
-
super('ExportDefaultDeclaration', loc)
|
|
178
|
-
this.declaration = declaration
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
class ExportSpecifier extends ASTNode {
|
|
183
|
-
constructor(local, exported, loc = null) {
|
|
184
|
-
super('ExportSpecifier', loc)
|
|
185
|
-
this.local = local
|
|
186
|
-
this.exported = exported
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
class ModuleExports extends ASTNode {
|
|
191
|
-
constructor(value, loc = null) {
|
|
192
|
-
super('ModuleExports', loc)
|
|
193
|
-
this.value = value
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
class VariableDeclaration extends ASTNode {
|
|
198
|
-
constructor(kind, declarations = [], loc = null) {
|
|
199
|
-
super('VariableDeclaration', loc)
|
|
200
|
-
this.kind = kind
|
|
201
|
-
this.declarations = declarations
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
class VariableDeclarator extends ASTNode {
|
|
206
|
-
constructor(id, init = null, loc = null) {
|
|
207
|
-
super('VariableDeclarator', loc)
|
|
208
|
-
this.id = id
|
|
209
|
-
this.init = init
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
class FunctionDeclaration extends ASTNode {
|
|
214
|
-
constructor(id, params = [], body, async = false, generator = false, loc = null) {
|
|
215
|
-
super('FunctionDeclaration', loc)
|
|
216
|
-
this.id = id
|
|
217
|
-
this.params = params
|
|
218
|
-
this.body = body
|
|
219
|
-
this.async = async
|
|
220
|
-
this.generator = generator
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
class FunctionExpression extends ASTNode {
|
|
225
|
-
constructor(id = null, params = [], body, async = false, generator = false, loc = null) {
|
|
226
|
-
super('FunctionExpression', loc)
|
|
227
|
-
this.id = id
|
|
228
|
-
this.params = params
|
|
229
|
-
this.body = body
|
|
230
|
-
this.async = async
|
|
231
|
-
this.generator = generator
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
class ArrowFunctionExpression extends ASTNode {
|
|
236
|
-
constructor(params = [], body, async = false, expression = false, loc = null) {
|
|
237
|
-
super('ArrowFunctionExpression', loc)
|
|
238
|
-
this.params = params
|
|
239
|
-
this.body = body
|
|
240
|
-
this.async = async
|
|
241
|
-
this.expression = expression
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
class BlockStatement extends ASTNode {
|
|
246
|
-
constructor(body = [], loc = null) {
|
|
247
|
-
super('BlockStatement', loc)
|
|
248
|
-
this.body = body
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
class ReturnStatement extends ASTNode {
|
|
253
|
-
constructor(argument = null, loc = null) {
|
|
254
|
-
super('ReturnStatement', loc)
|
|
255
|
-
this.argument = argument
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
class IfStatement extends ASTNode {
|
|
260
|
-
constructor(test, consequent, alternate = null, loc = null) {
|
|
261
|
-
super('IfStatement', loc)
|
|
262
|
-
this.test = test
|
|
263
|
-
this.consequent = consequent
|
|
264
|
-
this.alternate = alternate
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
class SwitchStatement extends ASTNode {
|
|
269
|
-
constructor(discriminant, cases = [], loc = null) {
|
|
270
|
-
super('SwitchStatement', loc)
|
|
271
|
-
this.discriminant = discriminant
|
|
272
|
-
this.cases = cases
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
class SwitchCase extends ASTNode {
|
|
277
|
-
constructor(test, consequent = [], loc = null) {
|
|
278
|
-
super('SwitchCase', loc)
|
|
279
|
-
this.test = test
|
|
280
|
-
this.consequent = consequent
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
class ForStatement extends ASTNode {
|
|
285
|
-
constructor(init, test, update, body, loc = null) {
|
|
286
|
-
super('ForStatement', loc)
|
|
287
|
-
this.init = init
|
|
288
|
-
this.test = test
|
|
289
|
-
this.update = update
|
|
290
|
-
this.body = body
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
class ForInStatement extends ASTNode {
|
|
295
|
-
constructor(left, right, body, loc = null) {
|
|
296
|
-
super('ForInStatement', loc)
|
|
297
|
-
this.left = left
|
|
298
|
-
this.right = right
|
|
299
|
-
this.body = body
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
class ForOfStatement extends ASTNode {
|
|
304
|
-
constructor(left, right, body, await_ = false, loc = null) {
|
|
305
|
-
super('ForOfStatement', loc)
|
|
306
|
-
this.left = left
|
|
307
|
-
this.right = right
|
|
308
|
-
this.body = body
|
|
309
|
-
this.await = await_
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
class WhileStatement extends ASTNode {
|
|
314
|
-
constructor(test, body, loc = null) {
|
|
315
|
-
super('WhileStatement', loc)
|
|
316
|
-
this.test = test
|
|
317
|
-
this.body = body
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
class DoWhileStatement extends ASTNode {
|
|
322
|
-
constructor(body, test, loc = null) {
|
|
323
|
-
super('DoWhileStatement', loc)
|
|
324
|
-
this.body = body
|
|
325
|
-
this.test = test
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
class BreakStatement extends ASTNode {
|
|
330
|
-
constructor(label = null, loc = null) {
|
|
331
|
-
super('BreakStatement', loc)
|
|
332
|
-
this.label = label
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
class ContinueStatement extends ASTNode {
|
|
337
|
-
constructor(label = null, loc = null) {
|
|
338
|
-
super('ContinueStatement', loc)
|
|
339
|
-
this.label = label
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
class TryStatement extends ASTNode {
|
|
344
|
-
constructor(block, handler = null, finalizer = null, loc = null) {
|
|
345
|
-
super('TryStatement', loc)
|
|
346
|
-
this.block = block
|
|
347
|
-
this.handler = handler
|
|
348
|
-
this.finalizer = finalizer
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
class CatchClause extends ASTNode {
|
|
353
|
-
constructor(param, body, loc = null) {
|
|
354
|
-
super('CatchClause', loc)
|
|
355
|
-
this.param = param
|
|
356
|
-
this.body = body
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
class ThrowStatement extends ASTNode {
|
|
361
|
-
constructor(argument, loc = null) {
|
|
362
|
-
super('ThrowStatement', loc)
|
|
363
|
-
this.argument = argument
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
class ClassDeclaration extends ASTNode {
|
|
368
|
-
constructor(id, superClass = null, body, loc = null) {
|
|
369
|
-
super('ClassDeclaration', loc)
|
|
370
|
-
this.id = id
|
|
371
|
-
this.superClass = superClass
|
|
372
|
-
this.body = body
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
class ClassExpression extends ASTNode {
|
|
377
|
-
constructor(id = null, superClass = null, body, loc = null) {
|
|
378
|
-
super('ClassExpression', loc)
|
|
379
|
-
this.id = id
|
|
380
|
-
this.superClass = superClass
|
|
381
|
-
this.body = body
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
class ClassBody extends ASTNode {
|
|
386
|
-
constructor(body = [], loc = null) {
|
|
387
|
-
super('ClassBody', loc)
|
|
388
|
-
this.body = body
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
class MethodDefinition extends ASTNode {
|
|
393
|
-
constructor(key, value, kind = 'method', computed = false, static_ = false, loc = null) {
|
|
394
|
-
super('MethodDefinition', loc)
|
|
395
|
-
this.key = key
|
|
396
|
-
this.value = value
|
|
397
|
-
this.kind = kind
|
|
398
|
-
this.computed = computed
|
|
399
|
-
this.static = static_
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
class PropertyDefinition extends ASTNode {
|
|
404
|
-
constructor(key, value = null, computed = false, static_ = false, loc = null) {
|
|
405
|
-
super('PropertyDefinition', loc)
|
|
406
|
-
this.key = key
|
|
407
|
-
this.value = value
|
|
408
|
-
this.computed = computed
|
|
409
|
-
this.static = static_
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
class CallExpression extends ASTNode {
|
|
414
|
-
constructor(callee, arguments_ = [], optional = false, loc = null) {
|
|
415
|
-
super('CallExpression', loc)
|
|
416
|
-
this.callee = callee
|
|
417
|
-
this.arguments = arguments_
|
|
418
|
-
this.optional = optional
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
class NewExpression extends ASTNode {
|
|
423
|
-
constructor(callee, arguments_ = [], loc = null) {
|
|
424
|
-
super('NewExpression', loc)
|
|
425
|
-
this.callee = callee
|
|
426
|
-
this.arguments = arguments_
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
class MemberExpression extends ASTNode {
|
|
431
|
-
constructor(object, property, computed = false, optional = false, loc = null) {
|
|
432
|
-
super('MemberExpression', loc)
|
|
433
|
-
this.object = object
|
|
434
|
-
this.property = property
|
|
435
|
-
this.computed = computed
|
|
436
|
-
this.optional = optional
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
class BinaryExpression extends ASTNode {
|
|
441
|
-
constructor(operator, left, right, loc = null) {
|
|
442
|
-
super('BinaryExpression', loc)
|
|
443
|
-
this.operator = operator
|
|
444
|
-
this.left = left
|
|
445
|
-
this.right = right
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
class UnaryExpression extends ASTNode {
|
|
450
|
-
constructor(operator, argument, prefix = true, loc = null) {
|
|
451
|
-
super('UnaryExpression', loc)
|
|
452
|
-
this.operator = operator
|
|
453
|
-
this.argument = argument
|
|
454
|
-
this.prefix = prefix
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
class UpdateExpression extends ASTNode {
|
|
459
|
-
constructor(operator, argument, prefix = false, loc = null) {
|
|
460
|
-
super('UpdateExpression', loc)
|
|
461
|
-
this.operator = operator
|
|
462
|
-
this.argument = argument
|
|
463
|
-
this.prefix = prefix
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
class LogicalExpression extends ASTNode {
|
|
468
|
-
constructor(operator, left, right, loc = null) {
|
|
469
|
-
super('LogicalExpression', loc)
|
|
470
|
-
this.operator = operator
|
|
471
|
-
this.left = left
|
|
472
|
-
this.right = right
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
class ConditionalExpression extends ASTNode {
|
|
477
|
-
constructor(test, consequent, alternate, loc = null) {
|
|
478
|
-
super('ConditionalExpression', loc)
|
|
479
|
-
this.test = test
|
|
480
|
-
this.consequent = consequent
|
|
481
|
-
this.alternate = alternate
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
class AssignmentExpression extends ASTNode {
|
|
486
|
-
constructor(operator, left, right, loc = null) {
|
|
487
|
-
super('AssignmentExpression', loc)
|
|
488
|
-
this.operator = operator
|
|
489
|
-
this.left = left
|
|
490
|
-
this.right = right
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
class SequenceExpression extends ASTNode {
|
|
495
|
-
constructor(expressions = [], loc = null) {
|
|
496
|
-
super('SequenceExpression', loc)
|
|
497
|
-
this.expressions = expressions
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
class AwaitExpression extends ASTNode {
|
|
502
|
-
constructor(argument, loc = null) {
|
|
503
|
-
super('AwaitExpression', loc)
|
|
504
|
-
this.argument = argument
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
class YieldExpression extends ASTNode {
|
|
509
|
-
constructor(argument = null, delegate = false, loc = null) {
|
|
510
|
-
super('YieldExpression', loc)
|
|
511
|
-
this.argument = argument
|
|
512
|
-
this.delegate = delegate
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
class ThisExpression extends ASTNode {
|
|
517
|
-
constructor(loc = null) {
|
|
518
|
-
super('ThisExpression', loc)
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
class Super extends ASTNode {
|
|
523
|
-
constructor(loc = null) {
|
|
524
|
-
super('Super', loc)
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
class RestElement extends ASTNode {
|
|
529
|
-
constructor(argument, loc = null) {
|
|
530
|
-
super('RestElement', loc)
|
|
531
|
-
this.argument = argument
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
class AssignmentPattern extends ASTNode {
|
|
536
|
-
constructor(left, right, loc = null) {
|
|
537
|
-
super('AssignmentPattern', loc)
|
|
538
|
-
this.left = left
|
|
539
|
-
this.right = right
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
class ArrayPattern extends ASTNode {
|
|
544
|
-
constructor(elements = [], loc = null) {
|
|
545
|
-
super('ArrayPattern', loc)
|
|
546
|
-
this.elements = elements
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
class ObjectPattern extends ASTNode {
|
|
551
|
-
constructor(properties = [], loc = null) {
|
|
552
|
-
super('ObjectPattern', loc)
|
|
553
|
-
this.properties = properties
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
class ExpressionStatement extends ASTNode {
|
|
558
|
-
constructor(expression, loc = null) {
|
|
559
|
-
super('ExpressionStatement', loc)
|
|
560
|
-
this.expression = expression
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
class EmptyStatement extends ASTNode {
|
|
565
|
-
constructor(loc = null) {
|
|
566
|
-
super('EmptyStatement', loc)
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
class DebuggerStatement extends ASTNode {
|
|
571
|
-
constructor(loc = null) {
|
|
572
|
-
super('DebuggerStatement', loc)
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
class LabeledStatement extends ASTNode {
|
|
577
|
-
constructor(label, body, loc = null) {
|
|
578
|
-
super('LabeledStatement', loc)
|
|
579
|
-
this.label = label
|
|
580
|
-
this.body = body
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
class WithStatement extends ASTNode {
|
|
585
|
-
constructor(object, body, loc = null) {
|
|
586
|
-
super('WithStatement', loc)
|
|
587
|
-
this.object = object
|
|
588
|
-
this.body = body
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
class FSReadFile extends ASTNode {
|
|
593
|
-
constructor(path, options = null, callback = null, loc = null) {
|
|
594
|
-
super('FSReadFile', loc)
|
|
595
|
-
this.path = path
|
|
596
|
-
this.options = options
|
|
597
|
-
this.callback = callback
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
class FSReadFileSync extends ASTNode {
|
|
602
|
-
constructor(path, options = null, loc = null) {
|
|
603
|
-
super('FSReadFileSync', loc)
|
|
604
|
-
this.path = path
|
|
605
|
-
this.options = options
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
class FSWriteFile extends ASTNode {
|
|
610
|
-
constructor(path, data, options = null, callback = null, loc = null) {
|
|
611
|
-
super('FSWriteFile', loc)
|
|
612
|
-
this.path = path
|
|
613
|
-
this.data = data
|
|
614
|
-
this.options = options
|
|
615
|
-
this.callback = callback
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
class FSWriteFileSync extends ASTNode {
|
|
620
|
-
constructor(path, data, options = null, loc = null) {
|
|
621
|
-
super('FSWriteFileSync', loc)
|
|
622
|
-
this.path = path
|
|
623
|
-
this.data = data
|
|
624
|
-
this.options = options
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
class FSReadDir extends ASTNode {
|
|
629
|
-
constructor(path, options = null, callback = null, loc = null) {
|
|
630
|
-
super('FSReadDir', loc)
|
|
631
|
-
this.path = path
|
|
632
|
-
this.options = options
|
|
633
|
-
this.callback = callback
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
class FSMkdir extends ASTNode {
|
|
638
|
-
constructor(path, options = null, callback = null, loc = null) {
|
|
639
|
-
super('FSMkdir', loc)
|
|
640
|
-
this.path = path
|
|
641
|
-
this.options = options
|
|
642
|
-
this.callback = callback
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
class FSUnlink extends ASTNode {
|
|
647
|
-
constructor(path, callback = null, loc = null) {
|
|
648
|
-
super('FSUnlink', loc)
|
|
649
|
-
this.path = path
|
|
650
|
-
this.callback = callback
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
class FSRmdir extends ASTNode {
|
|
655
|
-
constructor(path, options = null, callback = null, loc = null) {
|
|
656
|
-
super('FSRmdir', loc)
|
|
657
|
-
this.path = path
|
|
658
|
-
this.options = options
|
|
659
|
-
this.callback = callback
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
class FSRm extends ASTNode {
|
|
664
|
-
constructor(path, options = null, callback = null, loc = null) {
|
|
665
|
-
super('FSRm', loc)
|
|
666
|
-
this.path = path
|
|
667
|
-
this.options = options
|
|
668
|
-
this.callback = callback
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
class FSRename extends ASTNode {
|
|
673
|
-
constructor(oldPath, newPath, callback = null, loc = null) {
|
|
674
|
-
super('FSRename', loc)
|
|
675
|
-
this.oldPath = oldPath
|
|
676
|
-
this.newPath = newPath
|
|
677
|
-
this.callback = callback
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
class FSCopyFile extends ASTNode {
|
|
682
|
-
constructor(src, dest, flags = null, callback = null, loc = null) {
|
|
683
|
-
super('FSCopyFile', loc)
|
|
684
|
-
this.src = src
|
|
685
|
-
this.dest = dest
|
|
686
|
-
this.flags = flags
|
|
687
|
-
this.callback = callback
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
class FSStat extends ASTNode {
|
|
692
|
-
constructor(path, options = null, callback = null, loc = null) {
|
|
693
|
-
super('FSStat', loc)
|
|
694
|
-
this.path = path
|
|
695
|
-
this.options = options
|
|
696
|
-
this.callback = callback
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
class FSExists extends ASTNode {
|
|
701
|
-
constructor(path, loc = null) {
|
|
702
|
-
super('FSExists', loc)
|
|
703
|
-
this.path = path
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
class FSAccess extends ASTNode {
|
|
708
|
-
constructor(path, mode = null, callback = null, loc = null) {
|
|
709
|
-
super('FSAccess', loc)
|
|
710
|
-
this.path = path
|
|
711
|
-
this.mode = mode
|
|
712
|
-
this.callback = callback
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
class FSAppendFile extends ASTNode {
|
|
717
|
-
constructor(path, data, options = null, callback = null, loc = null) {
|
|
718
|
-
super('FSAppendFile', loc)
|
|
719
|
-
this.path = path
|
|
720
|
-
this.data = data
|
|
721
|
-
this.options = options
|
|
722
|
-
this.callback = callback
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
class FSCreateReadStream extends ASTNode {
|
|
727
|
-
constructor(path, options = null, loc = null) {
|
|
728
|
-
super('FSCreateReadStream', loc)
|
|
729
|
-
this.path = path
|
|
730
|
-
this.options = options
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
class FSCreateWriteStream extends ASTNode {
|
|
735
|
-
constructor(path, options = null, loc = null) {
|
|
736
|
-
super('FSCreateWriteStream', loc)
|
|
737
|
-
this.path = path
|
|
738
|
-
this.options = options
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
class FSWatch extends ASTNode {
|
|
743
|
-
constructor(path, options = null, listener = null, loc = null) {
|
|
744
|
-
super('FSWatch', loc)
|
|
745
|
-
this.path = path
|
|
746
|
-
this.options = options
|
|
747
|
-
this.listener = listener
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
class FSWatchFile extends ASTNode {
|
|
752
|
-
constructor(path, options = null, listener = null, loc = null) {
|
|
753
|
-
super('FSWatchFile', loc)
|
|
754
|
-
this.path = path
|
|
755
|
-
this.options = options
|
|
756
|
-
this.listener = listener
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
class PathJoin extends ASTNode {
|
|
761
|
-
constructor(paths = [], loc = null) {
|
|
762
|
-
super('PathJoin', loc)
|
|
763
|
-
this.paths = paths
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
class PathResolve extends ASTNode {
|
|
768
|
-
constructor(paths = [], loc = null) {
|
|
769
|
-
super('PathResolve', loc)
|
|
770
|
-
this.paths = paths
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
class PathNormalize extends ASTNode {
|
|
775
|
-
constructor(path, loc = null) {
|
|
776
|
-
super('PathNormalize', loc)
|
|
777
|
-
this.path = path
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
class PathDirname extends ASTNode {
|
|
782
|
-
constructor(path, loc = null) {
|
|
783
|
-
super('PathDirname', loc)
|
|
784
|
-
this.path = path
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
class PathBasename extends ASTNode {
|
|
789
|
-
constructor(path, ext = null, loc = null) {
|
|
790
|
-
super('PathBasename', loc)
|
|
791
|
-
this.path = path
|
|
792
|
-
this.ext = ext
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
class PathExtname extends ASTNode {
|
|
797
|
-
constructor(path, loc = null) {
|
|
798
|
-
super('PathExtname', loc)
|
|
799
|
-
this.path = path
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
class PathParse extends ASTNode {
|
|
804
|
-
constructor(path, loc = null) {
|
|
805
|
-
super('PathParse', loc)
|
|
806
|
-
this.path = path
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
class PathFormat extends ASTNode {
|
|
811
|
-
constructor(pathObject, loc = null) {
|
|
812
|
-
super('PathFormat', loc)
|
|
813
|
-
this.pathObject = pathObject
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
class PathIsAbsolute extends ASTNode {
|
|
818
|
-
constructor(path, loc = null) {
|
|
819
|
-
super('PathIsAbsolute', loc)
|
|
820
|
-
this.path = path
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
class PathRelative extends ASTNode {
|
|
825
|
-
constructor(from, to, loc = null) {
|
|
826
|
-
super('PathRelative', loc)
|
|
827
|
-
this.from = from
|
|
828
|
-
this.to = to
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
class HttpCreateServer extends ASTNode {
|
|
833
|
-
constructor(requestListener = null, loc = null) {
|
|
834
|
-
super('HttpCreateServer', loc)
|
|
835
|
-
this.requestListener = requestListener
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
class HttpsCreateServer extends ASTNode {
|
|
840
|
-
constructor(options = null, requestListener = null, loc = null) {
|
|
841
|
-
super('HttpsCreateServer', loc)
|
|
842
|
-
this.options = options
|
|
843
|
-
this.requestListener = requestListener
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
class ServerListen extends ASTNode {
|
|
848
|
-
constructor(port, hostname = null, backlog = null, callback = null, loc = null) {
|
|
849
|
-
super('ServerListen', loc)
|
|
850
|
-
this.port = port
|
|
851
|
-
this.hostname = hostname
|
|
852
|
-
this.backlog = backlog
|
|
853
|
-
this.callback = callback
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
class ServerClose extends ASTNode {
|
|
858
|
-
constructor(callback = null, loc = null) {
|
|
859
|
-
super('ServerClose', loc)
|
|
860
|
-
this.callback = callback
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
class HttpRequest extends ASTNode {
|
|
865
|
-
constructor(options, callback = null, loc = null) {
|
|
866
|
-
super('HttpRequest', loc)
|
|
867
|
-
this.options = options
|
|
868
|
-
this.callback = callback
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
class HttpGet extends ASTNode {
|
|
873
|
-
constructor(url, options = null, callback = null, loc = null) {
|
|
874
|
-
super('HttpGet', loc)
|
|
875
|
-
this.url = url
|
|
876
|
-
this.options = options
|
|
877
|
-
this.callback = callback
|
|
878
|
-
}
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
class ResponseSetHeader extends ASTNode {
|
|
882
|
-
constructor(name, value, loc = null) {
|
|
883
|
-
super('ResponseSetHeader', loc)
|
|
884
|
-
this.name = name
|
|
885
|
-
this.value = value
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
class ResponseGetHeader extends ASTNode {
|
|
890
|
-
constructor(name, loc = null) {
|
|
891
|
-
super('ResponseGetHeader', loc)
|
|
892
|
-
this.name = name
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
class ResponseRemoveHeader extends ASTNode {
|
|
897
|
-
constructor(name, loc = null) {
|
|
898
|
-
super('ResponseRemoveHeader', loc)
|
|
899
|
-
this.name = name
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
class ResponseWriteHead extends ASTNode {
|
|
904
|
-
constructor(statusCode, statusMessage = null, headers = null, loc = null) {
|
|
905
|
-
super('ResponseWriteHead', loc)
|
|
906
|
-
this.statusCode = statusCode
|
|
907
|
-
this.statusMessage = statusMessage
|
|
908
|
-
this.headers = headers
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
class ResponseWrite extends ASTNode {
|
|
913
|
-
constructor(chunk, encoding = null, callback = null, loc = null) {
|
|
914
|
-
super('ResponseWrite', loc)
|
|
915
|
-
this.chunk = chunk
|
|
916
|
-
this.encoding = encoding
|
|
917
|
-
this.callback = callback
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
class ResponseEnd extends ASTNode {
|
|
922
|
-
constructor(data = null, encoding = null, callback = null, loc = null) {
|
|
923
|
-
super('ResponseEnd', loc)
|
|
924
|
-
this.data = data
|
|
925
|
-
this.encoding = encoding
|
|
926
|
-
this.callback = callback
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
class ProcessEnv extends ASTNode {
|
|
931
|
-
constructor(variable = null, loc = null) {
|
|
932
|
-
super('ProcessEnv', loc)
|
|
933
|
-
this.variable = variable
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
class ProcessArgv extends ASTNode {
|
|
938
|
-
constructor(loc = null) {
|
|
939
|
-
super('ProcessArgv', loc)
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
class ProcessCwd extends ASTNode {
|
|
944
|
-
constructor(loc = null) {
|
|
945
|
-
super('ProcessCwd', loc)
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
class ProcessChdir extends ASTNode {
|
|
950
|
-
constructor(directory, loc = null) {
|
|
951
|
-
super('ProcessChdir', loc)
|
|
952
|
-
this.directory = directory
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
class ProcessExit extends ASTNode {
|
|
957
|
-
constructor(code = null, loc = null) {
|
|
958
|
-
super('ProcessExit', loc)
|
|
959
|
-
this.code = code
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
class ProcessKill extends ASTNode {
|
|
964
|
-
constructor(pid, signal = null, loc = null) {
|
|
965
|
-
super('ProcessKill', loc)
|
|
966
|
-
this.pid = pid
|
|
967
|
-
this.signal = signal
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
class ProcessNextTick extends ASTNode {
|
|
972
|
-
constructor(callback, args = [], loc = null) {
|
|
973
|
-
super('ProcessNextTick', loc)
|
|
974
|
-
this.callback = callback
|
|
975
|
-
this.args = args
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
class ProcessMemoryUsage extends ASTNode {
|
|
980
|
-
constructor(loc = null) {
|
|
981
|
-
super('ProcessMemoryUsage', loc)
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
class ProcessCpuUsage extends ASTNode {
|
|
986
|
-
constructor(previousValue = null, loc = null) {
|
|
987
|
-
super('ProcessCpuUsage', loc)
|
|
988
|
-
this.previousValue = previousValue
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
class ProcessUptime extends ASTNode {
|
|
993
|
-
constructor(loc = null) {
|
|
994
|
-
super('ProcessUptime', loc)
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
class ProcessHrtime extends ASTNode {
|
|
999
|
-
constructor(time = null, loc = null) {
|
|
1000
|
-
super('ProcessHrtime', loc)
|
|
1001
|
-
this.time = time
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
class ProcessOn extends ASTNode {
|
|
1006
|
-
constructor(event, listener, loc = null) {
|
|
1007
|
-
super('ProcessOn', loc)
|
|
1008
|
-
this.event = event
|
|
1009
|
-
this.listener = listener
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
class EventEmitterClass extends ASTNode {
|
|
1014
|
-
constructor(loc = null) {
|
|
1015
|
-
super('EventEmitterClass', loc)
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
class EventEmit extends ASTNode {
|
|
1020
|
-
constructor(emitter, eventName, args = [], loc = null) {
|
|
1021
|
-
super('EventEmit', loc)
|
|
1022
|
-
this.emitter = emitter
|
|
1023
|
-
this.eventName = eventName
|
|
1024
|
-
this.args = args
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
class EventOn extends ASTNode {
|
|
1029
|
-
constructor(emitter, eventName, listener, loc = null) {
|
|
1030
|
-
super('EventOn', loc)
|
|
1031
|
-
this.emitter = emitter
|
|
1032
|
-
this.eventName = eventName
|
|
1033
|
-
this.listener = listener
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
class EventOnce extends ASTNode {
|
|
1038
|
-
constructor(emitter, eventName, listener, loc = null) {
|
|
1039
|
-
super('EventOnce', loc)
|
|
1040
|
-
this.emitter = emitter
|
|
1041
|
-
this.eventName = eventName
|
|
1042
|
-
this.listener = listener
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
class EventRemoveListener extends ASTNode {
|
|
1047
|
-
constructor(emitter, eventName, listener, loc = null) {
|
|
1048
|
-
super('EventRemoveListener', loc)
|
|
1049
|
-
this.emitter = emitter
|
|
1050
|
-
this.eventName = eventName
|
|
1051
|
-
this.listener = listener
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
class EventRemoveAllListeners extends ASTNode {
|
|
1056
|
-
constructor(emitter, eventName = null, loc = null) {
|
|
1057
|
-
super('EventRemoveAllListeners', loc)
|
|
1058
|
-
this.emitter = emitter
|
|
1059
|
-
this.eventName = eventName
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
class EventListeners extends ASTNode {
|
|
1064
|
-
constructor(emitter, eventName, loc = null) {
|
|
1065
|
-
super('EventListeners', loc)
|
|
1066
|
-
this.emitter = emitter
|
|
1067
|
-
this.eventName = eventName
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
class EventListenerCount extends ASTNode {
|
|
1072
|
-
constructor(emitter, eventName, loc = null) {
|
|
1073
|
-
super('EventListenerCount', loc)
|
|
1074
|
-
this.emitter = emitter
|
|
1075
|
-
this.eventName = eventName
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
class EventSetMaxListeners extends ASTNode {
|
|
1080
|
-
constructor(emitter, n, loc = null) {
|
|
1081
|
-
super('EventSetMaxListeners', loc)
|
|
1082
|
-
this.emitter = emitter
|
|
1083
|
-
this.n = n
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
class StreamReadable extends ASTNode {
|
|
1088
|
-
constructor(options = null, loc = null) {
|
|
1089
|
-
super('StreamReadable', loc)
|
|
1090
|
-
this.options = options
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
class StreamWritable extends ASTNode {
|
|
1095
|
-
constructor(options = null, loc = null) {
|
|
1096
|
-
super('StreamWritable', loc)
|
|
1097
|
-
this.options = options
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
class StreamDuplex extends ASTNode {
|
|
1102
|
-
constructor(options = null, loc = null) {
|
|
1103
|
-
super('StreamDuplex', loc)
|
|
1104
|
-
this.options = options
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
class StreamTransform extends ASTNode {
|
|
1109
|
-
constructor(options = null, loc = null) {
|
|
1110
|
-
super('StreamTransform', loc)
|
|
1111
|
-
this.options = options
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
class StreamPassThrough extends ASTNode {
|
|
1116
|
-
constructor(options = null, loc = null) {
|
|
1117
|
-
super('StreamPassThrough', loc)
|
|
1118
|
-
this.options = options
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
class StreamPipe extends ASTNode {
|
|
1123
|
-
constructor(source, destination, options = null, loc = null) {
|
|
1124
|
-
super('StreamPipe', loc)
|
|
1125
|
-
this.source = source
|
|
1126
|
-
this.destination = destination
|
|
1127
|
-
this.options = options
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
class StreamUnpipe extends ASTNode {
|
|
1132
|
-
constructor(source, destination = null, loc = null) {
|
|
1133
|
-
super('StreamUnpipe', loc)
|
|
1134
|
-
this.source = source
|
|
1135
|
-
this.destination = destination
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
class StreamRead extends ASTNode {
|
|
1140
|
-
constructor(stream, size = null, loc = null) {
|
|
1141
|
-
super('StreamRead', loc)
|
|
1142
|
-
this.stream = stream
|
|
1143
|
-
this.size = size
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
class StreamWrite extends ASTNode {
|
|
1148
|
-
constructor(stream, chunk, encoding = null, callback = null, loc = null) {
|
|
1149
|
-
super('StreamWrite', loc)
|
|
1150
|
-
this.stream = stream
|
|
1151
|
-
this.chunk = chunk
|
|
1152
|
-
this.encoding = encoding
|
|
1153
|
-
this.callback = callback
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
class StreamEnd extends ASTNode {
|
|
1158
|
-
constructor(stream, chunk = null, encoding = null, callback = null, loc = null) {
|
|
1159
|
-
super('StreamEnd', loc)
|
|
1160
|
-
this.stream = stream
|
|
1161
|
-
this.chunk = chunk
|
|
1162
|
-
this.encoding = encoding
|
|
1163
|
-
this.callback = callback
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
class StreamDestroy extends ASTNode {
|
|
1168
|
-
constructor(stream, error = null, loc = null) {
|
|
1169
|
-
super('StreamDestroy', loc)
|
|
1170
|
-
this.stream = stream
|
|
1171
|
-
this.error = error
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
class StreamPause extends ASTNode {
|
|
1176
|
-
constructor(stream, loc = null) {
|
|
1177
|
-
super('StreamPause', loc)
|
|
1178
|
-
this.stream = stream
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
class StreamResume extends ASTNode {
|
|
1183
|
-
constructor(stream, loc = null) {
|
|
1184
|
-
super('StreamResume', loc)
|
|
1185
|
-
this.stream = stream
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
class StreamSetEncoding extends ASTNode {
|
|
1190
|
-
constructor(stream, encoding, loc = null) {
|
|
1191
|
-
super('StreamSetEncoding', loc)
|
|
1192
|
-
this.stream = stream
|
|
1193
|
-
this.encoding = encoding
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
class BufferAlloc extends ASTNode {
|
|
1198
|
-
constructor(size, fill = null, encoding = null, loc = null) {
|
|
1199
|
-
super('BufferAlloc', loc)
|
|
1200
|
-
this.size = size
|
|
1201
|
-
this.fill = fill
|
|
1202
|
-
this.encoding = encoding
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
class BufferAllocUnsafe extends ASTNode {
|
|
1207
|
-
constructor(size, loc = null) {
|
|
1208
|
-
super('BufferAllocUnsafe', loc)
|
|
1209
|
-
this.size = size
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
class BufferFrom extends ASTNode {
|
|
1214
|
-
constructor(data, encodingOrOffset = null, length = null, loc = null) {
|
|
1215
|
-
super('BufferFrom', loc)
|
|
1216
|
-
this.data = data
|
|
1217
|
-
this.encodingOrOffset = encodingOrOffset
|
|
1218
|
-
this.length = length
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
class BufferConcat extends ASTNode {
|
|
1223
|
-
constructor(list, totalLength = null, loc = null) {
|
|
1224
|
-
super('BufferConcat', loc)
|
|
1225
|
-
this.list = list
|
|
1226
|
-
this.totalLength = totalLength
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
class BufferCompare extends ASTNode {
|
|
1231
|
-
constructor(buf1, buf2, loc = null) {
|
|
1232
|
-
super('BufferCompare', loc)
|
|
1233
|
-
this.buf1 = buf1
|
|
1234
|
-
this.buf2 = buf2
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
class BufferIsBuffer extends ASTNode {
|
|
1239
|
-
constructor(obj, loc = null) {
|
|
1240
|
-
super('BufferIsBuffer', loc)
|
|
1241
|
-
this.obj = obj
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
class BufferByteLength extends ASTNode {
|
|
1246
|
-
constructor(string, encoding = null, loc = null) {
|
|
1247
|
-
super('BufferByteLength', loc)
|
|
1248
|
-
this.string = string
|
|
1249
|
-
this.encoding = encoding
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
class BufferToString extends ASTNode {
|
|
1254
|
-
constructor(buffer, encoding = null, start = null, end = null, loc = null) {
|
|
1255
|
-
super('BufferToString', loc)
|
|
1256
|
-
this.buffer = buffer
|
|
1257
|
-
this.encoding = encoding
|
|
1258
|
-
this.start = start
|
|
1259
|
-
this.end = end
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
class BufferToJSON extends ASTNode {
|
|
1264
|
-
constructor(buffer, loc = null) {
|
|
1265
|
-
super('BufferToJSON', loc)
|
|
1266
|
-
this.buffer = buffer
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
class BufferCopy extends ASTNode {
|
|
1271
|
-
constructor(source, target, targetStart = null, sourceStart = null, sourceEnd = null, loc = null) {
|
|
1272
|
-
super('BufferCopy', loc)
|
|
1273
|
-
this.source = source
|
|
1274
|
-
this.target = target
|
|
1275
|
-
this.targetStart = targetStart
|
|
1276
|
-
this.sourceStart = sourceStart
|
|
1277
|
-
this.sourceEnd = sourceEnd
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
class BufferSlice extends ASTNode {
|
|
1282
|
-
constructor(buffer, start = null, end = null, loc = null) {
|
|
1283
|
-
super('BufferSlice', loc)
|
|
1284
|
-
this.buffer = buffer
|
|
1285
|
-
this.start = start
|
|
1286
|
-
this.end = end
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
class BufferFill extends ASTNode {
|
|
1291
|
-
constructor(buffer, value, offset = null, end = null, encoding = null, loc = null) {
|
|
1292
|
-
super('BufferFill', loc)
|
|
1293
|
-
this.buffer = buffer
|
|
1294
|
-
this.value = value
|
|
1295
|
-
this.offset = offset
|
|
1296
|
-
this.end = end
|
|
1297
|
-
this.encoding = encoding
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
class BufferIncludes extends ASTNode {
|
|
1302
|
-
constructor(buffer, value, byteOffset = null, encoding = null, loc = null) {
|
|
1303
|
-
super('BufferIncludes', loc)
|
|
1304
|
-
this.buffer = buffer
|
|
1305
|
-
this.value = value
|
|
1306
|
-
this.byteOffset = byteOffset
|
|
1307
|
-
this.encoding = encoding
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
class BufferIndexOf extends ASTNode {
|
|
1312
|
-
constructor(buffer, value, byteOffset = null, encoding = null, loc = null) {
|
|
1313
|
-
super('BufferIndexOf', loc)
|
|
1314
|
-
this.buffer = buffer
|
|
1315
|
-
this.value = value
|
|
1316
|
-
this.byteOffset = byteOffset
|
|
1317
|
-
this.encoding = encoding
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
class OsType extends ASTNode {
|
|
1322
|
-
constructor(loc = null) {
|
|
1323
|
-
super('OsType', loc)
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
class OsPlatform extends ASTNode {
|
|
1328
|
-
constructor(loc = null) {
|
|
1329
|
-
super('OsPlatform', loc)
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
class OsArch extends ASTNode {
|
|
1334
|
-
constructor(loc = null) {
|
|
1335
|
-
super('OsArch', loc)
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
class OsVersion extends ASTNode {
|
|
1340
|
-
constructor(loc = null) {
|
|
1341
|
-
super('OsVersion', loc)
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
class OsRelease extends ASTNode {
|
|
1346
|
-
constructor(loc = null) {
|
|
1347
|
-
super('OsRelease', loc)
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
class OsHostname extends ASTNode {
|
|
1352
|
-
constructor(loc = null) {
|
|
1353
|
-
super('OsHostname', loc)
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
class OsTotalmem extends ASTNode {
|
|
1358
|
-
constructor(loc = null) {
|
|
1359
|
-
super('OsTotalmem', loc)
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
class OsFreemem extends ASTNode {
|
|
1364
|
-
constructor(loc = null) {
|
|
1365
|
-
super('OsFreemem', loc)
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
class OsCpus extends ASTNode {
|
|
1370
|
-
constructor(loc = null) {
|
|
1371
|
-
super('OsCpus', loc)
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
class OsLoadavg extends ASTNode {
|
|
1376
|
-
constructor(loc = null) {
|
|
1377
|
-
super('OsLoadavg', loc)
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
class OsUserInfo extends ASTNode {
|
|
1382
|
-
constructor(options = null, loc = null) {
|
|
1383
|
-
super('OsUserInfo', loc)
|
|
1384
|
-
this.options = options
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
class OsHomedir extends ASTNode {
|
|
1389
|
-
constructor(loc = null) {
|
|
1390
|
-
super('OsHomedir', loc)
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
class OsTmpdir extends ASTNode {
|
|
1395
|
-
constructor(loc = null) {
|
|
1396
|
-
super('OsTmpdir', loc)
|
|
1397
|
-
}
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
class OsNetworkInterfaces extends ASTNode {
|
|
1401
|
-
constructor(loc = null) {
|
|
1402
|
-
super('OsNetworkInterfaces', loc)
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
class OsUptime extends ASTNode {
|
|
1407
|
-
constructor(loc = null) {
|
|
1408
|
-
super('OsUptime', loc)
|
|
1409
|
-
}
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
class CryptoCreateHash extends ASTNode {
|
|
1413
|
-
constructor(algorithm, options = null, loc = null) {
|
|
1414
|
-
super('CryptoCreateHash', loc)
|
|
1415
|
-
this.algorithm = algorithm
|
|
1416
|
-
this.options = options
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
|
|
1420
|
-
class CryptoCreateHmac extends ASTNode {
|
|
1421
|
-
constructor(algorithm, key, options = null, loc = null) {
|
|
1422
|
-
super('CryptoCreateHmac', loc)
|
|
1423
|
-
this.algorithm = algorithm
|
|
1424
|
-
this.key = key
|
|
1425
|
-
this.options = options
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
class HashUpdate extends ASTNode {
|
|
1430
|
-
constructor(hash, data, inputEncoding = null, loc = null) {
|
|
1431
|
-
super('HashUpdate', loc)
|
|
1432
|
-
this.hash = hash
|
|
1433
|
-
this.data = data
|
|
1434
|
-
this.inputEncoding = inputEncoding
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
class HashDigest extends ASTNode {
|
|
1439
|
-
constructor(hash, encoding = null, loc = null) {
|
|
1440
|
-
super('HashDigest', loc)
|
|
1441
|
-
this.hash = hash
|
|
1442
|
-
this.encoding = encoding
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
class CryptoCreateCipheriv extends ASTNode {
|
|
1447
|
-
constructor(algorithm, key, iv, options = null, loc = null) {
|
|
1448
|
-
super('CryptoCreateCipheriv', loc)
|
|
1449
|
-
this.algorithm = algorithm
|
|
1450
|
-
this.key = key
|
|
1451
|
-
this.iv = iv
|
|
1452
|
-
this.options = options
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
class CryptoCreateDecipheriv extends ASTNode {
|
|
1457
|
-
constructor(algorithm, key, iv, options = null, loc = null) {
|
|
1458
|
-
super('CryptoCreateDecipheriv', loc)
|
|
1459
|
-
this.algorithm = algorithm
|
|
1460
|
-
this.key = key
|
|
1461
|
-
this.iv = iv
|
|
1462
|
-
this.options = options
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
class CryptoRandomBytes extends ASTNode {
|
|
1467
|
-
constructor(size, callback = null, loc = null) {
|
|
1468
|
-
super('CryptoRandomBytes', loc)
|
|
1469
|
-
this.size = size
|
|
1470
|
-
this.callback = callback
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
class CryptoRandomFill extends ASTNode {
|
|
1475
|
-
constructor(buffer, offset = null, size = null, callback = null, loc = null) {
|
|
1476
|
-
super('CryptoRandomFill', loc)
|
|
1477
|
-
this.buffer = buffer
|
|
1478
|
-
this.offset = offset
|
|
1479
|
-
this.size = size
|
|
1480
|
-
this.callback = callback
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
class CryptoRandomUUID extends ASTNode {
|
|
1485
|
-
constructor(options = null, loc = null) {
|
|
1486
|
-
super('CryptoRandomUUID', loc)
|
|
1487
|
-
this.options = options
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
class CryptoRandomInt extends ASTNode {
|
|
1492
|
-
constructor(min, max = null, callback = null, loc = null) {
|
|
1493
|
-
super('CryptoRandomInt', loc)
|
|
1494
|
-
this.min = min
|
|
1495
|
-
this.max = max
|
|
1496
|
-
this.callback = callback
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
class CryptoPbkdf2 extends ASTNode {
|
|
1501
|
-
constructor(password, salt, iterations, keylen, digest, callback = null, loc = null) {
|
|
1502
|
-
super('CryptoPbkdf2', loc)
|
|
1503
|
-
this.password = password
|
|
1504
|
-
this.salt = salt
|
|
1505
|
-
this.iterations = iterations
|
|
1506
|
-
this.keylen = keylen
|
|
1507
|
-
this.digest = digest
|
|
1508
|
-
this.callback = callback
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
|
|
1512
|
-
class CryptoPbkdf2Sync extends ASTNode {
|
|
1513
|
-
constructor(password, salt, iterations, keylen, digest, loc = null) {
|
|
1514
|
-
super('CryptoPbkdf2Sync', loc)
|
|
1515
|
-
this.password = password
|
|
1516
|
-
this.salt = salt
|
|
1517
|
-
this.iterations = iterations
|
|
1518
|
-
this.keylen = keylen
|
|
1519
|
-
this.digest = digest
|
|
1520
|
-
}
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
class CryptoScrypt extends ASTNode {
|
|
1524
|
-
constructor(password, salt, keylen, options = null, callback = null, loc = null) {
|
|
1525
|
-
super('CryptoScrypt', loc)
|
|
1526
|
-
this.password = password
|
|
1527
|
-
this.salt = salt
|
|
1528
|
-
this.keylen = keylen
|
|
1529
|
-
this.options = options
|
|
1530
|
-
this.callback = callback
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
class CryptoScryptSync extends ASTNode {
|
|
1535
|
-
constructor(password, salt, keylen, options = null, loc = null) {
|
|
1536
|
-
super('CryptoScryptSync', loc)
|
|
1537
|
-
this.password = password
|
|
1538
|
-
this.salt = salt
|
|
1539
|
-
this.keylen = keylen
|
|
1540
|
-
this.options = options
|
|
1541
|
-
}
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
class CryptoCreateSign extends ASTNode {
|
|
1545
|
-
constructor(algorithm, options = null, loc = null) {
|
|
1546
|
-
super('CryptoCreateSign', loc)
|
|
1547
|
-
this.algorithm = algorithm
|
|
1548
|
-
this.options = options
|
|
1549
|
-
}
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
class CryptoCreateVerify extends ASTNode {
|
|
1553
|
-
constructor(algorithm, options = null, loc = null) {
|
|
1554
|
-
super('CryptoCreateVerify', loc)
|
|
1555
|
-
this.algorithm = algorithm
|
|
1556
|
-
this.options = options
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
class CryptoSign extends ASTNode {
|
|
1561
|
-
constructor(sign, privateKey, outputEncoding = null, loc = null) {
|
|
1562
|
-
super('CryptoSign', loc)
|
|
1563
|
-
this.sign = sign
|
|
1564
|
-
this.privateKey = privateKey
|
|
1565
|
-
this.outputEncoding = outputEncoding
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
class CryptoVerify extends ASTNode {
|
|
1570
|
-
constructor(verify, publicKey, signature, signatureEncoding = null, loc = null) {
|
|
1571
|
-
super('CryptoVerify', loc)
|
|
1572
|
-
this.verify = verify
|
|
1573
|
-
this.publicKey = publicKey
|
|
1574
|
-
this.signature = signature
|
|
1575
|
-
this.signatureEncoding = signatureEncoding
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
|
-
class CryptoGetHashes extends ASTNode {
|
|
1580
|
-
constructor(loc = null) {
|
|
1581
|
-
super('CryptoGetHashes', loc)
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
class CryptoGetCiphers extends ASTNode {
|
|
1586
|
-
constructor(loc = null) {
|
|
1587
|
-
super('CryptoGetCiphers', loc)
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
class CryptoGetCurves extends ASTNode {
|
|
1592
|
-
constructor(loc = null) {
|
|
1593
|
-
super('CryptoGetCurves', loc)
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
class URLClass extends ASTNode {
|
|
1598
|
-
constructor(input, base = null, loc = null) {
|
|
1599
|
-
super('URLClass', loc)
|
|
1600
|
-
this.input = input
|
|
1601
|
-
this.base = base
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
class URLParse extends ASTNode {
|
|
1606
|
-
constructor(urlString, parseQueryString = null, slashesDenoteHost = null, loc = null) {
|
|
1607
|
-
super('URLParse', loc)
|
|
1608
|
-
this.urlString = urlString
|
|
1609
|
-
this.parseQueryString = parseQueryString
|
|
1610
|
-
this.slashesDenoteHost = slashesDenoteHost
|
|
1611
|
-
}
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
class URLFormat extends ASTNode {
|
|
1615
|
-
constructor(urlObject, options = null, loc = null) {
|
|
1616
|
-
super('URLFormat', loc)
|
|
1617
|
-
this.urlObject = urlObject
|
|
1618
|
-
this.options = options
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
class URLResolve extends ASTNode {
|
|
1623
|
-
constructor(from, to, loc = null) {
|
|
1624
|
-
super('URLResolve', loc)
|
|
1625
|
-
this.from = from
|
|
1626
|
-
this.to = to
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
class URLSearchParamsClass extends ASTNode {
|
|
1631
|
-
constructor(init = null, loc = null) {
|
|
1632
|
-
super('URLSearchParamsClass', loc)
|
|
1633
|
-
this.init = init
|
|
1634
|
-
}
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
class URLSearchParamsGet extends ASTNode {
|
|
1638
|
-
constructor(params, name, loc = null) {
|
|
1639
|
-
super('URLSearchParamsGet', loc)
|
|
1640
|
-
this.params = params
|
|
1641
|
-
this.name = name
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
class URLSearchParamsGetAll extends ASTNode {
|
|
1646
|
-
constructor(params, name, loc = null) {
|
|
1647
|
-
super('URLSearchParamsGetAll', loc)
|
|
1648
|
-
this.params = params
|
|
1649
|
-
this.name = name
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
class URLSearchParamsAppend extends ASTNode {
|
|
1654
|
-
constructor(params, name, value, loc = null) {
|
|
1655
|
-
super('URLSearchParamsAppend', loc)
|
|
1656
|
-
this.params = params
|
|
1657
|
-
this.name = name
|
|
1658
|
-
this.value = value
|
|
1659
|
-
}
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
class URLSearchParamsSet extends ASTNode {
|
|
1663
|
-
constructor(params, name, value, loc = null) {
|
|
1664
|
-
super('URLSearchParamsSet', loc)
|
|
1665
|
-
this.params = params
|
|
1666
|
-
this.name = name
|
|
1667
|
-
this.value = value
|
|
1668
|
-
}
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
class URLSearchParamsDelete extends ASTNode {
|
|
1672
|
-
constructor(params, name, loc = null) {
|
|
1673
|
-
super('URLSearchParamsDelete', loc)
|
|
1674
|
-
this.params = params
|
|
1675
|
-
this.name = name
|
|
1676
|
-
}
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
class URLSearchParamsHas extends ASTNode {
|
|
1680
|
-
constructor(params, name, loc = null) {
|
|
1681
|
-
super('URLSearchParamsHas', loc)
|
|
1682
|
-
this.params = params
|
|
1683
|
-
this.name = name
|
|
1684
|
-
}
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
|
-
class URLSearchParamsSort extends ASTNode {
|
|
1688
|
-
constructor(params, loc = null) {
|
|
1689
|
-
super('URLSearchParamsSort', loc)
|
|
1690
|
-
this.params = params
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
class ChildProcessSpawn extends ASTNode {
|
|
1695
|
-
constructor(command, args = [], options = null, loc = null) {
|
|
1696
|
-
super('ChildProcessSpawn', loc)
|
|
1697
|
-
this.command = command
|
|
1698
|
-
this.args = args
|
|
1699
|
-
this.options = options
|
|
1700
|
-
}
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
class ChildProcessExec extends ASTNode {
|
|
1704
|
-
constructor(command, options = null, callback = null, loc = null) {
|
|
1705
|
-
super('ChildProcessExec', loc)
|
|
1706
|
-
this.command = command
|
|
1707
|
-
this.options = options
|
|
1708
|
-
this.callback = callback
|
|
1709
|
-
}
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
class ChildProcessExecFile extends ASTNode {
|
|
1713
|
-
constructor(file, args = [], options = null, callback = null, loc = null) {
|
|
1714
|
-
super('ChildProcessExecFile', loc)
|
|
1715
|
-
this.file = file
|
|
1716
|
-
this.args = args
|
|
1717
|
-
this.options = options
|
|
1718
|
-
this.callback = callback
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
class ChildProcessFork extends ASTNode {
|
|
1723
|
-
constructor(modulePath, args = [], options = null, loc = null) {
|
|
1724
|
-
super('ChildProcessFork', loc)
|
|
1725
|
-
this.modulePath = modulePath
|
|
1726
|
-
this.args = args
|
|
1727
|
-
this.options = options
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
|
|
1731
|
-
class ChildProcessSpawnSync extends ASTNode {
|
|
1732
|
-
constructor(command, args = [], options = null, loc = null) {
|
|
1733
|
-
super('ChildProcessSpawnSync', loc)
|
|
1734
|
-
this.command = command
|
|
1735
|
-
this.args = args
|
|
1736
|
-
this.options = options
|
|
1737
|
-
}
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
class ChildProcessExecSync extends ASTNode {
|
|
1741
|
-
constructor(command, options = null, loc = null) {
|
|
1742
|
-
super('ChildProcessExecSync', loc)
|
|
1743
|
-
this.command = command
|
|
1744
|
-
this.options = options
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
class ChildProcessExecFileSync extends ASTNode {
|
|
1749
|
-
constructor(file, args = [], options = null, loc = null) {
|
|
1750
|
-
super('ChildProcessExecFileSync', loc)
|
|
1751
|
-
this.file = file
|
|
1752
|
-
this.args = args
|
|
1753
|
-
this.options = options
|
|
1754
|
-
}
|
|
1755
|
-
}
|
|
1756
|
-
|
|
1757
|
-
class ChildKill extends ASTNode {
|
|
1758
|
-
constructor(child, signal = null, loc = null) {
|
|
1759
|
-
super('ChildKill', loc)
|
|
1760
|
-
this.child = child
|
|
1761
|
-
this.signal = signal
|
|
1762
|
-
}
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
class ChildSend extends ASTNode {
|
|
1766
|
-
constructor(child, message, sendHandle = null, options = null, callback = null, loc = null) {
|
|
1767
|
-
super('ChildSend', loc)
|
|
1768
|
-
this.child = child
|
|
1769
|
-
this.message = message
|
|
1770
|
-
this.sendHandle = sendHandle
|
|
1771
|
-
this.options = options
|
|
1772
|
-
this.callback = callback
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
class ChildDisconnect extends ASTNode {
|
|
1777
|
-
constructor(child, loc = null) {
|
|
1778
|
-
super('ChildDisconnect', loc)
|
|
1779
|
-
this.child = child
|
|
1780
|
-
}
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
|
-
class UtilPromisify extends ASTNode {
|
|
1784
|
-
constructor(original, loc = null) {
|
|
1785
|
-
super('UtilPromisify', loc)
|
|
1786
|
-
this.original = original
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
class UtilCallbackify extends ASTNode {
|
|
1791
|
-
constructor(original, loc = null) {
|
|
1792
|
-
super('UtilCallbackify', loc)
|
|
1793
|
-
this.original = original
|
|
1794
|
-
}
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
class UtilFormat extends ASTNode {
|
|
1798
|
-
constructor(format, args = [], loc = null) {
|
|
1799
|
-
super('UtilFormat', loc)
|
|
1800
|
-
this.format = format
|
|
1801
|
-
this.args = args
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
class UtilInspect extends ASTNode {
|
|
1806
|
-
constructor(object, options = null, loc = null) {
|
|
1807
|
-
super('UtilInspect', loc)
|
|
1808
|
-
this.object = object
|
|
1809
|
-
this.options = options
|
|
1810
|
-
}
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
class UtilDeprecate extends ASTNode {
|
|
1814
|
-
constructor(fn, msg, code = null, loc = null) {
|
|
1815
|
-
super('UtilDeprecate', loc)
|
|
1816
|
-
this.fn = fn
|
|
1817
|
-
this.msg = msg
|
|
1818
|
-
this.code = code
|
|
1819
|
-
}
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
class DnsLookup extends ASTNode {
|
|
1823
|
-
constructor(hostname, options = null, callback = null, loc = null) {
|
|
1824
|
-
super('DnsLookup', loc)
|
|
1825
|
-
this.hostname = hostname
|
|
1826
|
-
this.options = options
|
|
1827
|
-
this.callback = callback
|
|
1828
|
-
}
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
class DnsResolve extends ASTNode {
|
|
1832
|
-
constructor(hostname, rrtype = null, callback = null, loc = null) {
|
|
1833
|
-
super('DnsResolve', loc)
|
|
1834
|
-
this.hostname = hostname
|
|
1835
|
-
this.rrtype = rrtype
|
|
1836
|
-
this.callback = callback
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
class DnsResolve4 extends ASTNode {
|
|
1841
|
-
constructor(hostname, options = null, callback = null, loc = null) {
|
|
1842
|
-
super('DnsResolve4', loc)
|
|
1843
|
-
this.hostname = hostname
|
|
1844
|
-
this.options = options
|
|
1845
|
-
this.callback = callback
|
|
1846
|
-
}
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
class DnsResolve6 extends ASTNode {
|
|
1850
|
-
constructor(hostname, options = null, callback = null, loc = null) {
|
|
1851
|
-
super('DnsResolve6', loc)
|
|
1852
|
-
this.hostname = hostname
|
|
1853
|
-
this.options = options
|
|
1854
|
-
this.callback = callback
|
|
1855
|
-
}
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
class DnsResolveMx extends ASTNode {
|
|
1859
|
-
constructor(hostname, callback = null, loc = null) {
|
|
1860
|
-
super('DnsResolveMx', loc)
|
|
1861
|
-
this.hostname = hostname
|
|
1862
|
-
this.callback = callback
|
|
1863
|
-
}
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
class DnsResolveTxt extends ASTNode {
|
|
1867
|
-
constructor(hostname, callback = null, loc = null) {
|
|
1868
|
-
super('DnsResolveTxt', loc)
|
|
1869
|
-
this.hostname = hostname
|
|
1870
|
-
this.callback = callback
|
|
1871
|
-
}
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
class DnsResolveNs extends ASTNode {
|
|
1875
|
-
constructor(hostname, callback = null, loc = null) {
|
|
1876
|
-
super('DnsResolveNs', loc)
|
|
1877
|
-
this.hostname = hostname
|
|
1878
|
-
this.callback = callback
|
|
1879
|
-
}
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
class DnsResolveCname extends ASTNode {
|
|
1883
|
-
constructor(hostname, callback = null, loc = null) {
|
|
1884
|
-
super('DnsResolveCname', loc)
|
|
1885
|
-
this.hostname = hostname
|
|
1886
|
-
this.callback = callback
|
|
1887
|
-
}
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
|
-
class DnsReverse extends ASTNode {
|
|
1891
|
-
constructor(ip, callback = null, loc = null) {
|
|
1892
|
-
super('DnsReverse', loc)
|
|
1893
|
-
this.ip = ip
|
|
1894
|
-
this.callback = callback
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
class SetTimeout extends ASTNode {
|
|
1899
|
-
constructor(callback, delay, args = [], loc = null) {
|
|
1900
|
-
super('SetTimeout', loc)
|
|
1901
|
-
this.callback = callback
|
|
1902
|
-
this.delay = delay
|
|
1903
|
-
this.args = args
|
|
1904
|
-
}
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
class ClearTimeout extends ASTNode {
|
|
1908
|
-
constructor(timeoutId, loc = null) {
|
|
1909
|
-
super('ClearTimeout', loc)
|
|
1910
|
-
this.timeoutId = timeoutId
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
|
-
|
|
1914
|
-
class SetInterval extends ASTNode {
|
|
1915
|
-
constructor(callback, delay, args = [], loc = null) {
|
|
1916
|
-
super('SetInterval', loc)
|
|
1917
|
-
this.callback = callback
|
|
1918
|
-
this.delay = delay
|
|
1919
|
-
this.args = args
|
|
1920
|
-
}
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
class ClearInterval extends ASTNode {
|
|
1924
|
-
constructor(intervalId, loc = null) {
|
|
1925
|
-
super('ClearInterval', loc)
|
|
1926
|
-
this.intervalId = intervalId
|
|
1927
|
-
}
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
class SetImmediate extends ASTNode {
|
|
1931
|
-
constructor(callback, args = [], loc = null) {
|
|
1932
|
-
super('SetImmediate', loc)
|
|
1933
|
-
this.callback = callback
|
|
1934
|
-
this.args = args
|
|
1935
|
-
}
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
class ClearImmediate extends ASTNode {
|
|
1939
|
-
constructor(immediateId, loc = null) {
|
|
1940
|
-
super('ClearImmediate', loc)
|
|
1941
|
-
this.immediateId = immediateId
|
|
1942
|
-
}
|
|
1943
|
-
}
|
|
1944
|
-
|
|
1945
|
-
class ConsoleLog extends ASTNode {
|
|
1946
|
-
constructor(args = [], loc = null) {
|
|
1947
|
-
super('ConsoleLog', loc)
|
|
1948
|
-
this.args = args
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
class ConsoleError extends ASTNode {
|
|
1953
|
-
constructor(args = [], loc = null) {
|
|
1954
|
-
super('ConsoleError', loc)
|
|
1955
|
-
this.args = args
|
|
1956
|
-
}
|
|
1957
|
-
}
|
|
1958
|
-
|
|
1959
|
-
class ConsoleWarn extends ASTNode {
|
|
1960
|
-
constructor(args = [], loc = null) {
|
|
1961
|
-
super('ConsoleWarn', loc)
|
|
1962
|
-
this.args = args
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
class ConsoleInfo extends ASTNode {
|
|
1967
|
-
constructor(args = [], loc = null) {
|
|
1968
|
-
super('ConsoleInfo', loc)
|
|
1969
|
-
this.args = args
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
|
|
1973
|
-
class ConsoleDebug extends ASTNode {
|
|
1974
|
-
constructor(args = [], loc = null) {
|
|
1975
|
-
super('ConsoleDebug', loc)
|
|
1976
|
-
this.args = args
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
class ConsoleTable extends ASTNode {
|
|
1981
|
-
constructor(tabularData, properties = null, loc = null) {
|
|
1982
|
-
super('ConsoleTable', loc)
|
|
1983
|
-
this.tabularData = tabularData
|
|
1984
|
-
this.properties = properties
|
|
1985
|
-
}
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
class ConsoleTime extends ASTNode {
|
|
1989
|
-
constructor(label = null, loc = null) {
|
|
1990
|
-
super('ConsoleTime', loc)
|
|
1991
|
-
this.label = label
|
|
1992
|
-
}
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
|
-
class ConsoleTimeEnd extends ASTNode {
|
|
1996
|
-
constructor(label = null, loc = null) {
|
|
1997
|
-
super('ConsoleTimeEnd', loc)
|
|
1998
|
-
this.label = label
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
|
-
class ConsoleTimeLog extends ASTNode {
|
|
2003
|
-
constructor(label = null, args = [], loc = null) {
|
|
2004
|
-
super('ConsoleTimeLog', loc)
|
|
2005
|
-
this.label = label
|
|
2006
|
-
this.args = args
|
|
2007
|
-
}
|
|
2008
|
-
}
|
|
2009
|
-
|
|
2010
|
-
class ConsoleTrace extends ASTNode {
|
|
2011
|
-
constructor(args = [], loc = null) {
|
|
2012
|
-
super('ConsoleTrace', loc)
|
|
2013
|
-
this.args = args
|
|
2014
|
-
}
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
class ConsoleClear extends ASTNode {
|
|
2018
|
-
constructor(loc = null) {
|
|
2019
|
-
super('ConsoleClear', loc)
|
|
2020
|
-
}
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
class ConsoleCount extends ASTNode {
|
|
2024
|
-
constructor(label = null, loc = null) {
|
|
2025
|
-
super('ConsoleCount', loc)
|
|
2026
|
-
this.label = label
|
|
2027
|
-
}
|
|
2028
|
-
}
|
|
2029
|
-
|
|
2030
|
-
class ConsoleCountReset extends ASTNode {
|
|
2031
|
-
constructor(label = null, loc = null) {
|
|
2032
|
-
super('ConsoleCountReset', loc)
|
|
2033
|
-
this.label = label
|
|
2034
|
-
}
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
class ConsoleGroup extends ASTNode {
|
|
2038
|
-
constructor(args = [], loc = null) {
|
|
2039
|
-
super('ConsoleGroup', loc)
|
|
2040
|
-
this.args = args
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
class ConsoleGroupEnd extends ASTNode {
|
|
2045
|
-
constructor(loc = null) {
|
|
2046
|
-
super('ConsoleGroupEnd', loc)
|
|
2047
|
-
}
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
class ConsoleGroupCollapsed extends ASTNode {
|
|
2051
|
-
constructor(args = [], loc = null) {
|
|
2052
|
-
super('ConsoleGroupCollapsed', loc)
|
|
2053
|
-
this.args = args
|
|
2054
|
-
}
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
class ConsoleAssert extends ASTNode {
|
|
2058
|
-
constructor(assertion, args = [], loc = null) {
|
|
2059
|
-
super('ConsoleAssert', loc)
|
|
2060
|
-
this.assertion = assertion
|
|
2061
|
-
this.args = args
|
|
2062
|
-
}
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
|
-
class ConsoleDir extends ASTNode {
|
|
2066
|
-
constructor(obj, options = null, loc = null) {
|
|
2067
|
-
super('ConsoleDir', loc)
|
|
2068
|
-
this.obj = obj
|
|
2069
|
-
this.options = options
|
|
2070
|
-
}
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
|
-
class GlobalVariable extends ASTNode {
|
|
2074
|
-
constructor(name, loc = null) {
|
|
2075
|
-
super('GlobalVariable', loc)
|
|
2076
|
-
this.name = name
|
|
2077
|
-
}
|
|
2078
|
-
}
|
|
2079
|
-
|
|
2080
|
-
class Dirname extends ASTNode {
|
|
2081
|
-
constructor(loc = null) {
|
|
2082
|
-
super('Dirname', loc)
|
|
2083
|
-
}
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
|
-
class Filename extends ASTNode {
|
|
2087
|
-
constructor(loc = null) {
|
|
2088
|
-
super('Filename', loc)
|
|
2089
|
-
}
|
|
2090
|
-
}
|
|
2091
|
-
|
|
2092
|
-
class PromiseExpression extends ASTNode {
|
|
2093
|
-
constructor(executor, loc = null) {
|
|
2094
|
-
super('PromiseExpression', loc)
|
|
2095
|
-
this.executor = executor
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
class PromiseResolve extends ASTNode {
|
|
2100
|
-
constructor(value = null, loc = null) {
|
|
2101
|
-
super('PromiseResolve', loc)
|
|
2102
|
-
this.value = value
|
|
2103
|
-
}
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
class PromiseReject extends ASTNode {
|
|
2107
|
-
constructor(reason = null, loc = null) {
|
|
2108
|
-
super('PromiseReject', loc)
|
|
2109
|
-
this.reason = reason
|
|
2110
|
-
}
|
|
2111
|
-
}
|
|
2112
|
-
|
|
2113
|
-
class PromiseAll extends ASTNode {
|
|
2114
|
-
constructor(iterable, loc = null) {
|
|
2115
|
-
super('PromiseAll', loc)
|
|
2116
|
-
this.iterable = iterable
|
|
2117
|
-
}
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
class PromiseAllSettled extends ASTNode {
|
|
2121
|
-
constructor(iterable, loc = null) {
|
|
2122
|
-
super('PromiseAllSettled', loc)
|
|
2123
|
-
this.iterable = iterable
|
|
2124
|
-
}
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
class PromiseRace extends ASTNode {
|
|
2128
|
-
constructor(iterable, loc = null) {
|
|
2129
|
-
super('PromiseRace', loc)
|
|
2130
|
-
this.iterable = iterable
|
|
2131
|
-
}
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
|
-
class PromiseAny extends ASTNode {
|
|
2135
|
-
constructor(iterable, loc = null) {
|
|
2136
|
-
super('PromiseAny', loc)
|
|
2137
|
-
this.iterable = iterable
|
|
2138
|
-
}
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
class PromiseThen extends ASTNode {
|
|
2142
|
-
constructor(promise, onFulfilled = null, onRejected = null, loc = null) {
|
|
2143
|
-
super('PromiseThen', loc)
|
|
2144
|
-
this.promise = promise
|
|
2145
|
-
this.onFulfilled = onFulfilled
|
|
2146
|
-
this.onRejected = onRejected
|
|
2147
|
-
}
|
|
2148
|
-
}
|
|
2149
|
-
|
|
2150
|
-
class PromiseCatch extends ASTNode {
|
|
2151
|
-
constructor(promise, onRejected, loc = null) {
|
|
2152
|
-
super('PromiseCatch', loc)
|
|
2153
|
-
this.promise = promise
|
|
2154
|
-
this.onRejected = onRejected
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
2157
|
-
|
|
2158
|
-
class PromiseFinally extends ASTNode {
|
|
2159
|
-
constructor(promise, onFinally, loc = null) {
|
|
2160
|
-
super('PromiseFinally', loc)
|
|
2161
|
-
this.promise = promise
|
|
2162
|
-
this.onFinally = onFinally
|
|
2163
|
-
}
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
module.exports = {
|
|
2167
|
-
ASTNode,
|
|
2168
|
-
Program,
|
|
2169
|
-
Identifier,
|
|
2170
|
-
StringLiteral,
|
|
2171
|
-
NumericLiteral,
|
|
2172
|
-
BooleanLiteral,
|
|
2173
|
-
NullLiteral,
|
|
2174
|
-
UndefinedLiteral,
|
|
2175
|
-
TemplateLiteral,
|
|
2176
|
-
TemplateElement,
|
|
2177
|
-
RegExpLiteral,
|
|
2178
|
-
ArrayExpression,
|
|
2179
|
-
ObjectExpression,
|
|
2180
|
-
Property,
|
|
2181
|
-
SpreadElement,
|
|
2182
|
-
RequireStatement,
|
|
2183
|
-
RequireDestructuring,
|
|
2184
|
-
ImportDeclaration,
|
|
2185
|
-
ImportDefaultSpecifier,
|
|
2186
|
-
ImportSpecifier,
|
|
2187
|
-
ImportNamespaceSpecifier,
|
|
2188
|
-
DynamicImport,
|
|
2189
|
-
ExportNamedDeclaration,
|
|
2190
|
-
ExportDefaultDeclaration,
|
|
2191
|
-
ExportSpecifier,
|
|
2192
|
-
ModuleExports,
|
|
2193
|
-
VariableDeclaration,
|
|
2194
|
-
VariableDeclarator,
|
|
2195
|
-
FunctionDeclaration,
|
|
2196
|
-
FunctionExpression,
|
|
2197
|
-
ArrowFunctionExpression,
|
|
2198
|
-
BlockStatement,
|
|
2199
|
-
ReturnStatement,
|
|
2200
|
-
IfStatement,
|
|
2201
|
-
SwitchStatement,
|
|
2202
|
-
SwitchCase,
|
|
2203
|
-
ForStatement,
|
|
2204
|
-
ForInStatement,
|
|
2205
|
-
ForOfStatement,
|
|
2206
|
-
WhileStatement,
|
|
2207
|
-
DoWhileStatement,
|
|
2208
|
-
BreakStatement,
|
|
2209
|
-
ContinueStatement,
|
|
2210
|
-
TryStatement,
|
|
2211
|
-
CatchClause,
|
|
2212
|
-
ThrowStatement,
|
|
2213
|
-
ClassDeclaration,
|
|
2214
|
-
ClassExpression,
|
|
2215
|
-
ClassBody,
|
|
2216
|
-
MethodDefinition,
|
|
2217
|
-
PropertyDefinition,
|
|
2218
|
-
CallExpression,
|
|
2219
|
-
NewExpression,
|
|
2220
|
-
MemberExpression,
|
|
2221
|
-
BinaryExpression,
|
|
2222
|
-
UnaryExpression,
|
|
2223
|
-
UpdateExpression,
|
|
2224
|
-
LogicalExpression,
|
|
2225
|
-
ConditionalExpression,
|
|
2226
|
-
AssignmentExpression,
|
|
2227
|
-
SequenceExpression,
|
|
2228
|
-
AwaitExpression,
|
|
2229
|
-
YieldExpression,
|
|
2230
|
-
ThisExpression,
|
|
2231
|
-
Super,
|
|
2232
|
-
RestElement,
|
|
2233
|
-
AssignmentPattern,
|
|
2234
|
-
ArrayPattern,
|
|
2235
|
-
ObjectPattern,
|
|
2236
|
-
ExpressionStatement,
|
|
2237
|
-
EmptyStatement,
|
|
2238
|
-
DebuggerStatement,
|
|
2239
|
-
LabeledStatement,
|
|
2240
|
-
WithStatement,
|
|
2241
|
-
FSReadFile,
|
|
2242
|
-
FSReadFileSync,
|
|
2243
|
-
FSWriteFile,
|
|
2244
|
-
FSWriteFileSync,
|
|
2245
|
-
FSReadDir,
|
|
2246
|
-
FSMkdir,
|
|
2247
|
-
FSUnlink,
|
|
2248
|
-
FSRmdir,
|
|
2249
|
-
FSRm,
|
|
2250
|
-
FSRename,
|
|
2251
|
-
FSCopyFile,
|
|
2252
|
-
FSStat,
|
|
2253
|
-
FSExists,
|
|
2254
|
-
FSAccess,
|
|
2255
|
-
FSAppendFile,
|
|
2256
|
-
FSCreateReadStream,
|
|
2257
|
-
FSCreateWriteStream,
|
|
2258
|
-
FSWatch,
|
|
2259
|
-
FSWatchFile,
|
|
2260
|
-
PathJoin,
|
|
2261
|
-
PathResolve,
|
|
2262
|
-
PathNormalize,
|
|
2263
|
-
PathDirname,
|
|
2264
|
-
PathBasename,
|
|
2265
|
-
PathExtname,
|
|
2266
|
-
PathParse,
|
|
2267
|
-
PathFormat,
|
|
2268
|
-
PathIsAbsolute,
|
|
2269
|
-
PathRelative,
|
|
2270
|
-
HttpCreateServer,
|
|
2271
|
-
HttpsCreateServer,
|
|
2272
|
-
ServerListen,
|
|
2273
|
-
ServerClose,
|
|
2274
|
-
HttpRequest,
|
|
2275
|
-
HttpGet,
|
|
2276
|
-
ResponseSetHeader,
|
|
2277
|
-
ResponseGetHeader,
|
|
2278
|
-
ResponseRemoveHeader,
|
|
2279
|
-
ResponseWriteHead,
|
|
2280
|
-
ResponseWrite,
|
|
2281
|
-
ResponseEnd,
|
|
2282
|
-
ProcessEnv,
|
|
2283
|
-
ProcessArgv,
|
|
2284
|
-
ProcessCwd,
|
|
2285
|
-
ProcessChdir,
|
|
2286
|
-
ProcessExit,
|
|
2287
|
-
ProcessKill,
|
|
2288
|
-
ProcessNextTick,
|
|
2289
|
-
ProcessMemoryUsage,
|
|
2290
|
-
ProcessCpuUsage,
|
|
2291
|
-
ProcessUptime,
|
|
2292
|
-
ProcessHrtime,
|
|
2293
|
-
ProcessOn,
|
|
2294
|
-
EventEmitterClass,
|
|
2295
|
-
EventEmit,
|
|
2296
|
-
EventOn,
|
|
2297
|
-
EventOnce,
|
|
2298
|
-
EventRemoveListener,
|
|
2299
|
-
EventRemoveAllListeners,
|
|
2300
|
-
EventListeners,
|
|
2301
|
-
EventListenerCount,
|
|
2302
|
-
EventSetMaxListeners,
|
|
2303
|
-
StreamReadable,
|
|
2304
|
-
StreamWritable,
|
|
2305
|
-
StreamDuplex,
|
|
2306
|
-
StreamTransform,
|
|
2307
|
-
StreamPassThrough,
|
|
2308
|
-
StreamPipe,
|
|
2309
|
-
StreamUnpipe,
|
|
2310
|
-
StreamRead,
|
|
2311
|
-
StreamWrite,
|
|
2312
|
-
StreamEnd,
|
|
2313
|
-
StreamDestroy,
|
|
2314
|
-
StreamPause,
|
|
2315
|
-
StreamResume,
|
|
2316
|
-
StreamSetEncoding,
|
|
2317
|
-
BufferAlloc,
|
|
2318
|
-
BufferAllocUnsafe,
|
|
2319
|
-
BufferFrom,
|
|
2320
|
-
BufferConcat,
|
|
2321
|
-
BufferCompare,
|
|
2322
|
-
BufferIsBuffer,
|
|
2323
|
-
BufferByteLength,
|
|
2324
|
-
BufferToString,
|
|
2325
|
-
BufferToJSON,
|
|
2326
|
-
BufferCopy,
|
|
2327
|
-
BufferSlice,
|
|
2328
|
-
BufferFill,
|
|
2329
|
-
BufferIncludes,
|
|
2330
|
-
BufferIndexOf,
|
|
2331
|
-
OsType,
|
|
2332
|
-
OsPlatform,
|
|
2333
|
-
OsArch,
|
|
2334
|
-
OsVersion,
|
|
2335
|
-
OsRelease,
|
|
2336
|
-
OsHostname,
|
|
2337
|
-
OsTotalmem,
|
|
2338
|
-
OsFreemem,
|
|
2339
|
-
OsCpus,
|
|
2340
|
-
OsLoadavg,
|
|
2341
|
-
OsUserInfo,
|
|
2342
|
-
OsHomedir,
|
|
2343
|
-
OsTmpdir,
|
|
2344
|
-
OsNetworkInterfaces,
|
|
2345
|
-
OsUptime,
|
|
2346
|
-
CryptoCreateHash,
|
|
2347
|
-
CryptoCreateHmac,
|
|
2348
|
-
HashUpdate,
|
|
2349
|
-
HashDigest,
|
|
2350
|
-
CryptoCreateCipheriv,
|
|
2351
|
-
CryptoCreateDecipheriv,
|
|
2352
|
-
CryptoRandomBytes,
|
|
2353
|
-
CryptoRandomFill,
|
|
2354
|
-
CryptoRandomUUID,
|
|
2355
|
-
CryptoRandomInt,
|
|
2356
|
-
CryptoPbkdf2,
|
|
2357
|
-
CryptoPbkdf2Sync,
|
|
2358
|
-
CryptoScrypt,
|
|
2359
|
-
CryptoScryptSync,
|
|
2360
|
-
CryptoCreateSign,
|
|
2361
|
-
CryptoCreateVerify,
|
|
2362
|
-
CryptoSign,
|
|
2363
|
-
CryptoVerify,
|
|
2364
|
-
CryptoGetHashes,
|
|
2365
|
-
CryptoGetCiphers,
|
|
2366
|
-
CryptoGetCurves,
|
|
2367
|
-
URLClass,
|
|
2368
|
-
URLParse,
|
|
2369
|
-
URLFormat,
|
|
2370
|
-
URLResolve,
|
|
2371
|
-
URLSearchParamsClass,
|
|
2372
|
-
URLSearchParamsGet,
|
|
2373
|
-
URLSearchParamsGetAll,
|
|
2374
|
-
URLSearchParamsAppend,
|
|
2375
|
-
URLSearchParamsSet,
|
|
2376
|
-
URLSearchParamsDelete,
|
|
2377
|
-
URLSearchParamsHas,
|
|
2378
|
-
URLSearchParamsSort,
|
|
2379
|
-
ChildProcessSpawn,
|
|
2380
|
-
ChildProcessExec,
|
|
2381
|
-
ChildProcessExecFile,
|
|
2382
|
-
ChildProcessFork,
|
|
2383
|
-
ChildProcessSpawnSync,
|
|
2384
|
-
ChildProcessExecSync,
|
|
2385
|
-
ChildProcessExecFileSync,
|
|
2386
|
-
ChildKill,
|
|
2387
|
-
ChildSend,
|
|
2388
|
-
ChildDisconnect,
|
|
2389
|
-
UtilPromisify,
|
|
2390
|
-
UtilCallbackify,
|
|
2391
|
-
UtilFormat,
|
|
2392
|
-
UtilInspect,
|
|
2393
|
-
UtilDeprecate,
|
|
2394
|
-
DnsLookup,
|
|
2395
|
-
DnsResolve,
|
|
2396
|
-
DnsResolve4,
|
|
2397
|
-
DnsResolve6,
|
|
2398
|
-
DnsResolveMx,
|
|
2399
|
-
DnsResolveTxt,
|
|
2400
|
-
DnsResolveNs,
|
|
2401
|
-
DnsResolveCname,
|
|
2402
|
-
DnsReverse,
|
|
2403
|
-
SetTimeout,
|
|
2404
|
-
ClearTimeout,
|
|
2405
|
-
SetInterval,
|
|
2406
|
-
ClearInterval,
|
|
2407
|
-
SetImmediate,
|
|
2408
|
-
ClearImmediate,
|
|
2409
|
-
ConsoleLog,
|
|
2410
|
-
ConsoleError,
|
|
2411
|
-
ConsoleWarn,
|
|
2412
|
-
ConsoleInfo,
|
|
2413
|
-
ConsoleDebug,
|
|
2414
|
-
ConsoleTable,
|
|
2415
|
-
ConsoleTime,
|
|
2416
|
-
ConsoleTimeEnd,
|
|
2417
|
-
ConsoleTimeLog,
|
|
2418
|
-
ConsoleTrace,
|
|
2419
|
-
ConsoleClear,
|
|
2420
|
-
ConsoleCount,
|
|
2421
|
-
ConsoleCountReset,
|
|
2422
|
-
ConsoleGroup,
|
|
2423
|
-
ConsoleGroupEnd,
|
|
2424
|
-
ConsoleGroupCollapsed,
|
|
2425
|
-
ConsoleAssert,
|
|
2426
|
-
ConsoleDir,
|
|
2427
|
-
GlobalVariable,
|
|
2428
|
-
Dirname,
|
|
2429
|
-
Filename,
|
|
2430
|
-
PromiseExpression,
|
|
2431
|
-
PromiseResolve,
|
|
2432
|
-
PromiseReject,
|
|
2433
|
-
PromiseAll,
|
|
2434
|
-
PromiseAllSettled,
|
|
2435
|
-
PromiseRace,
|
|
2436
|
-
PromiseAny,
|
|
2437
|
-
PromiseThen,
|
|
2438
|
-
PromiseCatch,
|
|
2439
|
-
PromiseFinally
|
|
2440
|
-
}
|