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

Function thisRef

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

Source from the content-addressed store, hash-verified

374 path.traverse(findThisesVisitor);
375
376 let thisRef = function () {
377 const ref = path.scope.generateDeclaredUidIdentifier("this");
378 maxGuaranteedSuperBeforeIndex++;
379 thisRef = () => t.cloneNode(ref);
380 return ref;
381 };
382
383 const buildAssertThisInitialized = function () {
384 if (assumptions.noUninitializedThis) return thisRef();

Callers 3

wrapSuperCallFunction · 0.85
verifyConstructorFunction · 0.85

Calls 1

Tested by

no test coverage detected