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

Function substituteMetaProperty

test/fixtures/snapshot/typescript.js:107279–107284  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

107277 return node;
107278 }
107279 function substituteMetaProperty(node) {
107280 if (ts.isImportMeta(node)) {
107281 return factory.createPropertyAccessExpression(contextObject, factory.createIdentifier("meta"));
107282 }
107283 return node;
107284 }
107285 /**
107286 * Gets the exports of a name.
107287 *

Callers 1

substituteExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected