MCPcopy Index your code
hub / github.com/refined-github/refined-github / getCallerId

Function getCallerId

source/helpers/caller-id.ts:21–24  ·  view source on GitHub ↗
(ancestor = 1)

Source from the content-addressed store, hash-verified

19@param ancestor Which call in the stack should be used as key. 0 means the exact line where getCallerID is called. Defaults to 1 because it's usually used inside a helper.
20*/
21export default function getCallerId(ancestor = 1): string {
22 /* +1 because the first line comes from this function */
23 return hashString(getStackLine(new Error('Get stack').stack!, ancestor + 1));
24}

Callers 2

observeFunction · 0.85
attachElementFunction · 0.85

Calls 2

hashStringFunction · 0.85
getStackLineFunction · 0.85

Tested by

no test coverage detected