MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / getTempId

Function getTempId

scripts/babel-plugin-safe-bind.js:44–49  ·  view source on GitHub ↗
(scope)

Source from the content-addressed store, hash-verified

42 api.assertVersion(7);
43
44 function getTempId(scope) {
45 let id = scope.path.getData("functionBind");
46 if (id) return _core.types.cloneNode(id);
47 id = scope.generateDeclaredUidIdentifier("context");
48 return scope.path.setData("functionBind", id);
49 }
50
51 function getStaticContext(bind, scope) {
52 const object = bind.object || bind.callee.object;

Callers 1

inferBindContextFunction · 0.85

Calls 1

getDataMethod · 0.80

Tested by

no test coverage detected