Sha256: a0a0ad55d57f5348bb9acf95478702b026beab1a6e74c5713c49321ca45d1cac
Contents?: true
Size: 493 Bytes
Versions: 20
Compression:
Stored size: 493 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = rewriteThis; function rewriteThis(programPath) { programPath.traverse(rewriteThisVisitor); } const rewriteThisVisitor = { ThisExpression(path) { path.replaceWith(path.scope.buildUndefinedNode()); }, Function(path) { if (!path.isArrowFunctionExpression()) path.skip(); }, ClassProperty(path) { path.skip(); }, ClassPrivateProperty(path) { path.skip(); } };
Version data entries
20 entries across 20 versions & 6 rubygems