@tinacms/app 0.0.28 → 1.0.1
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/appFiles/node_modules/.package-lock.json +23 -23
- package/appFiles/node_modules/@babel/generator/lib/generators/base.js.map +1 -1
- package/appFiles/node_modules/@babel/generator/lib/generators/classes.js +1 -1
- package/appFiles/node_modules/@babel/generator/lib/generators/classes.js.map +1 -1
- package/appFiles/node_modules/@babel/generator/lib/generators/expressions.js +9 -15
- package/appFiles/node_modules/@babel/generator/lib/generators/expressions.js.map +1 -1
- package/appFiles/node_modules/@babel/generator/lib/generators/methods.js +12 -25
- package/appFiles/node_modules/@babel/generator/lib/generators/methods.js.map +1 -1
- package/appFiles/node_modules/@babel/generator/lib/generators/modules.js +6 -14
- package/appFiles/node_modules/@babel/generator/lib/generators/modules.js.map +1 -1
- package/appFiles/node_modules/@babel/generator/lib/generators/statements.js +1 -16
- package/appFiles/node_modules/@babel/generator/lib/generators/statements.js.map +1 -1
- package/appFiles/node_modules/@babel/generator/lib/index.js +11 -0
- package/appFiles/node_modules/@babel/generator/lib/index.js.map +1 -1
- package/appFiles/node_modules/@babel/generator/lib/printer.js +112 -86
- package/appFiles/node_modules/@babel/generator/lib/printer.js.map +1 -1
- package/appFiles/node_modules/@babel/generator/package.json +3 -3
- package/appFiles/node_modules/@babel/parser/lib/index.js +165 -99
- package/appFiles/node_modules/@babel/parser/lib/index.js.map +1 -1
- package/appFiles/node_modules/@babel/parser/package.json +2 -2
- package/appFiles/node_modules/@babel/parser/typings/babel-parser.d.ts +92 -80
- package/appFiles/node_modules/@babel/runtime/helpers/checkInRHS.js +6 -0
- package/appFiles/node_modules/@babel/runtime/helpers/createClass.js +2 -1
- package/appFiles/node_modules/@babel/runtime/helpers/defineProperty.js +2 -0
- package/appFiles/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +5 -0
- package/appFiles/node_modules/@babel/runtime/helpers/esm/createClass.js +2 -1
- package/appFiles/node_modules/@babel/runtime/helpers/esm/defineProperty.js +2 -0
- package/appFiles/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +23 -18
- package/appFiles/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +8 -7
- package/appFiles/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +3 -8
- package/appFiles/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +23 -18
- package/appFiles/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +8 -7
- package/appFiles/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +3 -8
- package/appFiles/node_modules/@babel/runtime/package.json +29 -20
- package/appFiles/node_modules/@babel/traverse/lib/path/context.js +3 -2
- package/appFiles/node_modules/@babel/traverse/lib/path/context.js.map +1 -1
- package/appFiles/node_modules/@babel/traverse/lib/path/conversion.js +8 -4
- package/appFiles/node_modules/@babel/traverse/lib/path/conversion.js.map +1 -1
- package/appFiles/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js +1 -0
- package/appFiles/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js.map +1 -1
- package/appFiles/node_modules/@babel/traverse/lib/scope/index.js +1 -1
- package/appFiles/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
- package/appFiles/node_modules/@babel/traverse/package.json +4 -4
- package/appFiles/node_modules/@babel/types/lib/asserts/assertNode.js +0 -3
- package/appFiles/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/asserts/generated/index.js +0 -303
- package/appFiles/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +0 -4
- package/appFiles/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +0 -11
- package/appFiles/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/builders/generated/index.js +0 -253
- package/appFiles/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/builders/generated/uppercase.js +0 -1
- package/appFiles/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/builders/react/buildChildren.js +0 -7
- package/appFiles/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +0 -5
- package/appFiles/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/builders/validateNode.js +0 -5
- package/appFiles/node_modules/@babel/types/lib/builders/validateNode.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/clone/clone.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/clone/clone.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/clone/cloneDeep.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/clone/cloneDeep.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/clone/cloneNode.js +4 -22
- package/appFiles/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/comments/addComment.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/comments/addComment.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/comments/addComments.js +0 -3
- package/appFiles/node_modules/@babel/types/lib/comments/addComments.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/comments/inheritInnerComments.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/comments/inheritsComments.js +0 -4
- package/appFiles/node_modules/@babel/types/lib/comments/inheritsComments.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/comments/removeComments.js +0 -3
- package/appFiles/node_modules/@babel/types/lib/comments/removeComments.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/constants/generated/index.js +0 -1
- package/appFiles/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/constants/index.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/converters/ensureBlock.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/converters/ensureBlock.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +2 -12
- package/appFiles/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/converters/toBlock.js +0 -7
- package/appFiles/node_modules/@babel/types/lib/converters/toBlock.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/converters/toComputedKey.js +2 -4
- package/appFiles/node_modules/@babel/types/lib/converters/toComputedKey.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/converters/toExpression.js +0 -4
- package/appFiles/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/converters/toIdentifier.js +2 -6
- package/appFiles/node_modules/@babel/types/lib/converters/toIdentifier.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/converters/toKeyAlias.js +0 -7
- package/appFiles/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/converters/toSequenceExpression.js +0 -3
- package/appFiles/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/converters/toStatement.js +1 -7
- package/appFiles/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/converters/valueToNode.js +2 -18
- package/appFiles/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/definitions/core.js +33 -61
- package/appFiles/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/definitions/experimental.js +3 -1
- package/appFiles/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/definitions/flow.js +1 -3
- package/appFiles/node_modules/@babel/types/lib/definitions/flow.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/definitions/index.js +0 -18
- package/appFiles/node_modules/@babel/types/lib/definitions/index.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/definitions/jsx.js +0 -1
- package/appFiles/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/definitions/misc.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/definitions/misc.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/definitions/placeholders.js +0 -5
- package/appFiles/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/definitions/typescript.js +4 -15
- package/appFiles/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/definitions/utils.js +1 -65
- package/appFiles/node_modules/@babel/types/lib/definitions/utils.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/index.d.ts +64 -65
- package/appFiles/node_modules/@babel/types/lib/index.js +1 -75
- package/appFiles/node_modules/@babel/types/lib/index.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +3 -12
- package/appFiles/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/modifications/inherits.js +0 -4
- package/appFiles/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +0 -4
- package/appFiles/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/modifications/removeProperties.js +3 -8
- package/appFiles/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +0 -3
- package/appFiles/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +1 -10
- package/appFiles/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +4 -14
- package/appFiles/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +0 -3
- package/appFiles/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/traverse/traverse.js +0 -7
- package/appFiles/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/traverse/traverseFast.js +2 -5
- package/appFiles/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/utils/inherit.js +0 -1
- package/appFiles/node_modules/@babel/types/lib/utils/inherit.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +1 -8
- package/appFiles/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/utils/shallowEqual.js +2 -4
- package/appFiles/node_modules/@babel/types/lib/utils/shallowEqual.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/generated/index.js +0 -906
- package/appFiles/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/is.js +0 -8
- package/appFiles/node_modules/@babel/types/lib/validators/is.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isBinding.js +4 -8
- package/appFiles/node_modules/@babel/types/lib/validators/isBinding.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isBlockScoped.js +0 -3
- package/appFiles/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isImmutable.js +0 -5
- package/appFiles/node_modules/@babel/types/lib/validators/isImmutable.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isLet.js +2 -4
- package/appFiles/node_modules/@babel/types/lib/validators/isLet.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isNode.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/validators/isNode.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +2 -16
- package/appFiles/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isPlaceholderType.js +0 -4
- package/appFiles/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isReferenced.js +0 -13
- package/appFiles/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isScope.js +0 -3
- package/appFiles/node_modules/@babel/types/lib/validators/isScope.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +2 -3
- package/appFiles/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isType.js +1 -5
- package/appFiles/node_modules/@babel/types/lib/validators/isType.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isValidIdentifier.js +0 -4
- package/appFiles/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/isVar.js +2 -4
- package/appFiles/node_modules/@babel/types/lib/validators/isVar.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/matchesPattern.js +0 -8
- package/appFiles/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/react/isCompatTag.js +0 -1
- package/appFiles/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/react/isReactComponent.js +0 -2
- package/appFiles/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -1
- package/appFiles/node_modules/@babel/types/lib/validators/validate.js +0 -4
- package/appFiles/node_modules/@babel/types/lib/validators/validate.js.map +1 -1
- package/appFiles/node_modules/@babel/types/package.json +3 -3
- package/appFiles/node_modules/regenerator-runtime/package.json +2 -2
- package/appFiles/node_modules/regenerator-runtime/runtime.js +18 -17
- package/appFiles/src/App.tsx +0 -12
- package/appFiles/src/fields/rich-text/monaco/mdx.js +0 -46
- package/appFiles/src/lib/machines/query-machine.ts +130 -2
- package/appFiles/src/preview.tsx +9 -15
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/appFiles/node_modules/@babel/types/lib/index.d.ts.map +0 -1
|
@@ -256,7 +256,6 @@ exports.voidTypeAnnotation = voidTypeAnnotation;
|
|
|
256
256
|
exports.whileStatement = whileStatement;
|
|
257
257
|
exports.withStatement = withStatement;
|
|
258
258
|
exports.yieldExpression = yieldExpression;
|
|
259
|
-
|
|
260
259
|
var _validateNode = require("../validateNode");
|
|
261
260
|
|
|
262
261
|
function arrayExpression(elements = []) {
|
|
@@ -265,7 +264,6 @@ function arrayExpression(elements = []) {
|
|
|
265
264
|
elements
|
|
266
265
|
});
|
|
267
266
|
}
|
|
268
|
-
|
|
269
267
|
function assignmentExpression(operator, left, right) {
|
|
270
268
|
return (0, _validateNode.default)({
|
|
271
269
|
type: "AssignmentExpression",
|
|
@@ -274,7 +272,6 @@ function assignmentExpression(operator, left, right) {
|
|
|
274
272
|
right
|
|
275
273
|
});
|
|
276
274
|
}
|
|
277
|
-
|
|
278
275
|
function binaryExpression(operator, left, right) {
|
|
279
276
|
return (0, _validateNode.default)({
|
|
280
277
|
type: "BinaryExpression",
|
|
@@ -283,28 +280,24 @@ function binaryExpression(operator, left, right) {
|
|
|
283
280
|
right
|
|
284
281
|
});
|
|
285
282
|
}
|
|
286
|
-
|
|
287
283
|
function interpreterDirective(value) {
|
|
288
284
|
return (0, _validateNode.default)({
|
|
289
285
|
type: "InterpreterDirective",
|
|
290
286
|
value
|
|
291
287
|
});
|
|
292
288
|
}
|
|
293
|
-
|
|
294
289
|
function directive(value) {
|
|
295
290
|
return (0, _validateNode.default)({
|
|
296
291
|
type: "Directive",
|
|
297
292
|
value
|
|
298
293
|
});
|
|
299
294
|
}
|
|
300
|
-
|
|
301
295
|
function directiveLiteral(value) {
|
|
302
296
|
return (0, _validateNode.default)({
|
|
303
297
|
type: "DirectiveLiteral",
|
|
304
298
|
value
|
|
305
299
|
});
|
|
306
300
|
}
|
|
307
|
-
|
|
308
301
|
function blockStatement(body, directives = []) {
|
|
309
302
|
return (0, _validateNode.default)({
|
|
310
303
|
type: "BlockStatement",
|
|
@@ -312,14 +305,12 @@ function blockStatement(body, directives = []) {
|
|
|
312
305
|
directives
|
|
313
306
|
});
|
|
314
307
|
}
|
|
315
|
-
|
|
316
308
|
function breakStatement(label = null) {
|
|
317
309
|
return (0, _validateNode.default)({
|
|
318
310
|
type: "BreakStatement",
|
|
319
311
|
label
|
|
320
312
|
});
|
|
321
313
|
}
|
|
322
|
-
|
|
323
314
|
function callExpression(callee, _arguments) {
|
|
324
315
|
return (0, _validateNode.default)({
|
|
325
316
|
type: "CallExpression",
|
|
@@ -327,7 +318,6 @@ function callExpression(callee, _arguments) {
|
|
|
327
318
|
arguments: _arguments
|
|
328
319
|
});
|
|
329
320
|
}
|
|
330
|
-
|
|
331
321
|
function catchClause(param = null, body) {
|
|
332
322
|
return (0, _validateNode.default)({
|
|
333
323
|
type: "CatchClause",
|
|
@@ -335,7 +325,6 @@ function catchClause(param = null, body) {
|
|
|
335
325
|
body
|
|
336
326
|
});
|
|
337
327
|
}
|
|
338
|
-
|
|
339
328
|
function conditionalExpression(test, consequent, alternate) {
|
|
340
329
|
return (0, _validateNode.default)({
|
|
341
330
|
type: "ConditionalExpression",
|
|
@@ -344,20 +333,17 @@ function conditionalExpression(test, consequent, alternate) {
|
|
|
344
333
|
alternate
|
|
345
334
|
});
|
|
346
335
|
}
|
|
347
|
-
|
|
348
336
|
function continueStatement(label = null) {
|
|
349
337
|
return (0, _validateNode.default)({
|
|
350
338
|
type: "ContinueStatement",
|
|
351
339
|
label
|
|
352
340
|
});
|
|
353
341
|
}
|
|
354
|
-
|
|
355
342
|
function debuggerStatement() {
|
|
356
343
|
return {
|
|
357
344
|
type: "DebuggerStatement"
|
|
358
345
|
};
|
|
359
346
|
}
|
|
360
|
-
|
|
361
347
|
function doWhileStatement(test, body) {
|
|
362
348
|
return (0, _validateNode.default)({
|
|
363
349
|
type: "DoWhileStatement",
|
|
@@ -365,20 +351,17 @@ function doWhileStatement(test, body) {
|
|
|
365
351
|
body
|
|
366
352
|
});
|
|
367
353
|
}
|
|
368
|
-
|
|
369
354
|
function emptyStatement() {
|
|
370
355
|
return {
|
|
371
356
|
type: "EmptyStatement"
|
|
372
357
|
};
|
|
373
358
|
}
|
|
374
|
-
|
|
375
359
|
function expressionStatement(expression) {
|
|
376
360
|
return (0, _validateNode.default)({
|
|
377
361
|
type: "ExpressionStatement",
|
|
378
362
|
expression
|
|
379
363
|
});
|
|
380
364
|
}
|
|
381
|
-
|
|
382
365
|
function file(program, comments = null, tokens = null) {
|
|
383
366
|
return (0, _validateNode.default)({
|
|
384
367
|
type: "File",
|
|
@@ -387,7 +370,6 @@ function file(program, comments = null, tokens = null) {
|
|
|
387
370
|
tokens
|
|
388
371
|
});
|
|
389
372
|
}
|
|
390
|
-
|
|
391
373
|
function forInStatement(left, right, body) {
|
|
392
374
|
return (0, _validateNode.default)({
|
|
393
375
|
type: "ForInStatement",
|
|
@@ -396,7 +378,6 @@ function forInStatement(left, right, body) {
|
|
|
396
378
|
body
|
|
397
379
|
});
|
|
398
380
|
}
|
|
399
|
-
|
|
400
381
|
function forStatement(init = null, test = null, update = null, body) {
|
|
401
382
|
return (0, _validateNode.default)({
|
|
402
383
|
type: "ForStatement",
|
|
@@ -406,7 +387,6 @@ function forStatement(init = null, test = null, update = null, body) {
|
|
|
406
387
|
body
|
|
407
388
|
});
|
|
408
389
|
}
|
|
409
|
-
|
|
410
390
|
function functionDeclaration(id = null, params, body, generator = false, async = false) {
|
|
411
391
|
return (0, _validateNode.default)({
|
|
412
392
|
type: "FunctionDeclaration",
|
|
@@ -417,7 +397,6 @@ function functionDeclaration(id = null, params, body, generator = false, async =
|
|
|
417
397
|
async
|
|
418
398
|
});
|
|
419
399
|
}
|
|
420
|
-
|
|
421
400
|
function functionExpression(id = null, params, body, generator = false, async = false) {
|
|
422
401
|
return (0, _validateNode.default)({
|
|
423
402
|
type: "FunctionExpression",
|
|
@@ -428,14 +407,12 @@ function functionExpression(id = null, params, body, generator = false, async =
|
|
|
428
407
|
async
|
|
429
408
|
});
|
|
430
409
|
}
|
|
431
|
-
|
|
432
410
|
function identifier(name) {
|
|
433
411
|
return (0, _validateNode.default)({
|
|
434
412
|
type: "Identifier",
|
|
435
413
|
name
|
|
436
414
|
});
|
|
437
415
|
}
|
|
438
|
-
|
|
439
416
|
function ifStatement(test, consequent, alternate = null) {
|
|
440
417
|
return (0, _validateNode.default)({
|
|
441
418
|
type: "IfStatement",
|
|
@@ -444,7 +421,6 @@ function ifStatement(test, consequent, alternate = null) {
|
|
|
444
421
|
alternate
|
|
445
422
|
});
|
|
446
423
|
}
|
|
447
|
-
|
|
448
424
|
function labeledStatement(label, body) {
|
|
449
425
|
return (0, _validateNode.default)({
|
|
450
426
|
type: "LabeledStatement",
|
|
@@ -452,34 +428,29 @@ function labeledStatement(label, body) {
|
|
|
452
428
|
body
|
|
453
429
|
});
|
|
454
430
|
}
|
|
455
|
-
|
|
456
431
|
function stringLiteral(value) {
|
|
457
432
|
return (0, _validateNode.default)({
|
|
458
433
|
type: "StringLiteral",
|
|
459
434
|
value
|
|
460
435
|
});
|
|
461
436
|
}
|
|
462
|
-
|
|
463
437
|
function numericLiteral(value) {
|
|
464
438
|
return (0, _validateNode.default)({
|
|
465
439
|
type: "NumericLiteral",
|
|
466
440
|
value
|
|
467
441
|
});
|
|
468
442
|
}
|
|
469
|
-
|
|
470
443
|
function nullLiteral() {
|
|
471
444
|
return {
|
|
472
445
|
type: "NullLiteral"
|
|
473
446
|
};
|
|
474
447
|
}
|
|
475
|
-
|
|
476
448
|
function booleanLiteral(value) {
|
|
477
449
|
return (0, _validateNode.default)({
|
|
478
450
|
type: "BooleanLiteral",
|
|
479
451
|
value
|
|
480
452
|
});
|
|
481
453
|
}
|
|
482
|
-
|
|
483
454
|
function regExpLiteral(pattern, flags = "") {
|
|
484
455
|
return (0, _validateNode.default)({
|
|
485
456
|
type: "RegExpLiteral",
|
|
@@ -487,7 +458,6 @@ function regExpLiteral(pattern, flags = "") {
|
|
|
487
458
|
flags
|
|
488
459
|
});
|
|
489
460
|
}
|
|
490
|
-
|
|
491
461
|
function logicalExpression(operator, left, right) {
|
|
492
462
|
return (0, _validateNode.default)({
|
|
493
463
|
type: "LogicalExpression",
|
|
@@ -496,7 +466,6 @@ function logicalExpression(operator, left, right) {
|
|
|
496
466
|
right
|
|
497
467
|
});
|
|
498
468
|
}
|
|
499
|
-
|
|
500
469
|
function memberExpression(object, property, computed = false, optional = null) {
|
|
501
470
|
return (0, _validateNode.default)({
|
|
502
471
|
type: "MemberExpression",
|
|
@@ -506,7 +475,6 @@ function memberExpression(object, property, computed = false, optional = null) {
|
|
|
506
475
|
optional
|
|
507
476
|
});
|
|
508
477
|
}
|
|
509
|
-
|
|
510
478
|
function newExpression(callee, _arguments) {
|
|
511
479
|
return (0, _validateNode.default)({
|
|
512
480
|
type: "NewExpression",
|
|
@@ -514,7 +482,6 @@ function newExpression(callee, _arguments) {
|
|
|
514
482
|
arguments: _arguments
|
|
515
483
|
});
|
|
516
484
|
}
|
|
517
|
-
|
|
518
485
|
function program(body, directives = [], sourceType = "script", interpreter = null) {
|
|
519
486
|
return (0, _validateNode.default)({
|
|
520
487
|
type: "Program",
|
|
@@ -525,14 +492,12 @@ function program(body, directives = [], sourceType = "script", interpreter = nul
|
|
|
525
492
|
sourceFile: null
|
|
526
493
|
});
|
|
527
494
|
}
|
|
528
|
-
|
|
529
495
|
function objectExpression(properties) {
|
|
530
496
|
return (0, _validateNode.default)({
|
|
531
497
|
type: "ObjectExpression",
|
|
532
498
|
properties
|
|
533
499
|
});
|
|
534
500
|
}
|
|
535
|
-
|
|
536
501
|
function objectMethod(kind = "method", key, params, body, computed = false, generator = false, async = false) {
|
|
537
502
|
return (0, _validateNode.default)({
|
|
538
503
|
type: "ObjectMethod",
|
|
@@ -545,7 +510,6 @@ function objectMethod(kind = "method", key, params, body, computed = false, gene
|
|
|
545
510
|
async
|
|
546
511
|
});
|
|
547
512
|
}
|
|
548
|
-
|
|
549
513
|
function objectProperty(key, value, computed = false, shorthand = false, decorators = null) {
|
|
550
514
|
return (0, _validateNode.default)({
|
|
551
515
|
type: "ObjectProperty",
|
|
@@ -556,35 +520,30 @@ function objectProperty(key, value, computed = false, shorthand = false, decorat
|
|
|
556
520
|
decorators
|
|
557
521
|
});
|
|
558
522
|
}
|
|
559
|
-
|
|
560
523
|
function restElement(argument) {
|
|
561
524
|
return (0, _validateNode.default)({
|
|
562
525
|
type: "RestElement",
|
|
563
526
|
argument
|
|
564
527
|
});
|
|
565
528
|
}
|
|
566
|
-
|
|
567
529
|
function returnStatement(argument = null) {
|
|
568
530
|
return (0, _validateNode.default)({
|
|
569
531
|
type: "ReturnStatement",
|
|
570
532
|
argument
|
|
571
533
|
});
|
|
572
534
|
}
|
|
573
|
-
|
|
574
535
|
function sequenceExpression(expressions) {
|
|
575
536
|
return (0, _validateNode.default)({
|
|
576
537
|
type: "SequenceExpression",
|
|
577
538
|
expressions
|
|
578
539
|
});
|
|
579
540
|
}
|
|
580
|
-
|
|
581
541
|
function parenthesizedExpression(expression) {
|
|
582
542
|
return (0, _validateNode.default)({
|
|
583
543
|
type: "ParenthesizedExpression",
|
|
584
544
|
expression
|
|
585
545
|
});
|
|
586
546
|
}
|
|
587
|
-
|
|
588
547
|
function switchCase(test = null, consequent) {
|
|
589
548
|
return (0, _validateNode.default)({
|
|
590
549
|
type: "SwitchCase",
|
|
@@ -592,7 +551,6 @@ function switchCase(test = null, consequent) {
|
|
|
592
551
|
consequent
|
|
593
552
|
});
|
|
594
553
|
}
|
|
595
|
-
|
|
596
554
|
function switchStatement(discriminant, cases) {
|
|
597
555
|
return (0, _validateNode.default)({
|
|
598
556
|
type: "SwitchStatement",
|
|
@@ -600,20 +558,17 @@ function switchStatement(discriminant, cases) {
|
|
|
600
558
|
cases
|
|
601
559
|
});
|
|
602
560
|
}
|
|
603
|
-
|
|
604
561
|
function thisExpression() {
|
|
605
562
|
return {
|
|
606
563
|
type: "ThisExpression"
|
|
607
564
|
};
|
|
608
565
|
}
|
|
609
|
-
|
|
610
566
|
function throwStatement(argument) {
|
|
611
567
|
return (0, _validateNode.default)({
|
|
612
568
|
type: "ThrowStatement",
|
|
613
569
|
argument
|
|
614
570
|
});
|
|
615
571
|
}
|
|
616
|
-
|
|
617
572
|
function tryStatement(block, handler = null, finalizer = null) {
|
|
618
573
|
return (0, _validateNode.default)({
|
|
619
574
|
type: "TryStatement",
|
|
@@ -622,7 +577,6 @@ function tryStatement(block, handler = null, finalizer = null) {
|
|
|
622
577
|
finalizer
|
|
623
578
|
});
|
|
624
579
|
}
|
|
625
|
-
|
|
626
580
|
function unaryExpression(operator, argument, prefix = true) {
|
|
627
581
|
return (0, _validateNode.default)({
|
|
628
582
|
type: "UnaryExpression",
|
|
@@ -631,7 +585,6 @@ function unaryExpression(operator, argument, prefix = true) {
|
|
|
631
585
|
prefix
|
|
632
586
|
});
|
|
633
587
|
}
|
|
634
|
-
|
|
635
588
|
function updateExpression(operator, argument, prefix = false) {
|
|
636
589
|
return (0, _validateNode.default)({
|
|
637
590
|
type: "UpdateExpression",
|
|
@@ -640,7 +593,6 @@ function updateExpression(operator, argument, prefix = false) {
|
|
|
640
593
|
prefix
|
|
641
594
|
});
|
|
642
595
|
}
|
|
643
|
-
|
|
644
596
|
function variableDeclaration(kind, declarations) {
|
|
645
597
|
return (0, _validateNode.default)({
|
|
646
598
|
type: "VariableDeclaration",
|
|
@@ -648,7 +600,6 @@ function variableDeclaration(kind, declarations) {
|
|
|
648
600
|
declarations
|
|
649
601
|
});
|
|
650
602
|
}
|
|
651
|
-
|
|
652
603
|
function variableDeclarator(id, init = null) {
|
|
653
604
|
return (0, _validateNode.default)({
|
|
654
605
|
type: "VariableDeclarator",
|
|
@@ -656,7 +607,6 @@ function variableDeclarator(id, init = null) {
|
|
|
656
607
|
init
|
|
657
608
|
});
|
|
658
609
|
}
|
|
659
|
-
|
|
660
610
|
function whileStatement(test, body) {
|
|
661
611
|
return (0, _validateNode.default)({
|
|
662
612
|
type: "WhileStatement",
|
|
@@ -664,7 +614,6 @@ function whileStatement(test, body) {
|
|
|
664
614
|
body
|
|
665
615
|
});
|
|
666
616
|
}
|
|
667
|
-
|
|
668
617
|
function withStatement(object, body) {
|
|
669
618
|
return (0, _validateNode.default)({
|
|
670
619
|
type: "WithStatement",
|
|
@@ -672,7 +621,6 @@ function withStatement(object, body) {
|
|
|
672
621
|
body
|
|
673
622
|
});
|
|
674
623
|
}
|
|
675
|
-
|
|
676
624
|
function assignmentPattern(left, right) {
|
|
677
625
|
return (0, _validateNode.default)({
|
|
678
626
|
type: "AssignmentPattern",
|
|
@@ -680,14 +628,12 @@ function assignmentPattern(left, right) {
|
|
|
680
628
|
right
|
|
681
629
|
});
|
|
682
630
|
}
|
|
683
|
-
|
|
684
631
|
function arrayPattern(elements) {
|
|
685
632
|
return (0, _validateNode.default)({
|
|
686
633
|
type: "ArrayPattern",
|
|
687
634
|
elements
|
|
688
635
|
});
|
|
689
636
|
}
|
|
690
|
-
|
|
691
637
|
function arrowFunctionExpression(params, body, async = false) {
|
|
692
638
|
return (0, _validateNode.default)({
|
|
693
639
|
type: "ArrowFunctionExpression",
|
|
@@ -697,14 +643,12 @@ function arrowFunctionExpression(params, body, async = false) {
|
|
|
697
643
|
expression: null
|
|
698
644
|
});
|
|
699
645
|
}
|
|
700
|
-
|
|
701
646
|
function classBody(body) {
|
|
702
647
|
return (0, _validateNode.default)({
|
|
703
648
|
type: "ClassBody",
|
|
704
649
|
body
|
|
705
650
|
});
|
|
706
651
|
}
|
|
707
|
-
|
|
708
652
|
function classExpression(id = null, superClass = null, body, decorators = null) {
|
|
709
653
|
return (0, _validateNode.default)({
|
|
710
654
|
type: "ClassExpression",
|
|
@@ -714,7 +658,6 @@ function classExpression(id = null, superClass = null, body, decorators = null)
|
|
|
714
658
|
decorators
|
|
715
659
|
});
|
|
716
660
|
}
|
|
717
|
-
|
|
718
661
|
function classDeclaration(id, superClass = null, body, decorators = null) {
|
|
719
662
|
return (0, _validateNode.default)({
|
|
720
663
|
type: "ClassDeclaration",
|
|
@@ -724,21 +667,18 @@ function classDeclaration(id, superClass = null, body, decorators = null) {
|
|
|
724
667
|
decorators
|
|
725
668
|
});
|
|
726
669
|
}
|
|
727
|
-
|
|
728
670
|
function exportAllDeclaration(source) {
|
|
729
671
|
return (0, _validateNode.default)({
|
|
730
672
|
type: "ExportAllDeclaration",
|
|
731
673
|
source
|
|
732
674
|
});
|
|
733
675
|
}
|
|
734
|
-
|
|
735
676
|
function exportDefaultDeclaration(declaration) {
|
|
736
677
|
return (0, _validateNode.default)({
|
|
737
678
|
type: "ExportDefaultDeclaration",
|
|
738
679
|
declaration
|
|
739
680
|
});
|
|
740
681
|
}
|
|
741
|
-
|
|
742
682
|
function exportNamedDeclaration(declaration = null, specifiers = [], source = null) {
|
|
743
683
|
return (0, _validateNode.default)({
|
|
744
684
|
type: "ExportNamedDeclaration",
|
|
@@ -747,7 +687,6 @@ function exportNamedDeclaration(declaration = null, specifiers = [], source = nu
|
|
|
747
687
|
source
|
|
748
688
|
});
|
|
749
689
|
}
|
|
750
|
-
|
|
751
690
|
function exportSpecifier(local, exported) {
|
|
752
691
|
return (0, _validateNode.default)({
|
|
753
692
|
type: "ExportSpecifier",
|
|
@@ -755,7 +694,6 @@ function exportSpecifier(local, exported) {
|
|
|
755
694
|
exported
|
|
756
695
|
});
|
|
757
696
|
}
|
|
758
|
-
|
|
759
697
|
function forOfStatement(left, right, body, _await = false) {
|
|
760
698
|
return (0, _validateNode.default)({
|
|
761
699
|
type: "ForOfStatement",
|
|
@@ -765,7 +703,6 @@ function forOfStatement(left, right, body, _await = false) {
|
|
|
765
703
|
await: _await
|
|
766
704
|
});
|
|
767
705
|
}
|
|
768
|
-
|
|
769
706
|
function importDeclaration(specifiers, source) {
|
|
770
707
|
return (0, _validateNode.default)({
|
|
771
708
|
type: "ImportDeclaration",
|
|
@@ -773,21 +710,18 @@ function importDeclaration(specifiers, source) {
|
|
|
773
710
|
source
|
|
774
711
|
});
|
|
775
712
|
}
|
|
776
|
-
|
|
777
713
|
function importDefaultSpecifier(local) {
|
|
778
714
|
return (0, _validateNode.default)({
|
|
779
715
|
type: "ImportDefaultSpecifier",
|
|
780
716
|
local
|
|
781
717
|
});
|
|
782
718
|
}
|
|
783
|
-
|
|
784
719
|
function importNamespaceSpecifier(local) {
|
|
785
720
|
return (0, _validateNode.default)({
|
|
786
721
|
type: "ImportNamespaceSpecifier",
|
|
787
722
|
local
|
|
788
723
|
});
|
|
789
724
|
}
|
|
790
|
-
|
|
791
725
|
function importSpecifier(local, imported) {
|
|
792
726
|
return (0, _validateNode.default)({
|
|
793
727
|
type: "ImportSpecifier",
|
|
@@ -795,7 +729,6 @@ function importSpecifier(local, imported) {
|
|
|
795
729
|
imported
|
|
796
730
|
});
|
|
797
731
|
}
|
|
798
|
-
|
|
799
732
|
function metaProperty(meta, property) {
|
|
800
733
|
return (0, _validateNode.default)({
|
|
801
734
|
type: "MetaProperty",
|
|
@@ -803,7 +736,6 @@ function metaProperty(meta, property) {
|
|
|
803
736
|
property
|
|
804
737
|
});
|
|
805
738
|
}
|
|
806
|
-
|
|
807
739
|
function classMethod(kind = "method", key, params, body, computed = false, _static = false, generator = false, async = false) {
|
|
808
740
|
return (0, _validateNode.default)({
|
|
809
741
|
type: "ClassMethod",
|
|
@@ -817,27 +749,23 @@ function classMethod(kind = "method", key, params, body, computed = false, _stat
|
|
|
817
749
|
async
|
|
818
750
|
});
|
|
819
751
|
}
|
|
820
|
-
|
|
821
752
|
function objectPattern(properties) {
|
|
822
753
|
return (0, _validateNode.default)({
|
|
823
754
|
type: "ObjectPattern",
|
|
824
755
|
properties
|
|
825
756
|
});
|
|
826
757
|
}
|
|
827
|
-
|
|
828
758
|
function spreadElement(argument) {
|
|
829
759
|
return (0, _validateNode.default)({
|
|
830
760
|
type: "SpreadElement",
|
|
831
761
|
argument
|
|
832
762
|
});
|
|
833
763
|
}
|
|
834
|
-
|
|
835
764
|
function _super() {
|
|
836
765
|
return {
|
|
837
766
|
type: "Super"
|
|
838
767
|
};
|
|
839
768
|
}
|
|
840
|
-
|
|
841
769
|
function taggedTemplateExpression(tag, quasi) {
|
|
842
770
|
return (0, _validateNode.default)({
|
|
843
771
|
type: "TaggedTemplateExpression",
|
|
@@ -845,7 +773,6 @@ function taggedTemplateExpression(tag, quasi) {
|
|
|
845
773
|
quasi
|
|
846
774
|
});
|
|
847
775
|
}
|
|
848
|
-
|
|
849
776
|
function templateElement(value, tail = false) {
|
|
850
777
|
return (0, _validateNode.default)({
|
|
851
778
|
type: "TemplateElement",
|
|
@@ -853,7 +780,6 @@ function templateElement(value, tail = false) {
|
|
|
853
780
|
tail
|
|
854
781
|
});
|
|
855
782
|
}
|
|
856
|
-
|
|
857
783
|
function templateLiteral(quasis, expressions) {
|
|
858
784
|
return (0, _validateNode.default)({
|
|
859
785
|
type: "TemplateLiteral",
|
|
@@ -861,7 +787,6 @@ function templateLiteral(quasis, expressions) {
|
|
|
861
787
|
expressions
|
|
862
788
|
});
|
|
863
789
|
}
|
|
864
|
-
|
|
865
790
|
function yieldExpression(argument = null, delegate = false) {
|
|
866
791
|
return (0, _validateNode.default)({
|
|
867
792
|
type: "YieldExpression",
|
|
@@ -869,34 +794,29 @@ function yieldExpression(argument = null, delegate = false) {
|
|
|
869
794
|
delegate
|
|
870
795
|
});
|
|
871
796
|
}
|
|
872
|
-
|
|
873
797
|
function awaitExpression(argument) {
|
|
874
798
|
return (0, _validateNode.default)({
|
|
875
799
|
type: "AwaitExpression",
|
|
876
800
|
argument
|
|
877
801
|
});
|
|
878
802
|
}
|
|
879
|
-
|
|
880
803
|
function _import() {
|
|
881
804
|
return {
|
|
882
805
|
type: "Import"
|
|
883
806
|
};
|
|
884
807
|
}
|
|
885
|
-
|
|
886
808
|
function bigIntLiteral(value) {
|
|
887
809
|
return (0, _validateNode.default)({
|
|
888
810
|
type: "BigIntLiteral",
|
|
889
811
|
value
|
|
890
812
|
});
|
|
891
813
|
}
|
|
892
|
-
|
|
893
814
|
function exportNamespaceSpecifier(exported) {
|
|
894
815
|
return (0, _validateNode.default)({
|
|
895
816
|
type: "ExportNamespaceSpecifier",
|
|
896
817
|
exported
|
|
897
818
|
});
|
|
898
819
|
}
|
|
899
|
-
|
|
900
820
|
function optionalMemberExpression(object, property, computed = false, optional) {
|
|
901
821
|
return (0, _validateNode.default)({
|
|
902
822
|
type: "OptionalMemberExpression",
|
|
@@ -906,7 +826,6 @@ function optionalMemberExpression(object, property, computed = false, optional)
|
|
|
906
826
|
optional
|
|
907
827
|
});
|
|
908
828
|
}
|
|
909
|
-
|
|
910
829
|
function optionalCallExpression(callee, _arguments, optional) {
|
|
911
830
|
return (0, _validateNode.default)({
|
|
912
831
|
type: "OptionalCallExpression",
|
|
@@ -915,7 +834,6 @@ function optionalCallExpression(callee, _arguments, optional) {
|
|
|
915
834
|
optional
|
|
916
835
|
});
|
|
917
836
|
}
|
|
918
|
-
|
|
919
837
|
function classProperty(key, value = null, typeAnnotation = null, decorators = null, computed = false, _static = false) {
|
|
920
838
|
return (0, _validateNode.default)({
|
|
921
839
|
type: "ClassProperty",
|
|
@@ -927,7 +845,6 @@ function classProperty(key, value = null, typeAnnotation = null, decorators = nu
|
|
|
927
845
|
static: _static
|
|
928
846
|
});
|
|
929
847
|
}
|
|
930
|
-
|
|
931
848
|
function classAccessorProperty(key, value = null, typeAnnotation = null, decorators = null, computed = false, _static = false) {
|
|
932
849
|
return (0, _validateNode.default)({
|
|
933
850
|
type: "ClassAccessorProperty",
|
|
@@ -939,7 +856,6 @@ function classAccessorProperty(key, value = null, typeAnnotation = null, decorat
|
|
|
939
856
|
static: _static
|
|
940
857
|
});
|
|
941
858
|
}
|
|
942
|
-
|
|
943
859
|
function classPrivateProperty(key, value = null, decorators = null, _static = false) {
|
|
944
860
|
return (0, _validateNode.default)({
|
|
945
861
|
type: "ClassPrivateProperty",
|
|
@@ -949,7 +865,6 @@ function classPrivateProperty(key, value = null, decorators = null, _static = fa
|
|
|
949
865
|
static: _static
|
|
950
866
|
});
|
|
951
867
|
}
|
|
952
|
-
|
|
953
868
|
function classPrivateMethod(kind = "method", key, params, body, _static = false) {
|
|
954
869
|
return (0, _validateNode.default)({
|
|
955
870
|
type: "ClassPrivateMethod",
|
|
@@ -960,53 +875,45 @@ function classPrivateMethod(kind = "method", key, params, body, _static = false)
|
|
|
960
875
|
static: _static
|
|
961
876
|
});
|
|
962
877
|
}
|
|
963
|
-
|
|
964
878
|
function privateName(id) {
|
|
965
879
|
return (0, _validateNode.default)({
|
|
966
880
|
type: "PrivateName",
|
|
967
881
|
id
|
|
968
882
|
});
|
|
969
883
|
}
|
|
970
|
-
|
|
971
884
|
function staticBlock(body) {
|
|
972
885
|
return (0, _validateNode.default)({
|
|
973
886
|
type: "StaticBlock",
|
|
974
887
|
body
|
|
975
888
|
});
|
|
976
889
|
}
|
|
977
|
-
|
|
978
890
|
function anyTypeAnnotation() {
|
|
979
891
|
return {
|
|
980
892
|
type: "AnyTypeAnnotation"
|
|
981
893
|
};
|
|
982
894
|
}
|
|
983
|
-
|
|
984
895
|
function arrayTypeAnnotation(elementType) {
|
|
985
896
|
return (0, _validateNode.default)({
|
|
986
897
|
type: "ArrayTypeAnnotation",
|
|
987
898
|
elementType
|
|
988
899
|
});
|
|
989
900
|
}
|
|
990
|
-
|
|
991
901
|
function booleanTypeAnnotation() {
|
|
992
902
|
return {
|
|
993
903
|
type: "BooleanTypeAnnotation"
|
|
994
904
|
};
|
|
995
905
|
}
|
|
996
|
-
|
|
997
906
|
function booleanLiteralTypeAnnotation(value) {
|
|
998
907
|
return (0, _validateNode.default)({
|
|
999
908
|
type: "BooleanLiteralTypeAnnotation",
|
|
1000
909
|
value
|
|
1001
910
|
});
|
|
1002
911
|
}
|
|
1003
|
-
|
|
1004
912
|
function nullLiteralTypeAnnotation() {
|
|
1005
913
|
return {
|
|
1006
914
|
type: "NullLiteralTypeAnnotation"
|
|
1007
915
|
};
|
|
1008
916
|
}
|
|
1009
|
-
|
|
1010
917
|
function classImplements(id, typeParameters = null) {
|
|
1011
918
|
return (0, _validateNode.default)({
|
|
1012
919
|
type: "ClassImplements",
|
|
@@ -1014,7 +921,6 @@ function classImplements(id, typeParameters = null) {
|
|
|
1014
921
|
typeParameters
|
|
1015
922
|
});
|
|
1016
923
|
}
|
|
1017
|
-
|
|
1018
924
|
function declareClass(id, typeParameters = null, _extends = null, body) {
|
|
1019
925
|
return (0, _validateNode.default)({
|
|
1020
926
|
type: "DeclareClass",
|
|
@@ -1024,14 +930,12 @@ function declareClass(id, typeParameters = null, _extends = null, body) {
|
|
|
1024
930
|
body
|
|
1025
931
|
});
|
|
1026
932
|
}
|
|
1027
|
-
|
|
1028
933
|
function declareFunction(id) {
|
|
1029
934
|
return (0, _validateNode.default)({
|
|
1030
935
|
type: "DeclareFunction",
|
|
1031
936
|
id
|
|
1032
937
|
});
|
|
1033
938
|
}
|
|
1034
|
-
|
|
1035
939
|
function declareInterface(id, typeParameters = null, _extends = null, body) {
|
|
1036
940
|
return (0, _validateNode.default)({
|
|
1037
941
|
type: "DeclareInterface",
|
|
@@ -1041,7 +945,6 @@ function declareInterface(id, typeParameters = null, _extends = null, body) {
|
|
|
1041
945
|
body
|
|
1042
946
|
});
|
|
1043
947
|
}
|
|
1044
|
-
|
|
1045
948
|
function declareModule(id, body, kind = null) {
|
|
1046
949
|
return (0, _validateNode.default)({
|
|
1047
950
|
type: "DeclareModule",
|
|
@@ -1050,14 +953,12 @@ function declareModule(id, body, kind = null) {
|
|
|
1050
953
|
kind
|
|
1051
954
|
});
|
|
1052
955
|
}
|
|
1053
|
-
|
|
1054
956
|
function declareModuleExports(typeAnnotation) {
|
|
1055
957
|
return (0, _validateNode.default)({
|
|
1056
958
|
type: "DeclareModuleExports",
|
|
1057
959
|
typeAnnotation
|
|
1058
960
|
});
|
|
1059
961
|
}
|
|
1060
|
-
|
|
1061
962
|
function declareTypeAlias(id, typeParameters = null, right) {
|
|
1062
963
|
return (0, _validateNode.default)({
|
|
1063
964
|
type: "DeclareTypeAlias",
|
|
@@ -1066,7 +967,6 @@ function declareTypeAlias(id, typeParameters = null, right) {
|
|
|
1066
967
|
right
|
|
1067
968
|
});
|
|
1068
969
|
}
|
|
1069
|
-
|
|
1070
970
|
function declareOpaqueType(id, typeParameters = null, supertype = null) {
|
|
1071
971
|
return (0, _validateNode.default)({
|
|
1072
972
|
type: "DeclareOpaqueType",
|
|
@@ -1075,14 +975,12 @@ function declareOpaqueType(id, typeParameters = null, supertype = null) {
|
|
|
1075
975
|
supertype
|
|
1076
976
|
});
|
|
1077
977
|
}
|
|
1078
|
-
|
|
1079
978
|
function declareVariable(id) {
|
|
1080
979
|
return (0, _validateNode.default)({
|
|
1081
980
|
type: "DeclareVariable",
|
|
1082
981
|
id
|
|
1083
982
|
});
|
|
1084
983
|
}
|
|
1085
|
-
|
|
1086
984
|
function declareExportDeclaration(declaration = null, specifiers = null, source = null) {
|
|
1087
985
|
return (0, _validateNode.default)({
|
|
1088
986
|
type: "DeclareExportDeclaration",
|
|
@@ -1091,27 +989,23 @@ function declareExportDeclaration(declaration = null, specifiers = null, source
|
|
|
1091
989
|
source
|
|
1092
990
|
});
|
|
1093
991
|
}
|
|
1094
|
-
|
|
1095
992
|
function declareExportAllDeclaration(source) {
|
|
1096
993
|
return (0, _validateNode.default)({
|
|
1097
994
|
type: "DeclareExportAllDeclaration",
|
|
1098
995
|
source
|
|
1099
996
|
});
|
|
1100
997
|
}
|
|
1101
|
-
|
|
1102
998
|
function declaredPredicate(value) {
|
|
1103
999
|
return (0, _validateNode.default)({
|
|
1104
1000
|
type: "DeclaredPredicate",
|
|
1105
1001
|
value
|
|
1106
1002
|
});
|
|
1107
1003
|
}
|
|
1108
|
-
|
|
1109
1004
|
function existsTypeAnnotation() {
|
|
1110
1005
|
return {
|
|
1111
1006
|
type: "ExistsTypeAnnotation"
|
|
1112
1007
|
};
|
|
1113
1008
|
}
|
|
1114
|
-
|
|
1115
1009
|
function functionTypeAnnotation(typeParameters = null, params, rest = null, returnType) {
|
|
1116
1010
|
return (0, _validateNode.default)({
|
|
1117
1011
|
type: "FunctionTypeAnnotation",
|
|
@@ -1121,7 +1015,6 @@ function functionTypeAnnotation(typeParameters = null, params, rest = null, retu
|
|
|
1121
1015
|
returnType
|
|
1122
1016
|
});
|
|
1123
1017
|
}
|
|
1124
|
-
|
|
1125
1018
|
function functionTypeParam(name = null, typeAnnotation) {
|
|
1126
1019
|
return (0, _validateNode.default)({
|
|
1127
1020
|
type: "FunctionTypeParam",
|
|
@@ -1129,7 +1022,6 @@ function functionTypeParam(name = null, typeAnnotation) {
|
|
|
1129
1022
|
typeAnnotation
|
|
1130
1023
|
});
|
|
1131
1024
|
}
|
|
1132
|
-
|
|
1133
1025
|
function genericTypeAnnotation(id, typeParameters = null) {
|
|
1134
1026
|
return (0, _validateNode.default)({
|
|
1135
1027
|
type: "GenericTypeAnnotation",
|
|
@@ -1137,13 +1029,11 @@ function genericTypeAnnotation(id, typeParameters = null) {
|
|
|
1137
1029
|
typeParameters
|
|
1138
1030
|
});
|
|
1139
1031
|
}
|
|
1140
|
-
|
|
1141
1032
|
function inferredPredicate() {
|
|
1142
1033
|
return {
|
|
1143
1034
|
type: "InferredPredicate"
|
|
1144
1035
|
};
|
|
1145
1036
|
}
|
|
1146
|
-
|
|
1147
1037
|
function interfaceExtends(id, typeParameters = null) {
|
|
1148
1038
|
return (0, _validateNode.default)({
|
|
1149
1039
|
type: "InterfaceExtends",
|
|
@@ -1151,7 +1041,6 @@ function interfaceExtends(id, typeParameters = null) {
|
|
|
1151
1041
|
typeParameters
|
|
1152
1042
|
});
|
|
1153
1043
|
}
|
|
1154
|
-
|
|
1155
1044
|
function interfaceDeclaration(id, typeParameters = null, _extends = null, body) {
|
|
1156
1045
|
return (0, _validateNode.default)({
|
|
1157
1046
|
type: "InterfaceDeclaration",
|
|
@@ -1161,7 +1050,6 @@ function interfaceDeclaration(id, typeParameters = null, _extends = null, body)
|
|
|
1161
1050
|
body
|
|
1162
1051
|
});
|
|
1163
1052
|
}
|
|
1164
|
-
|
|
1165
1053
|
function interfaceTypeAnnotation(_extends = null, body) {
|
|
1166
1054
|
return (0, _validateNode.default)({
|
|
1167
1055
|
type: "InterfaceTypeAnnotation",
|
|
@@ -1169,46 +1057,39 @@ function interfaceTypeAnnotation(_extends = null, body) {
|
|
|
1169
1057
|
body
|
|
1170
1058
|
});
|
|
1171
1059
|
}
|
|
1172
|
-
|
|
1173
1060
|
function intersectionTypeAnnotation(types) {
|
|
1174
1061
|
return (0, _validateNode.default)({
|
|
1175
1062
|
type: "IntersectionTypeAnnotation",
|
|
1176
1063
|
types
|
|
1177
1064
|
});
|
|
1178
1065
|
}
|
|
1179
|
-
|
|
1180
1066
|
function mixedTypeAnnotation() {
|
|
1181
1067
|
return {
|
|
1182
1068
|
type: "MixedTypeAnnotation"
|
|
1183
1069
|
};
|
|
1184
1070
|
}
|
|
1185
|
-
|
|
1186
1071
|
function emptyTypeAnnotation() {
|
|
1187
1072
|
return {
|
|
1188
1073
|
type: "EmptyTypeAnnotation"
|
|
1189
1074
|
};
|
|
1190
1075
|
}
|
|
1191
|
-
|
|
1192
1076
|
function nullableTypeAnnotation(typeAnnotation) {
|
|
1193
1077
|
return (0, _validateNode.default)({
|
|
1194
1078
|
type: "NullableTypeAnnotation",
|
|
1195
1079
|
typeAnnotation
|
|
1196
1080
|
});
|
|
1197
1081
|
}
|
|
1198
|
-
|
|
1199
1082
|
function numberLiteralTypeAnnotation(value) {
|
|
1200
1083
|
return (0, _validateNode.default)({
|
|
1201
1084
|
type: "NumberLiteralTypeAnnotation",
|
|
1202
1085
|
value
|
|
1203
1086
|
});
|
|
1204
1087
|
}
|
|
1205
|
-
|
|
1206
1088
|
function numberTypeAnnotation() {
|
|
1207
1089
|
return {
|
|
1208
1090
|
type: "NumberTypeAnnotation"
|
|
1209
1091
|
};
|
|
1210
1092
|
}
|
|
1211
|
-
|
|
1212
1093
|
function objectTypeAnnotation(properties, indexers = [], callProperties = [], internalSlots = [], exact = false) {
|
|
1213
1094
|
return (0, _validateNode.default)({
|
|
1214
1095
|
type: "ObjectTypeAnnotation",
|
|
@@ -1219,7 +1100,6 @@ function objectTypeAnnotation(properties, indexers = [], callProperties = [], in
|
|
|
1219
1100
|
exact
|
|
1220
1101
|
});
|
|
1221
1102
|
}
|
|
1222
|
-
|
|
1223
1103
|
function objectTypeInternalSlot(id, value, optional, _static, method) {
|
|
1224
1104
|
return (0, _validateNode.default)({
|
|
1225
1105
|
type: "ObjectTypeInternalSlot",
|
|
@@ -1230,7 +1110,6 @@ function objectTypeInternalSlot(id, value, optional, _static, method) {
|
|
|
1230
1110
|
method
|
|
1231
1111
|
});
|
|
1232
1112
|
}
|
|
1233
|
-
|
|
1234
1113
|
function objectTypeCallProperty(value) {
|
|
1235
1114
|
return (0, _validateNode.default)({
|
|
1236
1115
|
type: "ObjectTypeCallProperty",
|
|
@@ -1238,7 +1117,6 @@ function objectTypeCallProperty(value) {
|
|
|
1238
1117
|
static: null
|
|
1239
1118
|
});
|
|
1240
1119
|
}
|
|
1241
|
-
|
|
1242
1120
|
function objectTypeIndexer(id = null, key, value, variance = null) {
|
|
1243
1121
|
return (0, _validateNode.default)({
|
|
1244
1122
|
type: "ObjectTypeIndexer",
|
|
@@ -1249,7 +1127,6 @@ function objectTypeIndexer(id = null, key, value, variance = null) {
|
|
|
1249
1127
|
static: null
|
|
1250
1128
|
});
|
|
1251
1129
|
}
|
|
1252
|
-
|
|
1253
1130
|
function objectTypeProperty(key, value, variance = null) {
|
|
1254
1131
|
return (0, _validateNode.default)({
|
|
1255
1132
|
type: "ObjectTypeProperty",
|
|
@@ -1263,14 +1140,12 @@ function objectTypeProperty(key, value, variance = null) {
|
|
|
1263
1140
|
static: null
|
|
1264
1141
|
});
|
|
1265
1142
|
}
|
|
1266
|
-
|
|
1267
1143
|
function objectTypeSpreadProperty(argument) {
|
|
1268
1144
|
return (0, _validateNode.default)({
|
|
1269
1145
|
type: "ObjectTypeSpreadProperty",
|
|
1270
1146
|
argument
|
|
1271
1147
|
});
|
|
1272
1148
|
}
|
|
1273
|
-
|
|
1274
1149
|
function opaqueType(id, typeParameters = null, supertype = null, impltype) {
|
|
1275
1150
|
return (0, _validateNode.default)({
|
|
1276
1151
|
type: "OpaqueType",
|
|
@@ -1280,7 +1155,6 @@ function opaqueType(id, typeParameters = null, supertype = null, impltype) {
|
|
|
1280
1155
|
impltype
|
|
1281
1156
|
});
|
|
1282
1157
|
}
|
|
1283
|
-
|
|
1284
1158
|
function qualifiedTypeIdentifier(id, qualification) {
|
|
1285
1159
|
return (0, _validateNode.default)({
|
|
1286
1160
|
type: "QualifiedTypeIdentifier",
|
|
@@ -1288,46 +1162,39 @@ function qualifiedTypeIdentifier(id, qualification) {
|
|
|
1288
1162
|
qualification
|
|
1289
1163
|
});
|
|
1290
1164
|
}
|
|
1291
|
-
|
|
1292
1165
|
function stringLiteralTypeAnnotation(value) {
|
|
1293
1166
|
return (0, _validateNode.default)({
|
|
1294
1167
|
type: "StringLiteralTypeAnnotation",
|
|
1295
1168
|
value
|
|
1296
1169
|
});
|
|
1297
1170
|
}
|
|
1298
|
-
|
|
1299
1171
|
function stringTypeAnnotation() {
|
|
1300
1172
|
return {
|
|
1301
1173
|
type: "StringTypeAnnotation"
|
|
1302
1174
|
};
|
|
1303
1175
|
}
|
|
1304
|
-
|
|
1305
1176
|
function symbolTypeAnnotation() {
|
|
1306
1177
|
return {
|
|
1307
1178
|
type: "SymbolTypeAnnotation"
|
|
1308
1179
|
};
|
|
1309
1180
|
}
|
|
1310
|
-
|
|
1311
1181
|
function thisTypeAnnotation() {
|
|
1312
1182
|
return {
|
|
1313
1183
|
type: "ThisTypeAnnotation"
|
|
1314
1184
|
};
|
|
1315
1185
|
}
|
|
1316
|
-
|
|
1317
1186
|
function tupleTypeAnnotation(types) {
|
|
1318
1187
|
return (0, _validateNode.default)({
|
|
1319
1188
|
type: "TupleTypeAnnotation",
|
|
1320
1189
|
types
|
|
1321
1190
|
});
|
|
1322
1191
|
}
|
|
1323
|
-
|
|
1324
1192
|
function typeofTypeAnnotation(argument) {
|
|
1325
1193
|
return (0, _validateNode.default)({
|
|
1326
1194
|
type: "TypeofTypeAnnotation",
|
|
1327
1195
|
argument
|
|
1328
1196
|
});
|
|
1329
1197
|
}
|
|
1330
|
-
|
|
1331
1198
|
function typeAlias(id, typeParameters = null, right) {
|
|
1332
1199
|
return (0, _validateNode.default)({
|
|
1333
1200
|
type: "TypeAlias",
|
|
@@ -1336,14 +1203,12 @@ function typeAlias(id, typeParameters = null, right) {
|
|
|
1336
1203
|
right
|
|
1337
1204
|
});
|
|
1338
1205
|
}
|
|
1339
|
-
|
|
1340
1206
|
function typeAnnotation(typeAnnotation) {
|
|
1341
1207
|
return (0, _validateNode.default)({
|
|
1342
1208
|
type: "TypeAnnotation",
|
|
1343
1209
|
typeAnnotation
|
|
1344
1210
|
});
|
|
1345
1211
|
}
|
|
1346
|
-
|
|
1347
1212
|
function typeCastExpression(expression, typeAnnotation) {
|
|
1348
1213
|
return (0, _validateNode.default)({
|
|
1349
1214
|
type: "TypeCastExpression",
|
|
@@ -1351,7 +1216,6 @@ function typeCastExpression(expression, typeAnnotation) {
|
|
|
1351
1216
|
typeAnnotation
|
|
1352
1217
|
});
|
|
1353
1218
|
}
|
|
1354
|
-
|
|
1355
1219
|
function typeParameter(bound = null, _default = null, variance = null) {
|
|
1356
1220
|
return (0, _validateNode.default)({
|
|
1357
1221
|
type: "TypeParameter",
|
|
@@ -1361,41 +1225,35 @@ function typeParameter(bound = null, _default = null, variance = null) {
|
|
|
1361
1225
|
name: null
|
|
1362
1226
|
});
|
|
1363
1227
|
}
|
|
1364
|
-
|
|
1365
1228
|
function typeParameterDeclaration(params) {
|
|
1366
1229
|
return (0, _validateNode.default)({
|
|
1367
1230
|
type: "TypeParameterDeclaration",
|
|
1368
1231
|
params
|
|
1369
1232
|
});
|
|
1370
1233
|
}
|
|
1371
|
-
|
|
1372
1234
|
function typeParameterInstantiation(params) {
|
|
1373
1235
|
return (0, _validateNode.default)({
|
|
1374
1236
|
type: "TypeParameterInstantiation",
|
|
1375
1237
|
params
|
|
1376
1238
|
});
|
|
1377
1239
|
}
|
|
1378
|
-
|
|
1379
1240
|
function unionTypeAnnotation(types) {
|
|
1380
1241
|
return (0, _validateNode.default)({
|
|
1381
1242
|
type: "UnionTypeAnnotation",
|
|
1382
1243
|
types
|
|
1383
1244
|
});
|
|
1384
1245
|
}
|
|
1385
|
-
|
|
1386
1246
|
function variance(kind) {
|
|
1387
1247
|
return (0, _validateNode.default)({
|
|
1388
1248
|
type: "Variance",
|
|
1389
1249
|
kind
|
|
1390
1250
|
});
|
|
1391
1251
|
}
|
|
1392
|
-
|
|
1393
1252
|
function voidTypeAnnotation() {
|
|
1394
1253
|
return {
|
|
1395
1254
|
type: "VoidTypeAnnotation"
|
|
1396
1255
|
};
|
|
1397
1256
|
}
|
|
1398
|
-
|
|
1399
1257
|
function enumDeclaration(id, body) {
|
|
1400
1258
|
return (0, _validateNode.default)({
|
|
1401
1259
|
type: "EnumDeclaration",
|
|
@@ -1403,7 +1261,6 @@ function enumDeclaration(id, body) {
|
|
|
1403
1261
|
body
|
|
1404
1262
|
});
|
|
1405
1263
|
}
|
|
1406
|
-
|
|
1407
1264
|
function enumBooleanBody(members) {
|
|
1408
1265
|
return (0, _validateNode.default)({
|
|
1409
1266
|
type: "EnumBooleanBody",
|
|
@@ -1412,7 +1269,6 @@ function enumBooleanBody(members) {
|
|
|
1412
1269
|
hasUnknownMembers: null
|
|
1413
1270
|
});
|
|
1414
1271
|
}
|
|
1415
|
-
|
|
1416
1272
|
function enumNumberBody(members) {
|
|
1417
1273
|
return (0, _validateNode.default)({
|
|
1418
1274
|
type: "EnumNumberBody",
|
|
@@ -1421,7 +1277,6 @@ function enumNumberBody(members) {
|
|
|
1421
1277
|
hasUnknownMembers: null
|
|
1422
1278
|
});
|
|
1423
1279
|
}
|
|
1424
|
-
|
|
1425
1280
|
function enumStringBody(members) {
|
|
1426
1281
|
return (0, _validateNode.default)({
|
|
1427
1282
|
type: "EnumStringBody",
|
|
@@ -1430,7 +1285,6 @@ function enumStringBody(members) {
|
|
|
1430
1285
|
hasUnknownMembers: null
|
|
1431
1286
|
});
|
|
1432
1287
|
}
|
|
1433
|
-
|
|
1434
1288
|
function enumSymbolBody(members) {
|
|
1435
1289
|
return (0, _validateNode.default)({
|
|
1436
1290
|
type: "EnumSymbolBody",
|
|
@@ -1438,7 +1292,6 @@ function enumSymbolBody(members) {
|
|
|
1438
1292
|
hasUnknownMembers: null
|
|
1439
1293
|
});
|
|
1440
1294
|
}
|
|
1441
|
-
|
|
1442
1295
|
function enumBooleanMember(id) {
|
|
1443
1296
|
return (0, _validateNode.default)({
|
|
1444
1297
|
type: "EnumBooleanMember",
|
|
@@ -1446,7 +1299,6 @@ function enumBooleanMember(id) {
|
|
|
1446
1299
|
init: null
|
|
1447
1300
|
});
|
|
1448
1301
|
}
|
|
1449
|
-
|
|
1450
1302
|
function enumNumberMember(id, init) {
|
|
1451
1303
|
return (0, _validateNode.default)({
|
|
1452
1304
|
type: "EnumNumberMember",
|
|
@@ -1454,7 +1306,6 @@ function enumNumberMember(id, init) {
|
|
|
1454
1306
|
init
|
|
1455
1307
|
});
|
|
1456
1308
|
}
|
|
1457
|
-
|
|
1458
1309
|
function enumStringMember(id, init) {
|
|
1459
1310
|
return (0, _validateNode.default)({
|
|
1460
1311
|
type: "EnumStringMember",
|
|
@@ -1462,14 +1313,12 @@ function enumStringMember(id, init) {
|
|
|
1462
1313
|
init
|
|
1463
1314
|
});
|
|
1464
1315
|
}
|
|
1465
|
-
|
|
1466
1316
|
function enumDefaultedMember(id) {
|
|
1467
1317
|
return (0, _validateNode.default)({
|
|
1468
1318
|
type: "EnumDefaultedMember",
|
|
1469
1319
|
id
|
|
1470
1320
|
});
|
|
1471
1321
|
}
|
|
1472
|
-
|
|
1473
1322
|
function indexedAccessType(objectType, indexType) {
|
|
1474
1323
|
return (0, _validateNode.default)({
|
|
1475
1324
|
type: "IndexedAccessType",
|
|
@@ -1477,7 +1326,6 @@ function indexedAccessType(objectType, indexType) {
|
|
|
1477
1326
|
indexType
|
|
1478
1327
|
});
|
|
1479
1328
|
}
|
|
1480
|
-
|
|
1481
1329
|
function optionalIndexedAccessType(objectType, indexType) {
|
|
1482
1330
|
return (0, _validateNode.default)({
|
|
1483
1331
|
type: "OptionalIndexedAccessType",
|
|
@@ -1486,7 +1334,6 @@ function optionalIndexedAccessType(objectType, indexType) {
|
|
|
1486
1334
|
optional: null
|
|
1487
1335
|
});
|
|
1488
1336
|
}
|
|
1489
|
-
|
|
1490
1337
|
function jsxAttribute(name, value = null) {
|
|
1491
1338
|
return (0, _validateNode.default)({
|
|
1492
1339
|
type: "JSXAttribute",
|
|
@@ -1494,14 +1341,12 @@ function jsxAttribute(name, value = null) {
|
|
|
1494
1341
|
value
|
|
1495
1342
|
});
|
|
1496
1343
|
}
|
|
1497
|
-
|
|
1498
1344
|
function jsxClosingElement(name) {
|
|
1499
1345
|
return (0, _validateNode.default)({
|
|
1500
1346
|
type: "JSXClosingElement",
|
|
1501
1347
|
name
|
|
1502
1348
|
});
|
|
1503
1349
|
}
|
|
1504
|
-
|
|
1505
1350
|
function jsxElement(openingElement, closingElement = null, children, selfClosing = null) {
|
|
1506
1351
|
return (0, _validateNode.default)({
|
|
1507
1352
|
type: "JSXElement",
|
|
@@ -1511,34 +1356,29 @@ function jsxElement(openingElement, closingElement = null, children, selfClosing
|
|
|
1511
1356
|
selfClosing
|
|
1512
1357
|
});
|
|
1513
1358
|
}
|
|
1514
|
-
|
|
1515
1359
|
function jsxEmptyExpression() {
|
|
1516
1360
|
return {
|
|
1517
1361
|
type: "JSXEmptyExpression"
|
|
1518
1362
|
};
|
|
1519
1363
|
}
|
|
1520
|
-
|
|
1521
1364
|
function jsxExpressionContainer(expression) {
|
|
1522
1365
|
return (0, _validateNode.default)({
|
|
1523
1366
|
type: "JSXExpressionContainer",
|
|
1524
1367
|
expression
|
|
1525
1368
|
});
|
|
1526
1369
|
}
|
|
1527
|
-
|
|
1528
1370
|
function jsxSpreadChild(expression) {
|
|
1529
1371
|
return (0, _validateNode.default)({
|
|
1530
1372
|
type: "JSXSpreadChild",
|
|
1531
1373
|
expression
|
|
1532
1374
|
});
|
|
1533
1375
|
}
|
|
1534
|
-
|
|
1535
1376
|
function jsxIdentifier(name) {
|
|
1536
1377
|
return (0, _validateNode.default)({
|
|
1537
1378
|
type: "JSXIdentifier",
|
|
1538
1379
|
name
|
|
1539
1380
|
});
|
|
1540
1381
|
}
|
|
1541
|
-
|
|
1542
1382
|
function jsxMemberExpression(object, property) {
|
|
1543
1383
|
return (0, _validateNode.default)({
|
|
1544
1384
|
type: "JSXMemberExpression",
|
|
@@ -1546,7 +1386,6 @@ function jsxMemberExpression(object, property) {
|
|
|
1546
1386
|
property
|
|
1547
1387
|
});
|
|
1548
1388
|
}
|
|
1549
|
-
|
|
1550
1389
|
function jsxNamespacedName(namespace, name) {
|
|
1551
1390
|
return (0, _validateNode.default)({
|
|
1552
1391
|
type: "JSXNamespacedName",
|
|
@@ -1554,7 +1393,6 @@ function jsxNamespacedName(namespace, name) {
|
|
|
1554
1393
|
name
|
|
1555
1394
|
});
|
|
1556
1395
|
}
|
|
1557
|
-
|
|
1558
1396
|
function jsxOpeningElement(name, attributes, selfClosing = false) {
|
|
1559
1397
|
return (0, _validateNode.default)({
|
|
1560
1398
|
type: "JSXOpeningElement",
|
|
@@ -1563,21 +1401,18 @@ function jsxOpeningElement(name, attributes, selfClosing = false) {
|
|
|
1563
1401
|
selfClosing
|
|
1564
1402
|
});
|
|
1565
1403
|
}
|
|
1566
|
-
|
|
1567
1404
|
function jsxSpreadAttribute(argument) {
|
|
1568
1405
|
return (0, _validateNode.default)({
|
|
1569
1406
|
type: "JSXSpreadAttribute",
|
|
1570
1407
|
argument
|
|
1571
1408
|
});
|
|
1572
1409
|
}
|
|
1573
|
-
|
|
1574
1410
|
function jsxText(value) {
|
|
1575
1411
|
return (0, _validateNode.default)({
|
|
1576
1412
|
type: "JSXText",
|
|
1577
1413
|
value
|
|
1578
1414
|
});
|
|
1579
1415
|
}
|
|
1580
|
-
|
|
1581
1416
|
function jsxFragment(openingFragment, closingFragment, children) {
|
|
1582
1417
|
return (0, _validateNode.default)({
|
|
1583
1418
|
type: "JSXFragment",
|
|
@@ -1586,25 +1421,21 @@ function jsxFragment(openingFragment, closingFragment, children) {
|
|
|
1586
1421
|
children
|
|
1587
1422
|
});
|
|
1588
1423
|
}
|
|
1589
|
-
|
|
1590
1424
|
function jsxOpeningFragment() {
|
|
1591
1425
|
return {
|
|
1592
1426
|
type: "JSXOpeningFragment"
|
|
1593
1427
|
};
|
|
1594
1428
|
}
|
|
1595
|
-
|
|
1596
1429
|
function jsxClosingFragment() {
|
|
1597
1430
|
return {
|
|
1598
1431
|
type: "JSXClosingFragment"
|
|
1599
1432
|
};
|
|
1600
1433
|
}
|
|
1601
|
-
|
|
1602
1434
|
function noop() {
|
|
1603
1435
|
return {
|
|
1604
1436
|
type: "Noop"
|
|
1605
1437
|
};
|
|
1606
1438
|
}
|
|
1607
|
-
|
|
1608
1439
|
function placeholder(expectedNode, name) {
|
|
1609
1440
|
return (0, _validateNode.default)({
|
|
1610
1441
|
type: "Placeholder",
|
|
@@ -1612,20 +1443,17 @@ function placeholder(expectedNode, name) {
|
|
|
1612
1443
|
name
|
|
1613
1444
|
});
|
|
1614
1445
|
}
|
|
1615
|
-
|
|
1616
1446
|
function v8IntrinsicIdentifier(name) {
|
|
1617
1447
|
return (0, _validateNode.default)({
|
|
1618
1448
|
type: "V8IntrinsicIdentifier",
|
|
1619
1449
|
name
|
|
1620
1450
|
});
|
|
1621
1451
|
}
|
|
1622
|
-
|
|
1623
1452
|
function argumentPlaceholder() {
|
|
1624
1453
|
return {
|
|
1625
1454
|
type: "ArgumentPlaceholder"
|
|
1626
1455
|
};
|
|
1627
1456
|
}
|
|
1628
|
-
|
|
1629
1457
|
function bindExpression(object, callee) {
|
|
1630
1458
|
return (0, _validateNode.default)({
|
|
1631
1459
|
type: "BindExpression",
|
|
@@ -1633,7 +1461,6 @@ function bindExpression(object, callee) {
|
|
|
1633
1461
|
callee
|
|
1634
1462
|
});
|
|
1635
1463
|
}
|
|
1636
|
-
|
|
1637
1464
|
function importAttribute(key, value) {
|
|
1638
1465
|
return (0, _validateNode.default)({
|
|
1639
1466
|
type: "ImportAttribute",
|
|
@@ -1641,14 +1468,12 @@ function importAttribute(key, value) {
|
|
|
1641
1468
|
value
|
|
1642
1469
|
});
|
|
1643
1470
|
}
|
|
1644
|
-
|
|
1645
1471
|
function decorator(expression) {
|
|
1646
1472
|
return (0, _validateNode.default)({
|
|
1647
1473
|
type: "Decorator",
|
|
1648
1474
|
expression
|
|
1649
1475
|
});
|
|
1650
1476
|
}
|
|
1651
|
-
|
|
1652
1477
|
function doExpression(body, async = false) {
|
|
1653
1478
|
return (0, _validateNode.default)({
|
|
1654
1479
|
type: "DoExpression",
|
|
@@ -1656,75 +1481,64 @@ function doExpression(body, async = false) {
|
|
|
1656
1481
|
async
|
|
1657
1482
|
});
|
|
1658
1483
|
}
|
|
1659
|
-
|
|
1660
1484
|
function exportDefaultSpecifier(exported) {
|
|
1661
1485
|
return (0, _validateNode.default)({
|
|
1662
1486
|
type: "ExportDefaultSpecifier",
|
|
1663
1487
|
exported
|
|
1664
1488
|
});
|
|
1665
1489
|
}
|
|
1666
|
-
|
|
1667
1490
|
function recordExpression(properties) {
|
|
1668
1491
|
return (0, _validateNode.default)({
|
|
1669
1492
|
type: "RecordExpression",
|
|
1670
1493
|
properties
|
|
1671
1494
|
});
|
|
1672
1495
|
}
|
|
1673
|
-
|
|
1674
1496
|
function tupleExpression(elements = []) {
|
|
1675
1497
|
return (0, _validateNode.default)({
|
|
1676
1498
|
type: "TupleExpression",
|
|
1677
1499
|
elements
|
|
1678
1500
|
});
|
|
1679
1501
|
}
|
|
1680
|
-
|
|
1681
1502
|
function decimalLiteral(value) {
|
|
1682
1503
|
return (0, _validateNode.default)({
|
|
1683
1504
|
type: "DecimalLiteral",
|
|
1684
1505
|
value
|
|
1685
1506
|
});
|
|
1686
1507
|
}
|
|
1687
|
-
|
|
1688
1508
|
function moduleExpression(body) {
|
|
1689
1509
|
return (0, _validateNode.default)({
|
|
1690
1510
|
type: "ModuleExpression",
|
|
1691
1511
|
body
|
|
1692
1512
|
});
|
|
1693
1513
|
}
|
|
1694
|
-
|
|
1695
1514
|
function topicReference() {
|
|
1696
1515
|
return {
|
|
1697
1516
|
type: "TopicReference"
|
|
1698
1517
|
};
|
|
1699
1518
|
}
|
|
1700
|
-
|
|
1701
1519
|
function pipelineTopicExpression(expression) {
|
|
1702
1520
|
return (0, _validateNode.default)({
|
|
1703
1521
|
type: "PipelineTopicExpression",
|
|
1704
1522
|
expression
|
|
1705
1523
|
});
|
|
1706
1524
|
}
|
|
1707
|
-
|
|
1708
1525
|
function pipelineBareFunction(callee) {
|
|
1709
1526
|
return (0, _validateNode.default)({
|
|
1710
1527
|
type: "PipelineBareFunction",
|
|
1711
1528
|
callee
|
|
1712
1529
|
});
|
|
1713
1530
|
}
|
|
1714
|
-
|
|
1715
1531
|
function pipelinePrimaryTopicReference() {
|
|
1716
1532
|
return {
|
|
1717
1533
|
type: "PipelinePrimaryTopicReference"
|
|
1718
1534
|
};
|
|
1719
1535
|
}
|
|
1720
|
-
|
|
1721
1536
|
function tsParameterProperty(parameter) {
|
|
1722
1537
|
return (0, _validateNode.default)({
|
|
1723
1538
|
type: "TSParameterProperty",
|
|
1724
1539
|
parameter
|
|
1725
1540
|
});
|
|
1726
1541
|
}
|
|
1727
|
-
|
|
1728
1542
|
function tsDeclareFunction(id = null, typeParameters = null, params, returnType = null) {
|
|
1729
1543
|
return (0, _validateNode.default)({
|
|
1730
1544
|
type: "TSDeclareFunction",
|
|
@@ -1734,7 +1548,6 @@ function tsDeclareFunction(id = null, typeParameters = null, params, returnType
|
|
|
1734
1548
|
returnType
|
|
1735
1549
|
});
|
|
1736
1550
|
}
|
|
1737
|
-
|
|
1738
1551
|
function tsDeclareMethod(decorators = null, key, typeParameters = null, params, returnType = null) {
|
|
1739
1552
|
return (0, _validateNode.default)({
|
|
1740
1553
|
type: "TSDeclareMethod",
|
|
@@ -1745,7 +1558,6 @@ function tsDeclareMethod(decorators = null, key, typeParameters = null, params,
|
|
|
1745
1558
|
returnType
|
|
1746
1559
|
});
|
|
1747
1560
|
}
|
|
1748
|
-
|
|
1749
1561
|
function tsQualifiedName(left, right) {
|
|
1750
1562
|
return (0, _validateNode.default)({
|
|
1751
1563
|
type: "TSQualifiedName",
|
|
@@ -1753,7 +1565,6 @@ function tsQualifiedName(left, right) {
|
|
|
1753
1565
|
right
|
|
1754
1566
|
});
|
|
1755
1567
|
}
|
|
1756
|
-
|
|
1757
1568
|
function tsCallSignatureDeclaration(typeParameters = null, parameters, typeAnnotation = null) {
|
|
1758
1569
|
return (0, _validateNode.default)({
|
|
1759
1570
|
type: "TSCallSignatureDeclaration",
|
|
@@ -1762,7 +1573,6 @@ function tsCallSignatureDeclaration(typeParameters = null, parameters, typeAnnot
|
|
|
1762
1573
|
typeAnnotation
|
|
1763
1574
|
});
|
|
1764
1575
|
}
|
|
1765
|
-
|
|
1766
1576
|
function tsConstructSignatureDeclaration(typeParameters = null, parameters, typeAnnotation = null) {
|
|
1767
1577
|
return (0, _validateNode.default)({
|
|
1768
1578
|
type: "TSConstructSignatureDeclaration",
|
|
@@ -1771,7 +1581,6 @@ function tsConstructSignatureDeclaration(typeParameters = null, parameters, type
|
|
|
1771
1581
|
typeAnnotation
|
|
1772
1582
|
});
|
|
1773
1583
|
}
|
|
1774
|
-
|
|
1775
1584
|
function tsPropertySignature(key, typeAnnotation = null, initializer = null) {
|
|
1776
1585
|
return (0, _validateNode.default)({
|
|
1777
1586
|
type: "TSPropertySignature",
|
|
@@ -1781,7 +1590,6 @@ function tsPropertySignature(key, typeAnnotation = null, initializer = null) {
|
|
|
1781
1590
|
kind: null
|
|
1782
1591
|
});
|
|
1783
1592
|
}
|
|
1784
|
-
|
|
1785
1593
|
function tsMethodSignature(key, typeParameters = null, parameters, typeAnnotation = null) {
|
|
1786
1594
|
return (0, _validateNode.default)({
|
|
1787
1595
|
type: "TSMethodSignature",
|
|
@@ -1792,7 +1600,6 @@ function tsMethodSignature(key, typeParameters = null, parameters, typeAnnotatio
|
|
|
1792
1600
|
kind: null
|
|
1793
1601
|
});
|
|
1794
1602
|
}
|
|
1795
|
-
|
|
1796
1603
|
function tsIndexSignature(parameters, typeAnnotation = null) {
|
|
1797
1604
|
return (0, _validateNode.default)({
|
|
1798
1605
|
type: "TSIndexSignature",
|
|
@@ -1800,91 +1607,76 @@ function tsIndexSignature(parameters, typeAnnotation = null) {
|
|
|
1800
1607
|
typeAnnotation
|
|
1801
1608
|
});
|
|
1802
1609
|
}
|
|
1803
|
-
|
|
1804
1610
|
function tsAnyKeyword() {
|
|
1805
1611
|
return {
|
|
1806
1612
|
type: "TSAnyKeyword"
|
|
1807
1613
|
};
|
|
1808
1614
|
}
|
|
1809
|
-
|
|
1810
1615
|
function tsBooleanKeyword() {
|
|
1811
1616
|
return {
|
|
1812
1617
|
type: "TSBooleanKeyword"
|
|
1813
1618
|
};
|
|
1814
1619
|
}
|
|
1815
|
-
|
|
1816
1620
|
function tsBigIntKeyword() {
|
|
1817
1621
|
return {
|
|
1818
1622
|
type: "TSBigIntKeyword"
|
|
1819
1623
|
};
|
|
1820
1624
|
}
|
|
1821
|
-
|
|
1822
1625
|
function tsIntrinsicKeyword() {
|
|
1823
1626
|
return {
|
|
1824
1627
|
type: "TSIntrinsicKeyword"
|
|
1825
1628
|
};
|
|
1826
1629
|
}
|
|
1827
|
-
|
|
1828
1630
|
function tsNeverKeyword() {
|
|
1829
1631
|
return {
|
|
1830
1632
|
type: "TSNeverKeyword"
|
|
1831
1633
|
};
|
|
1832
1634
|
}
|
|
1833
|
-
|
|
1834
1635
|
function tsNullKeyword() {
|
|
1835
1636
|
return {
|
|
1836
1637
|
type: "TSNullKeyword"
|
|
1837
1638
|
};
|
|
1838
1639
|
}
|
|
1839
|
-
|
|
1840
1640
|
function tsNumberKeyword() {
|
|
1841
1641
|
return {
|
|
1842
1642
|
type: "TSNumberKeyword"
|
|
1843
1643
|
};
|
|
1844
1644
|
}
|
|
1845
|
-
|
|
1846
1645
|
function tsObjectKeyword() {
|
|
1847
1646
|
return {
|
|
1848
1647
|
type: "TSObjectKeyword"
|
|
1849
1648
|
};
|
|
1850
1649
|
}
|
|
1851
|
-
|
|
1852
1650
|
function tsStringKeyword() {
|
|
1853
1651
|
return {
|
|
1854
1652
|
type: "TSStringKeyword"
|
|
1855
1653
|
};
|
|
1856
1654
|
}
|
|
1857
|
-
|
|
1858
1655
|
function tsSymbolKeyword() {
|
|
1859
1656
|
return {
|
|
1860
1657
|
type: "TSSymbolKeyword"
|
|
1861
1658
|
};
|
|
1862
1659
|
}
|
|
1863
|
-
|
|
1864
1660
|
function tsUndefinedKeyword() {
|
|
1865
1661
|
return {
|
|
1866
1662
|
type: "TSUndefinedKeyword"
|
|
1867
1663
|
};
|
|
1868
1664
|
}
|
|
1869
|
-
|
|
1870
1665
|
function tsUnknownKeyword() {
|
|
1871
1666
|
return {
|
|
1872
1667
|
type: "TSUnknownKeyword"
|
|
1873
1668
|
};
|
|
1874
1669
|
}
|
|
1875
|
-
|
|
1876
1670
|
function tsVoidKeyword() {
|
|
1877
1671
|
return {
|
|
1878
1672
|
type: "TSVoidKeyword"
|
|
1879
1673
|
};
|
|
1880
1674
|
}
|
|
1881
|
-
|
|
1882
1675
|
function tsThisType() {
|
|
1883
1676
|
return {
|
|
1884
1677
|
type: "TSThisType"
|
|
1885
1678
|
};
|
|
1886
1679
|
}
|
|
1887
|
-
|
|
1888
1680
|
function tsFunctionType(typeParameters = null, parameters, typeAnnotation = null) {
|
|
1889
1681
|
return (0, _validateNode.default)({
|
|
1890
1682
|
type: "TSFunctionType",
|
|
@@ -1893,7 +1685,6 @@ function tsFunctionType(typeParameters = null, parameters, typeAnnotation = null
|
|
|
1893
1685
|
typeAnnotation
|
|
1894
1686
|
});
|
|
1895
1687
|
}
|
|
1896
|
-
|
|
1897
1688
|
function tsConstructorType(typeParameters = null, parameters, typeAnnotation = null) {
|
|
1898
1689
|
return (0, _validateNode.default)({
|
|
1899
1690
|
type: "TSConstructorType",
|
|
@@ -1902,7 +1693,6 @@ function tsConstructorType(typeParameters = null, parameters, typeAnnotation = n
|
|
|
1902
1693
|
typeAnnotation
|
|
1903
1694
|
});
|
|
1904
1695
|
}
|
|
1905
|
-
|
|
1906
1696
|
function tsTypeReference(typeName, typeParameters = null) {
|
|
1907
1697
|
return (0, _validateNode.default)({
|
|
1908
1698
|
type: "TSTypeReference",
|
|
@@ -1910,7 +1700,6 @@ function tsTypeReference(typeName, typeParameters = null) {
|
|
|
1910
1700
|
typeParameters
|
|
1911
1701
|
});
|
|
1912
1702
|
}
|
|
1913
|
-
|
|
1914
1703
|
function tsTypePredicate(parameterName, typeAnnotation = null, asserts = null) {
|
|
1915
1704
|
return (0, _validateNode.default)({
|
|
1916
1705
|
type: "TSTypePredicate",
|
|
@@ -1919,7 +1708,6 @@ function tsTypePredicate(parameterName, typeAnnotation = null, asserts = null) {
|
|
|
1919
1708
|
asserts
|
|
1920
1709
|
});
|
|
1921
1710
|
}
|
|
1922
|
-
|
|
1923
1711
|
function tsTypeQuery(exprName, typeParameters = null) {
|
|
1924
1712
|
return (0, _validateNode.default)({
|
|
1925
1713
|
type: "TSTypeQuery",
|
|
@@ -1927,42 +1715,36 @@ function tsTypeQuery(exprName, typeParameters = null) {
|
|
|
1927
1715
|
typeParameters
|
|
1928
1716
|
});
|
|
1929
1717
|
}
|
|
1930
|
-
|
|
1931
1718
|
function tsTypeLiteral(members) {
|
|
1932
1719
|
return (0, _validateNode.default)({
|
|
1933
1720
|
type: "TSTypeLiteral",
|
|
1934
1721
|
members
|
|
1935
1722
|
});
|
|
1936
1723
|
}
|
|
1937
|
-
|
|
1938
1724
|
function tsArrayType(elementType) {
|
|
1939
1725
|
return (0, _validateNode.default)({
|
|
1940
1726
|
type: "TSArrayType",
|
|
1941
1727
|
elementType
|
|
1942
1728
|
});
|
|
1943
1729
|
}
|
|
1944
|
-
|
|
1945
1730
|
function tsTupleType(elementTypes) {
|
|
1946
1731
|
return (0, _validateNode.default)({
|
|
1947
1732
|
type: "TSTupleType",
|
|
1948
1733
|
elementTypes
|
|
1949
1734
|
});
|
|
1950
1735
|
}
|
|
1951
|
-
|
|
1952
1736
|
function tsOptionalType(typeAnnotation) {
|
|
1953
1737
|
return (0, _validateNode.default)({
|
|
1954
1738
|
type: "TSOptionalType",
|
|
1955
1739
|
typeAnnotation
|
|
1956
1740
|
});
|
|
1957
1741
|
}
|
|
1958
|
-
|
|
1959
1742
|
function tsRestType(typeAnnotation) {
|
|
1960
1743
|
return (0, _validateNode.default)({
|
|
1961
1744
|
type: "TSRestType",
|
|
1962
1745
|
typeAnnotation
|
|
1963
1746
|
});
|
|
1964
1747
|
}
|
|
1965
|
-
|
|
1966
1748
|
function tsNamedTupleMember(label, elementType, optional = false) {
|
|
1967
1749
|
return (0, _validateNode.default)({
|
|
1968
1750
|
type: "TSNamedTupleMember",
|
|
@@ -1971,21 +1753,18 @@ function tsNamedTupleMember(label, elementType, optional = false) {
|
|
|
1971
1753
|
optional
|
|
1972
1754
|
});
|
|
1973
1755
|
}
|
|
1974
|
-
|
|
1975
1756
|
function tsUnionType(types) {
|
|
1976
1757
|
return (0, _validateNode.default)({
|
|
1977
1758
|
type: "TSUnionType",
|
|
1978
1759
|
types
|
|
1979
1760
|
});
|
|
1980
1761
|
}
|
|
1981
|
-
|
|
1982
1762
|
function tsIntersectionType(types) {
|
|
1983
1763
|
return (0, _validateNode.default)({
|
|
1984
1764
|
type: "TSIntersectionType",
|
|
1985
1765
|
types
|
|
1986
1766
|
});
|
|
1987
1767
|
}
|
|
1988
|
-
|
|
1989
1768
|
function tsConditionalType(checkType, extendsType, trueType, falseType) {
|
|
1990
1769
|
return (0, _validateNode.default)({
|
|
1991
1770
|
type: "TSConditionalType",
|
|
@@ -1995,21 +1774,18 @@ function tsConditionalType(checkType, extendsType, trueType, falseType) {
|
|
|
1995
1774
|
falseType
|
|
1996
1775
|
});
|
|
1997
1776
|
}
|
|
1998
|
-
|
|
1999
1777
|
function tsInferType(typeParameter) {
|
|
2000
1778
|
return (0, _validateNode.default)({
|
|
2001
1779
|
type: "TSInferType",
|
|
2002
1780
|
typeParameter
|
|
2003
1781
|
});
|
|
2004
1782
|
}
|
|
2005
|
-
|
|
2006
1783
|
function tsParenthesizedType(typeAnnotation) {
|
|
2007
1784
|
return (0, _validateNode.default)({
|
|
2008
1785
|
type: "TSParenthesizedType",
|
|
2009
1786
|
typeAnnotation
|
|
2010
1787
|
});
|
|
2011
1788
|
}
|
|
2012
|
-
|
|
2013
1789
|
function tsTypeOperator(typeAnnotation) {
|
|
2014
1790
|
return (0, _validateNode.default)({
|
|
2015
1791
|
type: "TSTypeOperator",
|
|
@@ -2017,7 +1793,6 @@ function tsTypeOperator(typeAnnotation) {
|
|
|
2017
1793
|
operator: null
|
|
2018
1794
|
});
|
|
2019
1795
|
}
|
|
2020
|
-
|
|
2021
1796
|
function tsIndexedAccessType(objectType, indexType) {
|
|
2022
1797
|
return (0, _validateNode.default)({
|
|
2023
1798
|
type: "TSIndexedAccessType",
|
|
@@ -2025,7 +1800,6 @@ function tsIndexedAccessType(objectType, indexType) {
|
|
|
2025
1800
|
indexType
|
|
2026
1801
|
});
|
|
2027
1802
|
}
|
|
2028
|
-
|
|
2029
1803
|
function tsMappedType(typeParameter, typeAnnotation = null, nameType = null) {
|
|
2030
1804
|
return (0, _validateNode.default)({
|
|
2031
1805
|
type: "TSMappedType",
|
|
@@ -2034,14 +1808,12 @@ function tsMappedType(typeParameter, typeAnnotation = null, nameType = null) {
|
|
|
2034
1808
|
nameType
|
|
2035
1809
|
});
|
|
2036
1810
|
}
|
|
2037
|
-
|
|
2038
1811
|
function tsLiteralType(literal) {
|
|
2039
1812
|
return (0, _validateNode.default)({
|
|
2040
1813
|
type: "TSLiteralType",
|
|
2041
1814
|
literal
|
|
2042
1815
|
});
|
|
2043
1816
|
}
|
|
2044
|
-
|
|
2045
1817
|
function tsExpressionWithTypeArguments(expression, typeParameters = null) {
|
|
2046
1818
|
return (0, _validateNode.default)({
|
|
2047
1819
|
type: "TSExpressionWithTypeArguments",
|
|
@@ -2049,7 +1821,6 @@ function tsExpressionWithTypeArguments(expression, typeParameters = null) {
|
|
|
2049
1821
|
typeParameters
|
|
2050
1822
|
});
|
|
2051
1823
|
}
|
|
2052
|
-
|
|
2053
1824
|
function tsInterfaceDeclaration(id, typeParameters = null, _extends = null, body) {
|
|
2054
1825
|
return (0, _validateNode.default)({
|
|
2055
1826
|
type: "TSInterfaceDeclaration",
|
|
@@ -2059,14 +1830,12 @@ function tsInterfaceDeclaration(id, typeParameters = null, _extends = null, body
|
|
|
2059
1830
|
body
|
|
2060
1831
|
});
|
|
2061
1832
|
}
|
|
2062
|
-
|
|
2063
1833
|
function tsInterfaceBody(body) {
|
|
2064
1834
|
return (0, _validateNode.default)({
|
|
2065
1835
|
type: "TSInterfaceBody",
|
|
2066
1836
|
body
|
|
2067
1837
|
});
|
|
2068
1838
|
}
|
|
2069
|
-
|
|
2070
1839
|
function tsTypeAliasDeclaration(id, typeParameters = null, typeAnnotation) {
|
|
2071
1840
|
return (0, _validateNode.default)({
|
|
2072
1841
|
type: "TSTypeAliasDeclaration",
|
|
@@ -2075,7 +1844,6 @@ function tsTypeAliasDeclaration(id, typeParameters = null, typeAnnotation) {
|
|
|
2075
1844
|
typeAnnotation
|
|
2076
1845
|
});
|
|
2077
1846
|
}
|
|
2078
|
-
|
|
2079
1847
|
function tsInstantiationExpression(expression, typeParameters = null) {
|
|
2080
1848
|
return (0, _validateNode.default)({
|
|
2081
1849
|
type: "TSInstantiationExpression",
|
|
@@ -2083,7 +1851,6 @@ function tsInstantiationExpression(expression, typeParameters = null) {
|
|
|
2083
1851
|
typeParameters
|
|
2084
1852
|
});
|
|
2085
1853
|
}
|
|
2086
|
-
|
|
2087
1854
|
function tsAsExpression(expression, typeAnnotation) {
|
|
2088
1855
|
return (0, _validateNode.default)({
|
|
2089
1856
|
type: "TSAsExpression",
|
|
@@ -2091,7 +1858,6 @@ function tsAsExpression(expression, typeAnnotation) {
|
|
|
2091
1858
|
typeAnnotation
|
|
2092
1859
|
});
|
|
2093
1860
|
}
|
|
2094
|
-
|
|
2095
1861
|
function tsSatisfiesExpression(expression, typeAnnotation) {
|
|
2096
1862
|
return (0, _validateNode.default)({
|
|
2097
1863
|
type: "TSSatisfiesExpression",
|
|
@@ -2099,7 +1865,6 @@ function tsSatisfiesExpression(expression, typeAnnotation) {
|
|
|
2099
1865
|
typeAnnotation
|
|
2100
1866
|
});
|
|
2101
1867
|
}
|
|
2102
|
-
|
|
2103
1868
|
function tsTypeAssertion(typeAnnotation, expression) {
|
|
2104
1869
|
return (0, _validateNode.default)({
|
|
2105
1870
|
type: "TSTypeAssertion",
|
|
@@ -2107,7 +1872,6 @@ function tsTypeAssertion(typeAnnotation, expression) {
|
|
|
2107
1872
|
expression
|
|
2108
1873
|
});
|
|
2109
1874
|
}
|
|
2110
|
-
|
|
2111
1875
|
function tsEnumDeclaration(id, members) {
|
|
2112
1876
|
return (0, _validateNode.default)({
|
|
2113
1877
|
type: "TSEnumDeclaration",
|
|
@@ -2115,7 +1879,6 @@ function tsEnumDeclaration(id, members) {
|
|
|
2115
1879
|
members
|
|
2116
1880
|
});
|
|
2117
1881
|
}
|
|
2118
|
-
|
|
2119
1882
|
function tsEnumMember(id, initializer = null) {
|
|
2120
1883
|
return (0, _validateNode.default)({
|
|
2121
1884
|
type: "TSEnumMember",
|
|
@@ -2123,7 +1886,6 @@ function tsEnumMember(id, initializer = null) {
|
|
|
2123
1886
|
initializer
|
|
2124
1887
|
});
|
|
2125
1888
|
}
|
|
2126
|
-
|
|
2127
1889
|
function tsModuleDeclaration(id, body) {
|
|
2128
1890
|
return (0, _validateNode.default)({
|
|
2129
1891
|
type: "TSModuleDeclaration",
|
|
@@ -2131,14 +1893,12 @@ function tsModuleDeclaration(id, body) {
|
|
|
2131
1893
|
body
|
|
2132
1894
|
});
|
|
2133
1895
|
}
|
|
2134
|
-
|
|
2135
1896
|
function tsModuleBlock(body) {
|
|
2136
1897
|
return (0, _validateNode.default)({
|
|
2137
1898
|
type: "TSModuleBlock",
|
|
2138
1899
|
body
|
|
2139
1900
|
});
|
|
2140
1901
|
}
|
|
2141
|
-
|
|
2142
1902
|
function tsImportType(argument, qualifier = null, typeParameters = null) {
|
|
2143
1903
|
return (0, _validateNode.default)({
|
|
2144
1904
|
type: "TSImportType",
|
|
@@ -2147,7 +1907,6 @@ function tsImportType(argument, qualifier = null, typeParameters = null) {
|
|
|
2147
1907
|
typeParameters
|
|
2148
1908
|
});
|
|
2149
1909
|
}
|
|
2150
|
-
|
|
2151
1910
|
function tsImportEqualsDeclaration(id, moduleReference) {
|
|
2152
1911
|
return (0, _validateNode.default)({
|
|
2153
1912
|
type: "TSImportEqualsDeclaration",
|
|
@@ -2156,56 +1915,48 @@ function tsImportEqualsDeclaration(id, moduleReference) {
|
|
|
2156
1915
|
isExport: null
|
|
2157
1916
|
});
|
|
2158
1917
|
}
|
|
2159
|
-
|
|
2160
1918
|
function tsExternalModuleReference(expression) {
|
|
2161
1919
|
return (0, _validateNode.default)({
|
|
2162
1920
|
type: "TSExternalModuleReference",
|
|
2163
1921
|
expression
|
|
2164
1922
|
});
|
|
2165
1923
|
}
|
|
2166
|
-
|
|
2167
1924
|
function tsNonNullExpression(expression) {
|
|
2168
1925
|
return (0, _validateNode.default)({
|
|
2169
1926
|
type: "TSNonNullExpression",
|
|
2170
1927
|
expression
|
|
2171
1928
|
});
|
|
2172
1929
|
}
|
|
2173
|
-
|
|
2174
1930
|
function tsExportAssignment(expression) {
|
|
2175
1931
|
return (0, _validateNode.default)({
|
|
2176
1932
|
type: "TSExportAssignment",
|
|
2177
1933
|
expression
|
|
2178
1934
|
});
|
|
2179
1935
|
}
|
|
2180
|
-
|
|
2181
1936
|
function tsNamespaceExportDeclaration(id) {
|
|
2182
1937
|
return (0, _validateNode.default)({
|
|
2183
1938
|
type: "TSNamespaceExportDeclaration",
|
|
2184
1939
|
id
|
|
2185
1940
|
});
|
|
2186
1941
|
}
|
|
2187
|
-
|
|
2188
1942
|
function tsTypeAnnotation(typeAnnotation) {
|
|
2189
1943
|
return (0, _validateNode.default)({
|
|
2190
1944
|
type: "TSTypeAnnotation",
|
|
2191
1945
|
typeAnnotation
|
|
2192
1946
|
});
|
|
2193
1947
|
}
|
|
2194
|
-
|
|
2195
1948
|
function tsTypeParameterInstantiation(params) {
|
|
2196
1949
|
return (0, _validateNode.default)({
|
|
2197
1950
|
type: "TSTypeParameterInstantiation",
|
|
2198
1951
|
params
|
|
2199
1952
|
});
|
|
2200
1953
|
}
|
|
2201
|
-
|
|
2202
1954
|
function tsTypeParameterDeclaration(params) {
|
|
2203
1955
|
return (0, _validateNode.default)({
|
|
2204
1956
|
type: "TSTypeParameterDeclaration",
|
|
2205
1957
|
params
|
|
2206
1958
|
});
|
|
2207
1959
|
}
|
|
2208
|
-
|
|
2209
1960
|
function tsTypeParameter(constraint = null, _default = null, name) {
|
|
2210
1961
|
return (0, _validateNode.default)({
|
|
2211
1962
|
type: "TSTypeParameter",
|
|
@@ -2214,22 +1965,18 @@ function tsTypeParameter(constraint = null, _default = null, name) {
|
|
|
2214
1965
|
name
|
|
2215
1966
|
});
|
|
2216
1967
|
}
|
|
2217
|
-
|
|
2218
1968
|
function NumberLiteral(value) {
|
|
2219
1969
|
console.trace("The node type NumberLiteral has been renamed to NumericLiteral");
|
|
2220
1970
|
return numericLiteral(value);
|
|
2221
1971
|
}
|
|
2222
|
-
|
|
2223
1972
|
function RegexLiteral(pattern, flags = "") {
|
|
2224
1973
|
console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");
|
|
2225
1974
|
return regExpLiteral(pattern, flags);
|
|
2226
1975
|
}
|
|
2227
|
-
|
|
2228
1976
|
function RestProperty(argument) {
|
|
2229
1977
|
console.trace("The node type RestProperty has been renamed to RestElement");
|
|
2230
1978
|
return restElement(argument);
|
|
2231
1979
|
}
|
|
2232
|
-
|
|
2233
1980
|
function SpreadProperty(argument) {
|
|
2234
1981
|
console.trace("The node type SpreadProperty has been renamed to SpreadElement");
|
|
2235
1982
|
return spreadElement(argument);
|