MCPcopy Create free account
hub / github.com/nodejs/node / nextTokenCanFollowDefaultKeyword

Function nextTokenCanFollowDefaultKeyword

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

Source from the content-addressed store, hash-verified

32505 || isLiteralPropertyName();
32506 }
32507 function nextTokenCanFollowDefaultKeyword() {
32508 nextToken();
32509 return token() === 84 /* SyntaxKind.ClassKeyword */ || token() === 98 /* SyntaxKind.FunctionKeyword */ ||
32510 token() === 118 /* SyntaxKind.InterfaceKeyword */ ||
32511 (token() === 126 /* SyntaxKind.AbstractKeyword */ && lookAhead(nextTokenIsClassKeywordOnSameLine)) ||
32512 (token() === 131 /* SyntaxKind.AsyncKeyword */ && lookAhead(nextTokenIsFunctionKeywordOnSameLine));
32513 }
32514 // True if positioned at the start of a list element
32515 function isListElement(parsingContext, inErrorRecovery) {
32516 var node = currentNode(parsingContext);

Callers 1

Calls 3

nextTokenFunction · 0.85
lookAheadFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected