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

Function parseOptional

test/fixtures/snapshot/typescript.js:32258–32264  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

32256 }
32257 }
32258 function parseOptional(t) {
32259 if (token() === t) {
32260 nextToken();
32261 return true;
32262 }
32263 return false;
32264 }
32265 function parseOptionalToken(t) {
32266 if (token() === t) {
32267 return parseTokenNode();

Callers 15

parseDelimitedListFunction · 0.85
parseEntityNameFunction · 0.85
parseJSDocTypeFunction · 0.85
parseTypeParameterFunction · 0.85
shouldParseReturnTypeFunction · 0.85
parseTypeMemberSemicolonFunction · 0.85
parseMappedTypeFunction · 0.85
parseTupleElementTypeFunction · 0.85
parseImportTypeFunction · 0.85

Calls 2

nextTokenFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…