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

Function parseImportEqualsDeclaration

test/fixtures/snapshot/typescript.js:37136–37143  ·  view source on GitHub ↗
(pos, hasJSDoc, decorators, modifiers, identifier, isTypeOnly)

Source from the content-addressed store, hash-verified

37134 return token() === 27 /* SyntaxKind.CommaToken */ || token() === 156 /* SyntaxKind.FromKeyword */;
37135 }
37136 function parseImportEqualsDeclaration(pos, hasJSDoc, decorators, modifiers, identifier, isTypeOnly) {
37137 parseExpected(63 /* SyntaxKind.EqualsToken */);
37138 var moduleReference = parseModuleReference();
37139 parseSemicolon();
37140 var node = factory.createImportEqualsDeclaration(decorators, modifiers, isTypeOnly, identifier, moduleReference);
37141 var finished = withJSDoc(finishNode(node, pos), hasJSDoc);
37142 return finished;
37143 }
37144 function parseImportClause(identifier, pos, isTypeOnly) {
37145 // ImportClause:
37146 // ImportedDefaultBinding

Calls 5

parseExpectedFunction · 0.85
parseModuleReferenceFunction · 0.85
parseSemicolonFunction · 0.85
withJSDocFunction · 0.85
finishNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…