MCPcopy Create free account
hub / github.com/nodejs/node / getImportMetaIfNecessary

Function getImportMetaIfNecessary

test/fixtures/snapshot/typescript.js:30701–30705  ·  view source on GitHub ↗
(sourceFile)

Source from the content-addressed store, hash-verified

30699 || ts.isExportDeclaration(node) ? node : undefined;
30700 }
30701 function getImportMetaIfNecessary(sourceFile) {
30702 return sourceFile.flags & 4194304 /* NodeFlags.PossiblyContainsImportMeta */ ?
30703 walkTreeForImportMeta(sourceFile) :
30704 undefined;
30705 }
30706 function walkTreeForImportMeta(node) {
30707 return isImportMeta(node) ? node : forEachChild(node, walkTreeForImportMeta);
30708 }

Callers 1

Calls 1

walkTreeForImportMetaFunction · 0.85

Tested by

no test coverage detected