mirror of
https://github.com/actions/labeler.git
synced 2025-12-19 08:38:15 +00:00
build
This commit is contained in:
31
node_modules/@babel/helper-module-transforms/lib/rewrite-this.js
generated
vendored
Normal file
31
node_modules/@babel/helper-module-transforms/lib/rewrite-this.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = rewriteThis;
|
||||
|
||||
var _helperReplaceSupers = require("@babel/helper-replace-supers");
|
||||
|
||||
function rewriteThis(programPath) {
|
||||
programPath.traverse(rewriteThisVisitor);
|
||||
}
|
||||
|
||||
const rewriteThisVisitor = {
|
||||
ThisExpression(path) {
|
||||
path.replaceWith(path.scope.buildUndefinedNode());
|
||||
},
|
||||
|
||||
Function(path) {
|
||||
if (path.isMethod()) (0, _helperReplaceSupers.skipAllButComputedKey)(path);else if (!path.isArrowFunctionExpression()) path.skip();
|
||||
},
|
||||
|
||||
ClassProperty(path) {
|
||||
(0, _helperReplaceSupers.skipAllButComputedKey)(path);
|
||||
},
|
||||
|
||||
ClassPrivateProperty(path) {
|
||||
path.skip();
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user