MCPcopy Index your code
hub / github.com/nodejs/node / doWithContext

Function doWithContext

test/fixtures/snapshot/typescript.js:95951–95960  ·  view source on GitHub ↗
(flags, cb, value)

Source from the content-addressed store, hash-verified

95949 return inContext(2 /* ContextFlags.HasLexicalThis */);
95950 }
95951 function doWithContext(flags, cb, value) {
95952 var contextFlagsToSet = flags & ~contextFlags;
95953 if (contextFlagsToSet) {
95954 setContextFlag(contextFlagsToSet, /*val*/ true);
95955 var result = cb(value);
95956 setContextFlag(contextFlagsToSet, /*val*/ false);
95957 return result;
95958 }
95959 return cb(value);
95960 }
95961 function visitDefault(node) {
95962 return ts.visitEachChild(node, visitor, context);
95963 }

Callers 1

visitorFunction · 0.85

Calls 2

setContextFlagFunction · 0.85
cbFunction · 0.50

Tested by

no test coverage detected