MCPcopy Create free account
hub / github.com/babel/babel / thisRef

Function thisRef

packages/babel-plugin-transform-classes/src/transformClass.ts:347–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345 path.traverse(findThisesVisitor);
346
347 let thisRef = function () {
348 const ref = path.scope.generateDeclaredUidIdentifier("this");
349 maxGuaranteedSuperBeforeIndex++;
350 thisRef = () => t.cloneNode(ref);
351 return ref;
352 };
353
354 const buildAssertThisInitialized = function () {
355 return t.callExpression(file.addHelper("assertThisInitialized"), [

Callers 3

wrapSuperCallFunction · 0.85
verifyConstructorFunction · 0.85

Calls 1

Tested by

no test coverage detected