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

Function checkMetaProperty

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

Source from the content-addressed store, hash-verified

77414 }
77415 }
77416 function checkMetaProperty(node) {
77417 checkGrammarMetaProperty(node);
77418 if (node.keywordToken === 103 /* SyntaxKind.NewKeyword */) {
77419 return checkNewTargetMetaProperty(node);
77420 }
77421 if (node.keywordToken === 100 /* SyntaxKind.ImportKeyword */) {
77422 return checkImportMetaProperty(node);
77423 }
77424 return ts.Debug.assertNever(node.keywordToken);
77425 }
77426 function checkMetaPropertyKeyword(node) {
77427 switch (node.keywordToken) {
77428 case 100 /* SyntaxKind.ImportKeyword */:

Callers 1

checkExpressionWorkerFunction · 0.85

Calls 3

checkGrammarMetaPropertyFunction · 0.85
checkImportMetaPropertyFunction · 0.85

Tested by

no test coverage detected