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

Function parseExternalModuleReference

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

Source from the content-addressed store, hash-verified

37163 : parseEntityName(/*allowReservedWords*/ false);
37164 }
37165 function parseExternalModuleReference() {
37166 var pos = getNodePos();
37167 parseExpected(146 /* SyntaxKind.RequireKeyword */);
37168 parseExpected(20 /* SyntaxKind.OpenParenToken */);
37169 var expression = parseModuleSpecifier();
37170 parseExpected(21 /* SyntaxKind.CloseParenToken */);
37171 return finishNode(factory.createExternalModuleReference(expression), pos);
37172 }
37173 function parseModuleSpecifier() {
37174 if (token() === 10 /* SyntaxKind.StringLiteral */) {
37175 var result = parseLiteralNode();

Callers 1

parseModuleReferenceFunction · 0.85

Calls 4

getNodePosFunction · 0.85
parseExpectedFunction · 0.85
parseModuleSpecifierFunction · 0.85
finishNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…