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

Function parseAssertEntry

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

Source from the content-addressed store, hash-verified

37097 return withJSDoc(finishNode(node, pos), hasJSDoc);
37098 }
37099 function parseAssertEntry() {
37100 var pos = getNodePos();
37101 var name = ts.tokenIsIdentifierOrKeyword(token()) ? parseIdentifierName() : parseLiteralLikeNode(10 /* SyntaxKind.StringLiteral */);
37102 parseExpected(58 /* SyntaxKind.ColonToken */);
37103 var value = parseAssignmentExpressionOrHigher();
37104 return finishNode(factory.createAssertEntry(name, value), pos);
37105 }
37106 function parseAssertClause(skipAssertKeyword) {
37107 var pos = getNodePos();
37108 if (!skipAssertKeyword) {

Callers

nothing calls this directly

Calls 7

getNodePosFunction · 0.85
parseIdentifierNameFunction · 0.85
parseLiteralLikeNodeFunction · 0.85
parseExpectedFunction · 0.85
finishNodeFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…