| | |
| | | Object.defineProperty(exports, "__esModule", { |
| | | value: true |
| | | }); |
| | | exports.hasOwnDecorators = hasOwnDecorators; |
| | | exports.hasDecorators = hasDecorators; |
| | | exports.buildDecoratedClass = buildDecoratedClass; |
| | | exports.hasDecorators = hasDecorators; |
| | | exports.hasOwnDecorators = hasOwnDecorators; |
| | | |
| | | var _core = require("@babel/core"); |
| | | |
| | |
| | | file: this, |
| | | refToPreserve: classRef |
| | | }).replace(); |
| | | const properties = [prop("kind", _core.types.stringLiteral(_core.types.isClassMethod(node) ? node.kind : "field")), prop("decorators", takeDecorators(node)), prop("static", node.static && _core.types.booleanLiteral(true)), prop("key", getKey(node))].filter(Boolean); |
| | | const properties = [prop("kind", _core.types.stringLiteral(_core.types.isClassMethod(node) ? node.kind : "field")), prop("decorators", takeDecorators(node)), prop("static", !(_core.types.isStaticBlock != null && _core.types.isStaticBlock(node)) && node.static && _core.types.booleanLiteral(true)), prop("key", getKey(node))].filter(Boolean); |
| | | |
| | | if (_core.types.isClassMethod(node)) { |
| | | const id = node.computed ? null : node.key; |