@marko/compiler 5.39.28 → 5.39.29

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.
@@ -15,7 +15,7 @@ var _tryLoadTranslator = _interopRequireDefault(require("../util/try-load-transl
15
15
  var _file = require("./file");
16
16
  var _parser = require("./parser");
17
17
  var _migrate = require("./plugins/migrate");
18
- var _transform = require("./plugins/transform");function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;}
18
+ var _transform = require("./plugins/transform");function _interopRequireWildcard(e, t) {if ("function" == typeof WeakMap) var r = new WeakMap(),n = new WeakMap();return (_interopRequireWildcard = function (e, t) {if (!t && e && e.__esModule) return e;var o,i,f = { __proto__: null, default: e };if (null === e || "object" != typeof e && "function" != typeof e) return f;if (o = t ? n : r) {if (o.has(e)) return o.get(e);o.set(e, f);}for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]);return f;})(e, t);}
19
19
 
20
20
  const SOURCE_FILES = new WeakMap();var _default =
21
21
 
@@ -13,7 +13,7 @@ var _htmljsParser = require("htmljs-parser");
13
13
 
14
14
  var t = _interopRequireWildcard(require("../babel-types"));
15
15
  var _buildCodeFrame = require("../util/build-code-frame");
16
- var _mergeErrors = _interopRequireDefault(require("../util/merge-errors"));function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;}
16
+ var _mergeErrors = _interopRequireDefault(require("../util/merge-errors"));function _interopRequireWildcard(e, t) {if ("function" == typeof WeakMap) var r = new WeakMap(),n = new WeakMap();return (_interopRequireWildcard = function (e, t) {if (!t && e && e.__esModule) return e;var o,i,f = { __proto__: null, default: e };if (null === e || "object" != typeof e && "function" != typeof e) return f;if (o = t ? n : r) {if (o.has(e)) return o.get(e);o.set(e, f);}for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]);return f;})(e, t);}
17
17
 
18
18
  const noop = () => {};
19
19
  const emptyRange = (part) => part.start === part.end;
@@ -1,7 +1,7 @@
1
1
  "use strict";exports.__esModule = true;exports.visitor = void 0;var _babelUtils = require("@marko/compiler/babel-utils");
2
2
 
3
3
  var t = _interopRequireWildcard(require("../../babel-types"));
4
- var _pluginHooks = require("../util/plugin-hooks");function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;}
4
+ var _pluginHooks = require("../util/plugin-hooks");function _interopRequireWildcard(e, t) {if ("function" == typeof WeakMap) var r = new WeakMap(),n = new WeakMap();return (_interopRequireWildcard = function (e, t) {if (!t && e && e.__esModule) return e;var o,i,f = { __proto__: null, default: e };if (null === e || "object" != typeof e && "function" != typeof e) return f;if (o = t ? n : r) {if (o.has(e)) return o.get(e);o.set(e, f);}for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]);return f;})(e, t);}
5
5
 
6
6
  /**
7
7
  * Applies custom migrators on tags.
@@ -1,7 +1,7 @@
1
1
  "use strict";exports.__esModule = true;exports.visitor = void 0;var _babelUtils = require("@marko/compiler/babel-utils");
2
2
 
3
3
  var t = _interopRequireWildcard(require("../../babel-types"));
4
- var _pluginHooks = require("../util/plugin-hooks");function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;}
4
+ var _pluginHooks = require("../util/plugin-hooks");function _interopRequireWildcard(e, t) {if ("function" == typeof WeakMap) var r = new WeakMap(),n = new WeakMap();return (_interopRequireWildcard = function (e, t) {if (!t && e && e.__esModule) return e;var o,i,f = { __proto__: null, default: e };if (null === e || "object" != typeof e && "function" != typeof e) return f;if (o = t ? n : r) {if (o.has(e)) return o.get(e);o.set(e, f);}for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]);return f;})(e, t);}
5
5
 
6
6
  /**
7
7
  * Applies custom transformers on tags.
@@ -2,7 +2,7 @@
2
2
 
3
3
  var _printer = _interopRequireDefault(require("@babel/generator/lib/printer"));
4
4
  var t = _interopRequireWildcard(require("@babel/types"));
5
- var _selfClosingTags = _interopRequireDefault(require("self-closing-tags"));function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;}
5
+ var _selfClosingTags = _interopRequireDefault(require("self-closing-tags"));function _interopRequireWildcard(e, t) {if ("function" == typeof WeakMap) var r = new WeakMap(),n = new WeakMap();return (_interopRequireWildcard = function (e, t) {if (!t && e && e.__esModule) return e;var o,i,f = { __proto__: null, default: e };if (null === e || "object" != typeof e && "function" != typeof e) return f;if (o = t ? n : r) {if (o.has(e)) return o.get(e);o.set(e, f);}for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]);return f;})(e, t);}
6
6
 
7
7
  Object.assign(_printer.default.prototype, {
8
8
  MarkoParseError(node) {
@@ -3,7 +3,7 @@
3
3
  var _traverse = _interopRequireWildcard(require("@babel/traverse"));
4
4
  var t = _interopRequireWildcard(require("@babel/types"));
5
5
 
6
- var _definitions = require("../types/definitions");function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;}
6
+ var _definitions = require("../types/definitions");function _interopRequireWildcard(e, t) {if ("function" == typeof WeakMap) var r = new WeakMap(),n = new WeakMap();return (_interopRequireWildcard = function (e, t) {if (!t && e && e.__esModule) return e;var o,i,f = { __proto__: null, default: e };if (null === e || "object" != typeof e && "function" != typeof e) return f;if (o = t ? n : r) {if (o.has(e)) return o.get(e);o.set(e, f);}for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]);return f;})(e, t);}
7
7
 
8
8
  _definitions.MARKO_TYPES.forEach((typeName) => {
9
9
  const checkKey = `is${typeName}`;
@@ -5,7 +5,7 @@ var generatedValidators = _interopRequireWildcard(require("@babel/types/lib/vali
5
5
  var referencedValidators = _interopRequireWildcard(require("@babel/types/lib/validators/isReferenced"));
6
6
  var _validate = _interopRequireDefault(require("@babel/types/lib/validators/validate"));
7
7
 
8
- var _definitions = _interopRequireWildcard(require("./definitions"));function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;} /* eslint-disable no-import-assign */
8
+ var _definitions = _interopRequireWildcard(require("./definitions"));function _interopRequireWildcard(e, t) {if ("function" == typeof WeakMap) var r = new WeakMap(),n = new WeakMap();return (_interopRequireWildcard = function (e, t) {if (!t && e && e.__esModule) return e;var o,i,f = { __proto__: null, default: e };if (null === e || "object" != typeof e && "function" != typeof e) return f;if (o = t ? n : r) {if (o.has(e)) return o.get(e);o.set(e, f);}for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]);return f;})(e, t);} /* eslint-disable no-import-assign */
9
9
 
10
10
  const {
11
11
  TYPES,
@@ -1,7 +1,7 @@
1
1
  "use strict";exports.__esModule = true;exports.parseArgs = parseArgs;exports.parseExpression = parseExpression;exports.parseParams = parseParams;exports.parseStatements = parseStatements;exports.parseTemplateLiteral = parseTemplateLiteral;exports.parseTypeArgs = parseTypeArgs;exports.parseTypeParams = parseTypeParams;exports.parseVar = parseVar;var babelParser = _interopRequireWildcard(require("@babel/parser"));
2
2
  var _compiler = require("@marko/compiler");
3
3
 
4
- var _loc = require("./loc");function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;}
4
+ var _loc = require("./loc");function _interopRequireWildcard(e, t) {if ("function" == typeof WeakMap) var r = new WeakMap(),n = new WeakMap();return (_interopRequireWildcard = function (e, t) {if (!t && e && e.__esModule) return e;var o,i,f = { __proto__: null, default: e };if (null === e || "object" != typeof e && "function" != typeof e) return f;if (o = t ? n : r) {if (o.has(e)) return o.get(e);o.set(e, f);}for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]);return f;})(e, t);}
5
5
 
6
6
  function parseStatements(
7
7
  file,
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ var taglib = _interopRequireWildcard(require("./taglib"));exports.taglib = tagli
13
13
  var _buildCodeFrame = require("./util/build-code-frame");
14
14
  var _mergeErrors = _interopRequireDefault(require("./util/merge-errors"));
15
15
  var _shouldOptimize = _interopRequireDefault(require("./util/should-optimize"));
16
- var _tryLoadTranslator = _interopRequireDefault(require("./util/try-load-translator"));function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;}
16
+ var _tryLoadTranslator = _interopRequireDefault(require("./util/try-load-translator"));function _interopRequireWildcard(e, t) {if ("function" == typeof WeakMap) var r = new WeakMap(),n = new WeakMap();return (_interopRequireWildcard = function (e, t) {if (!t && e && e.__esModule) return e;var o,i,f = { __proto__: null, default: e };if (null === e || "object" != typeof e && "function" != typeof e) return f;if (o = t ? n : r) {if (o.has(e)) return o.get(e);o.set(e, f);}for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]);return f;})(e, t);}
17
17
 
18
18
 
19
19
  let globalConfig = exports.globalConfig = { ..._config.default };
package/dist/types.d.ts CHANGED
@@ -46,7 +46,7 @@ interface BaseNode {
46
46
  extra?: NodeExtra;
47
47
  }
48
48
 
49
- export type Node = Accessor | AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassAccessorProperty | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | DecimalLiteral | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | EnumBody | EnumBooleanBody | EnumBooleanMember | EnumDeclaration | EnumDefaultedMember | EnumMember | EnumNumberBody | EnumNumberMember | EnumStringBody | EnumStringMember | EnumSymbolBody | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportOrExportDeclaration | ImportSpecifier | IndexedAccessType | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | Marko | MarkoAttribute | MarkoCDATA | MarkoClass | MarkoComment | MarkoDeclaration | MarkoDocumentType | MarkoParseError | MarkoPlaceholder | MarkoScriptlet | MarkoSpreadAttribute | MarkoTag | MarkoTagBody | MarkoText | MemberExpression | MetaProperty | Method | Miscellaneous | MixedTypeAnnotation | ModuleDeclaration | ModuleExpression | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalIndexedAccessType | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RecordExpression | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | Scope | SequenceExpression | SpreadElement | SpreadProperty | Standardized | Statement | StaticBlock | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | SymbolTypeAnnotation | TSAnyKeyword | TSArrayType | TSAsExpression | TSBaseType | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSSatisfiesExpression | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TopicReference | TryStatement | TupleExpression | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeScript | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
49
+ export type Node = Accessor | AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassAccessorProperty | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | DecimalLiteral | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | EnumBody | EnumBooleanBody | EnumBooleanMember | EnumDeclaration | EnumDefaultedMember | EnumMember | EnumNumberBody | EnumNumberMember | EnumStringBody | EnumStringMember | EnumSymbolBody | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParameter | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportOrExportDeclaration | ImportSpecifier | IndexedAccessType | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | Marko | MarkoAttribute | MarkoCDATA | MarkoClass | MarkoComment | MarkoDeclaration | MarkoDocumentType | MarkoParseError | MarkoPlaceholder | MarkoScriptlet | MarkoSpreadAttribute | MarkoTag | MarkoTagBody | MarkoText | MemberExpression | MetaProperty | Method | Miscellaneous | MixedTypeAnnotation | ModuleDeclaration | ModuleExpression | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalIndexedAccessType | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RecordExpression | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | Scope | SequenceExpression | SpreadElement | SpreadProperty | Standardized | Statement | StaticBlock | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | SymbolTypeAnnotation | TSAnyKeyword | TSArrayType | TSAsExpression | TSBaseType | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumBody | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSSatisfiesExpression | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TopicReference | TryStatement | TupleExpression | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeScript | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidPattern | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
50
50
 
51
51
  export interface ArrayExpression extends BaseNode {
52
52
  type: "ArrayExpression";
@@ -56,7 +56,7 @@ export interface ArrayExpression extends BaseNode {
56
56
  export interface AssignmentExpression extends BaseNode {
57
57
  type: "AssignmentExpression";
58
58
  operator: string;
59
- left: LVal | OptionalMemberExpression;
59
+ left: LVal;
60
60
  right: Expression;
61
61
  }
62
62
 
@@ -164,7 +164,7 @@ export interface ForStatement extends BaseNode {
164
164
  export interface FunctionDeclaration extends BaseNode {
165
165
  type: "FunctionDeclaration";
166
166
  id: Identifier | null;
167
- params: Array<Identifier | Pattern | RestElement>;
167
+ params: Array<FunctionParameter>;
168
168
  body: BlockStatement;
169
169
  generator: boolean;
170
170
  async: boolean;
@@ -177,7 +177,7 @@ export interface FunctionDeclaration extends BaseNode {
177
177
  export interface FunctionExpression extends BaseNode {
178
178
  type: "FunctionExpression";
179
179
  id: Identifier | null;
180
- params: Array<Identifier | Pattern | RestElement>;
180
+ params: Array<FunctionParameter>;
181
181
  body: BlockStatement;
182
182
  generator: boolean;
183
183
  async: boolean;
@@ -274,7 +274,7 @@ export interface ObjectMethod extends BaseNode {
274
274
  type: "ObjectMethod";
275
275
  kind: "method" | "get" | "set";
276
276
  key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral;
277
- params: Array<Identifier | Pattern | RestElement>;
277
+ params: Array<FunctionParameter>;
278
278
  body: BlockStatement;
279
279
  computed: boolean;
280
280
  generator: boolean;
@@ -295,7 +295,7 @@ export interface ObjectProperty extends BaseNode {
295
295
 
296
296
  export interface RestElement extends BaseNode {
297
297
  type: "RestElement";
298
- argument: LVal;
298
+ argument: Identifier | ArrayPattern | ObjectPattern | MemberExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression | RestElement | AssignmentPattern;
299
299
  decorators: Array<Decorator> | null;
300
300
  optional: boolean | null;
301
301
  typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
@@ -367,7 +367,7 @@ export interface VariableDeclaration extends BaseNode {
367
367
 
368
368
  export interface VariableDeclarator extends BaseNode {
369
369
  type: "VariableDeclarator";
370
- id: LVal;
370
+ id: LVal | VoidPattern;
371
371
  init: Expression | null;
372
372
  definite: boolean | null;
373
373
  }
@@ -395,7 +395,7 @@ export interface AssignmentPattern extends BaseNode {
395
395
 
396
396
  export interface ArrayPattern extends BaseNode {
397
397
  type: "ArrayPattern";
398
- elements: Array<null | PatternLike | LVal>;
398
+ elements: Array<null | PatternLike>;
399
399
  decorators: Array<Decorator> | null;
400
400
  optional: boolean | null;
401
401
  typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
@@ -403,7 +403,7 @@ export interface ArrayPattern extends BaseNode {
403
403
 
404
404
  export interface ArrowFunctionExpression extends BaseNode {
405
405
  type: "ArrowFunctionExpression";
406
- params: Array<Identifier | Pattern | RestElement>;
406
+ params: Array<FunctionParameter>;
407
407
  body: BlockStatement | Expression;
408
408
  async: boolean;
409
409
  expression: boolean;
@@ -528,7 +528,7 @@ export interface ClassMethod extends BaseNode {
528
528
  type: "ClassMethod";
529
529
  kind: "get" | "set" | "method" | "constructor";
530
530
  key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression;
531
- params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
531
+ params: Array<FunctionParameter | TSParameterProperty>;
532
532
  body: BlockStatement;
533
533
  computed: boolean;
534
534
  static: boolean;
@@ -675,7 +675,7 @@ export interface ClassPrivateMethod extends BaseNode {
675
675
  type: "ClassPrivateMethod";
676
676
  kind: "get" | "set" | "method";
677
677
  key: PrivateName;
678
- params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
678
+ params: Array<FunctionParameter | TSParameterProperty>;
679
679
  body: BlockStatement;
680
680
  static: boolean;
681
681
  abstract: boolean | null;
@@ -1268,6 +1268,10 @@ export interface PipelinePrimaryTopicReference extends BaseNode {
1268
1268
  type: "PipelinePrimaryTopicReference";
1269
1269
  }
1270
1270
 
1271
+ export interface VoidPattern extends BaseNode {
1272
+ type: "VoidPattern";
1273
+ }
1274
+
1271
1275
  export interface TSParameterProperty extends BaseNode {
1272
1276
  type: "TSParameterProperty";
1273
1277
  parameter: Identifier | AssignmentPattern;
@@ -1281,7 +1285,7 @@ export interface TSDeclareFunction extends BaseNode {
1281
1285
  type: "TSDeclareFunction";
1282
1286
  id: Identifier | null;
1283
1287
  typeParameters: TSTypeParameterDeclaration | Noop | null;
1284
- params: Array<Identifier | Pattern | RestElement>;
1288
+ params: Array<FunctionParameter>;
1285
1289
  returnType: TSTypeAnnotation | Noop | null;
1286
1290
  async: boolean;
1287
1291
  declare: boolean | null;
@@ -1293,7 +1297,7 @@ export interface TSDeclareMethod extends BaseNode {
1293
1297
  decorators: Array<Decorator> | null;
1294
1298
  key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression;
1295
1299
  typeParameters: TSTypeParameterDeclaration | Noop | null;
1296
- params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
1300
+ params: Array<FunctionParameter | TSParameterProperty>;
1297
1301
  returnType: TSTypeAnnotation | Noop | null;
1298
1302
  abstract: boolean | null;
1299
1303
  access: "public" | "private" | "protected" | null;
@@ -1630,7 +1634,7 @@ export interface TSImportType extends BaseNode {
1630
1634
  argument: StringLiteral;
1631
1635
  qualifier: TSEntityName | null;
1632
1636
  typeParameters: TSTypeParameterInstantiation | null;
1633
- options: Expression | null;
1637
+ options: ObjectExpression | null;
1634
1638
  }
1635
1639
 
1636
1640
  export interface TSImportEqualsDeclaration extends BaseNode {
@@ -1810,8 +1814,9 @@ export type Function = FunctionDeclaration | FunctionExpression | ObjectMethod |
1810
1814
  export type FunctionParent = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
1811
1815
  export type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ArrowFunctionExpression | BigIntLiteral | DecimalLiteral;
1812
1816
  export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration;
1813
- export type PatternLike = Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
1814
- export type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSParameterProperty | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
1817
+ export type FunctionParameter = Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | VoidPattern;
1818
+ export type PatternLike = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | VoidPattern | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
1819
+ export type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | OptionalMemberExpression | TSParameterProperty | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression;
1815
1820
  export type TSEntityName = Identifier | TSQualifiedName;
1816
1821
  export type Literal = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | TemplateLiteral | BigIntLiteral | DecimalLiteral;
1817
1822
  export type Immutable = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | BigIntLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXSpreadChild | JSXOpeningElement | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment | DecimalLiteral;
@@ -1820,7 +1825,7 @@ export type Method = ObjectMethod | ClassMethod | ClassPrivateMethod;
1820
1825
  export type ObjectMember = ObjectMethod | ObjectProperty;
1821
1826
  export type Property = ObjectProperty | ClassProperty | ClassAccessorProperty | ClassPrivateProperty;
1822
1827
  export type UnaryLike = UnaryExpression | SpreadElement;
1823
- export type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern;
1828
+ export type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern | VoidPattern;
1824
1829
  export type Class = ClassExpression | ClassDeclaration;
1825
1830
  export type ImportOrExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
1826
1831
  export type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration;
@@ -1864,6 +1869,7 @@ export interface Aliases {
1864
1869
  FunctionParent: FunctionParent;
1865
1870
  Pureish: Pureish;
1866
1871
  Declaration: Declaration;
1872
+ FunctionParameter: FunctionParameter;
1867
1873
  PatternLike: PatternLike;
1868
1874
  LVal: LVal;
1869
1875
  TSEntityName: TSEntityName;
@@ -1900,7 +1906,7 @@ export interface Aliases {
1900
1906
  }
1901
1907
 
1902
1908
  export function arrayExpression(elements?: Array<null | Expression | SpreadElement>): ArrayExpression;
1903
- export function assignmentExpression(operator: string, left: LVal | OptionalMemberExpression, right: Expression): AssignmentExpression;
1909
+ export function assignmentExpression(operator: string, left: LVal, right: Expression): AssignmentExpression;
1904
1910
  export function binaryExpression(operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=" | "|>", left: Expression | PrivateName, right: Expression): BinaryExpression;
1905
1911
  export function interpreterDirective(value: string): InterpreterDirective;
1906
1912
  export function directive(value: DirectiveLiteral): Directive;
@@ -1918,8 +1924,8 @@ export function expressionStatement(expression: Expression): ExpressionStatement
1918
1924
  export function file(program: Program, comments?: Array<CommentBlock | CommentLine> | null, tokens?: Array<any> | null): File;
1919
1925
  export function forInStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement): ForInStatement;
1920
1926
  export function forStatement(init: VariableDeclaration | Expression | null | undefined, test: Expression | null | undefined, update: Expression | null | undefined, body: Statement): ForStatement;
1921
- export function functionDeclaration(id: Identifier | null | undefined, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, generator?: boolean, async?: boolean): FunctionDeclaration;
1922
- export function functionExpression(id: Identifier | null | undefined, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, generator?: boolean, async?: boolean): FunctionExpression;
1927
+ export function functionDeclaration(id: Identifier | null | undefined, params: Array<FunctionParameter>, body: BlockStatement, generator?: boolean, async?: boolean): FunctionDeclaration;
1928
+ export function functionExpression(id: Identifier | null | undefined, params: Array<FunctionParameter>, body: BlockStatement, generator?: boolean, async?: boolean): FunctionExpression;
1923
1929
  export function identifier(name: string): Identifier;
1924
1930
  export function ifStatement(test: Expression, consequent: Statement, alternate?: Statement | null): IfStatement;
1925
1931
  export function labeledStatement(label: Identifier, body: Statement): LabeledStatement;
@@ -1933,9 +1939,9 @@ export function memberExpression(object: Expression | Super, property: Expressio
1933
1939
  export function newExpression(callee: Expression | Super | V8IntrinsicIdentifier, _arguments: Array<Expression | SpreadElement | ArgumentPlaceholder>): NewExpression;
1934
1940
  export function program(body: Array<Statement>, directives?: Array<Directive>, sourceType?: "script" | "module", interpreter?: InterpreterDirective | null): Program;
1935
1941
  export function objectExpression(properties: Array<ObjectMethod | ObjectProperty | SpreadElement>): ObjectExpression;
1936
- export function objectMethod(kind: "method" | "get" | "set" | undefined, key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, computed?: boolean, generator?: boolean, async?: boolean): ObjectMethod;
1942
+ export function objectMethod(kind: "method" | "get" | "set" | undefined, key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral, params: Array<FunctionParameter>, body: BlockStatement, computed?: boolean, generator?: boolean, async?: boolean): ObjectMethod;
1937
1943
  export function objectProperty(key: Expression | Identifier | StringLiteral | NumericLiteral | BigIntLiteral | DecimalLiteral | PrivateName, value: Expression | PatternLike, computed?: boolean, shorthand?: boolean, decorators?: Array<Decorator> | null): ObjectProperty;
1938
- export function restElement(argument: LVal): RestElement;
1944
+ export function restElement(argument: Identifier | ArrayPattern | ObjectPattern | MemberExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression | RestElement | AssignmentPattern): RestElement;
1939
1945
  export function returnStatement(argument?: Expression | null): ReturnStatement;
1940
1946
  export function sequenceExpression(expressions: Array<Expression>): SequenceExpression;
1941
1947
  export function parenthesizedExpression(expression: Expression): ParenthesizedExpression;
@@ -1947,12 +1953,12 @@ export function tryStatement(block: BlockStatement, handler?: CatchClause | null
1947
1953
  export function unaryExpression(operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof", argument: Expression, prefix?: boolean): UnaryExpression;
1948
1954
  export function updateExpression(operator: "++" | "--", argument: Expression, prefix?: boolean): UpdateExpression;
1949
1955
  export function variableDeclaration(kind: "var" | "let" | "const" | "using" | "await using", declarations: Array<VariableDeclarator>): VariableDeclaration;
1950
- export function variableDeclarator(id: LVal, init?: Expression | null): VariableDeclarator;
1956
+ export function variableDeclarator(id: LVal | VoidPattern, init?: Expression | null): VariableDeclarator;
1951
1957
  export function whileStatement(test: Expression, body: Statement): WhileStatement;
1952
1958
  export function withStatement(object: Expression, body: Statement): WithStatement;
1953
1959
  export function assignmentPattern(left: Identifier | ObjectPattern | ArrayPattern | MemberExpression | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression, right: Expression): AssignmentPattern;
1954
- export function arrayPattern(elements: Array<null | PatternLike | LVal>): ArrayPattern;
1955
- export function arrowFunctionExpression(params: Array<Identifier | Pattern | RestElement>, body: BlockStatement | Expression, async?: boolean): ArrowFunctionExpression;
1960
+ export function arrayPattern(elements: Array<null | PatternLike>): ArrayPattern;
1961
+ export function arrowFunctionExpression(params: Array<FunctionParameter>, body: BlockStatement | Expression, async?: boolean): ArrowFunctionExpression;
1956
1962
  export function classBody(body: Array<ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | ClassAccessorProperty | TSDeclareMethod | TSIndexSignature | StaticBlock>): ClassBody;
1957
1963
  export function classExpression(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null): ClassExpression;
1958
1964
  export function classDeclaration(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null): ClassDeclaration;
@@ -1967,7 +1973,7 @@ export function importNamespaceSpecifier(local: Identifier): ImportNamespaceSpec
1967
1973
  export function importSpecifier(local: Identifier, imported: Identifier | StringLiteral): ImportSpecifier;
1968
1974
  export function importExpression(source: Expression, options?: Expression | null): ImportExpression;
1969
1975
  export function metaProperty(meta: Identifier, property: Identifier): MetaProperty;
1970
- export function classMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, body: BlockStatement, computed?: boolean, _static?: boolean, generator?: boolean, async?: boolean): ClassMethod;
1976
+ export function classMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression, params: Array<FunctionParameter | TSParameterProperty>, body: BlockStatement, computed?: boolean, _static?: boolean, generator?: boolean, async?: boolean): ClassMethod;
1971
1977
  export function objectPattern(properties: Array<RestElement | ObjectProperty>): ObjectPattern;
1972
1978
  export function spreadElement(argument: Expression): SpreadElement;
1973
1979
  declare function _super(): Super;
@@ -1986,7 +1992,7 @@ export function optionalCallExpression(callee: Expression, _arguments: Array<Exp
1986
1992
  export function classProperty(key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array<Decorator> | null, computed?: boolean, _static?: boolean): ClassProperty;
1987
1993
  export function classAccessorProperty(key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression | PrivateName, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array<Decorator> | null, computed?: boolean, _static?: boolean): ClassAccessorProperty;
1988
1994
  export function classPrivateProperty(key: PrivateName, value?: Expression | null, decorators?: Array<Decorator> | null, _static?: boolean): ClassPrivateProperty;
1989
- export function classPrivateMethod(kind: "get" | "set" | "method" | undefined, key: PrivateName, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, body: BlockStatement, _static?: boolean): ClassPrivateMethod;
1995
+ export function classPrivateMethod(kind: "get" | "set" | "method" | undefined, key: PrivateName, params: Array<FunctionParameter | TSParameterProperty>, body: BlockStatement, _static?: boolean): ClassPrivateMethod;
1990
1996
  export function privateName(id: Identifier): PrivateName;
1991
1997
  export function staticBlock(body: Array<Statement>): StaticBlock;
1992
1998
  export function importAttribute(key: Identifier | StringLiteral, value: StringLiteral): ImportAttribute;
@@ -2086,9 +2092,10 @@ export function topicReference(): TopicReference;
2086
2092
  export function pipelineTopicExpression(expression: Expression): PipelineTopicExpression;
2087
2093
  export function pipelineBareFunction(callee: Expression): PipelineBareFunction;
2088
2094
  export function pipelinePrimaryTopicReference(): PipelinePrimaryTopicReference;
2095
+ export function voidPattern(): VoidPattern;
2089
2096
  export function tsParameterProperty(parameter: Identifier | AssignmentPattern): TSParameterProperty;
2090
- export function tsDeclareFunction(id: Identifier | null | undefined, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array<Identifier | Pattern | RestElement>, returnType?: TSTypeAnnotation | Noop | null): TSDeclareFunction;
2091
- export function tsDeclareMethod(decorators: Array<Decorator> | null | undefined, key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, returnType?: TSTypeAnnotation | Noop | null): TSDeclareMethod;
2097
+ export function tsDeclareFunction(id: Identifier | null | undefined, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array<FunctionParameter>, returnType?: TSTypeAnnotation | Noop | null): TSDeclareFunction;
2098
+ export function tsDeclareMethod(decorators: Array<Decorator> | null | undefined, key: Identifier | StringLiteral | NumericLiteral | BigIntLiteral | Expression, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array<FunctionParameter | TSParameterProperty>, returnType?: TSTypeAnnotation | Noop | null): TSDeclareMethod;
2092
2099
  export function tsQualifiedName(left: TSEntityName, right: Identifier): TSQualifiedName;
2093
2100
  export function tsCallSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSCallSignatureDeclaration;
2094
2101
  export function tsConstructSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<ArrayPattern | Identifier | ObjectPattern | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSConstructSignatureDeclaration;
@@ -2125,7 +2132,7 @@ export function tsIntersectionType(types: Array<TSType>): TSIntersectionType;
2125
2132
  export function tsConditionalType(checkType: TSType, extendsType: TSType, trueType: TSType, falseType: TSType): TSConditionalType;
2126
2133
  export function tsInferType(typeParameter: TSTypeParameter): TSInferType;
2127
2134
  export function tsParenthesizedType(typeAnnotation: TSType): TSParenthesizedType;
2128
- export function tsTypeOperator(typeAnnotation: TSType): TSTypeOperator;
2135
+ export function tsTypeOperator(typeAnnotation: TSType, operator: string): TSTypeOperator;
2129
2136
  export function tsIndexedAccessType(objectType: TSType, indexType: TSType): TSIndexedAccessType;
2130
2137
  export function tsMappedType(typeParameter: TSTypeParameter, typeAnnotation?: TSType | null, nameType?: TSType | null): TSMappedType;
2131
2138
  export function tsTemplateLiteralType(quasis: Array<TemplateElement>, types: Array<TSType>): TSTemplateLiteralType;
@@ -2354,6 +2361,8 @@ export function isFunctionDeclaration(node: object | null | undefined, opts?: ob
2354
2361
  export function assertFunctionDeclaration(node: object | null | undefined, opts?: object | null): void;
2355
2362
  export function isFunctionExpression(node: object | null | undefined, opts?: object | null): node is FunctionExpression;
2356
2363
  export function assertFunctionExpression(node: object | null | undefined, opts?: object | null): void;
2364
+ export function isFunctionParameter(node: object | null | undefined, opts?: object | null): node is FunctionParameter;
2365
+ export function assertFunctionParameter(node: object | null | undefined, opts?: object | null): void;
2357
2366
  export function isFunctionParent(node: object | null | undefined, opts?: object | null): node is FunctionParent;
2358
2367
  export function assertFunctionParent(node: object | null | undefined, opts?: object | null): void;
2359
2368
  export function isFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is FunctionTypeAnnotation;
@@ -2806,6 +2815,8 @@ export function isVariableDeclarator(node: object | null | undefined, opts?: obj
2806
2815
  export function assertVariableDeclarator(node: object | null | undefined, opts?: object | null): void;
2807
2816
  export function isVariance(node: object | null | undefined, opts?: object | null): node is Variance;
2808
2817
  export function assertVariance(node: object | null | undefined, opts?: object | null): void;
2818
+ export function isVoidPattern(node: object | null | undefined, opts?: object | null): node is VoidPattern;
2819
+ export function assertVoidPattern(node: object | null | undefined, opts?: object | null): void;
2809
2820
  export function isVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): node is VoidTypeAnnotation;
2810
2821
  export function assertVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
2811
2822
  export function isWhile(node: object | null | undefined, opts?: object | null): node is While;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/compiler",
3
- "version": "5.39.28",
3
+ "version": "5.39.29",
4
4
  "description": "Marko template to JS compiler.",
5
5
  "keywords": [
6
6
  "babel",
@@ -62,16 +62,16 @@
62
62
  "prepare": "node -r ~ts scripts/types"
63
63
  },
64
64
  "dependencies": {
65
- "@babel/code-frame": "^7.26.2",
66
- "@babel/core": "^7.26.10",
67
- "@babel/generator": "^7.27.0",
68
- "@babel/parser": "^7.27.0",
69
- "@babel/plugin-syntax-typescript": "^7.25.9",
70
- "@babel/plugin-transform-modules-commonjs": "^7.26.3",
71
- "@babel/plugin-transform-typescript": "^7.27.0",
72
- "@babel/runtime": "^7.27.0",
73
- "@babel/traverse": "^7.27.0",
74
- "@babel/types": "^7.27.0",
65
+ "@babel/code-frame": "^7.27.1",
66
+ "@babel/core": "^7.28.0",
67
+ "@babel/generator": "^7.28.0",
68
+ "@babel/parser": "^7.28.0",
69
+ "@babel/plugin-syntax-typescript": "^7.27.1",
70
+ "@babel/plugin-transform-modules-commonjs": "^7.27.1",
71
+ "@babel/plugin-transform-typescript": "^7.28.0",
72
+ "@babel/runtime": "^7.27.6",
73
+ "@babel/traverse": "^7.28.0",
74
+ "@babel/types": "^7.28.0",
75
75
  "@luxass/strip-json-comments": "^1.4.0",
76
76
  "complain": "^1.6.1",
77
77
  "he": "^1.2.0",
@@ -87,7 +87,7 @@
87
87
  "source-map-support": "^0.5.21"
88
88
  },
89
89
  "devDependencies": {
90
- "marko": "^5.37.40"
90
+ "marko": "^5.37.41"
91
91
  },
92
92
  "engines": {
93
93
  "node": "18 || 20 || >=22"