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

Function parseExpectedJSDoc

test/fixtures/snapshot/typescript.js:32237–32244  ·  view source on GitHub ↗
(kind)

Source from the content-addressed store, hash-verified

32235 parseErrorForMissingSemicolonAfter(name);
32236 }
32237 function parseExpectedJSDoc(kind) {
32238 if (token() === kind) {
32239 nextTokenJSDoc();
32240 return true;
32241 }
32242 parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(kind));
32243 return false;
32244 }
32245 function parseExpectedMatchingBrackets(openKind, closeKind, openParsed, openPosition) {
32246 if (token() === closeKind) {
32247 nextToken();

Callers 2

parseJSDocTypeExpressionFunction · 0.85
parseJSDocNameReferenceFunction · 0.85

Calls 3

nextTokenJSDocFunction · 0.85
parseErrorAtCurrentTokenFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected