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

Function getGlobalImportMetaType

test/fixtures/snapshot/typescript.js:60687–60690  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60685 return deferredGlobalTemplateStringsArrayType || (deferredGlobalTemplateStringsArrayType = getGlobalType("TemplateStringsArray", /*arity*/ 0, /*reportErrors*/ true) || emptyObjectType);
60686 }
60687 function getGlobalImportMetaType() {
60688 // We always report an error, so store a result in the event we could not resolve the symbol to prevent reporting it multiple times
60689 return deferredGlobalImportMetaType || (deferredGlobalImportMetaType = getGlobalType("ImportMeta", /*arity*/ 0, /*reportErrors*/ true) || emptyObjectType);
60690 }
60691 function getGlobalImportMetaExpressionType() {
60692 if (!deferredGlobalImportMetaExpressionType) {
60693 // Create a synthetic type `ImportMetaExpression { meta: MetaProperty }`

Callers 2

checkImportMetaPropertyFunction · 0.85

Calls 1

getGlobalTypeFunction · 0.85

Tested by

no test coverage detected